thomthom / SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs
MIT License
26 stars 14 forks source link

Skui for HtmlDialog? #105

Open janbrouwer opened 7 years ago

janbrouwer commented 7 years ago

I'm using skui for some of my plugins and I wondered if it would be simple to upgrade it to the new HTMLdialog, or that it would be better to almost start from scratch again because of all the hacks that had to be built in to make the old webdialog behave properly?

Cheers! Jan

thomthom commented 7 years ago

Not sure how trivial it would be. There are two parts of SKUI, one is the control abstractions, they probably don't need any tweaks. But the bridge between Ruby and JS would need to be re-written.

But I don't see any obvious benefits of rewriting SKUI to use HtmlDialogs. The obvious draw-back is that it would not work with older SketchUp versions. Unless you made the underlying bridge swap between using WebDialog/Html dialog. But then SKUI have to deal with three browser engines instead of two.

I'd like to know more about what the expected benefits for HtmlDialog would be for SKUI?