A Question on Making a GUI
-
I have been working with ruby and SU for a bit now and have created a simple plugin for creating a 1 meter square grid of variable size along each axis. The interface for this is very simple as it just pops a dialog box requesting the desired size of the grid. What I would like to do is make a more complex GUI for handling additional variables as well as managing preexisting grids.
To do this, will I have to manage everything through he existing UI class or is there another way of doing this? I read somewhere a reference to creating custom html pages but was unsure if that was meant solely for displaying data. Can I create my own custom dialog box? If so, how?
-
You can use HTML, DTHML, Javascript, etc. in custom
UI::WebDialog
class objects. -
Thanks for the help, I think that is what I need. For those interested, here is a link to a very simple example of using Ruby and WebDialogs: http://sketchupapi.blogspot.com/2008/02/sharing-data-between-sketchup-ruby-and.html
-
Here's a topic I've written with practical info about the WebDialog class: http://forums.sketchucation.com/viewtopic.php?f=180&t=23445#p198883
Advertisement