sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    OnScreen GUI Toolkit

    Scheduled Pinned Locked Moved Developers' Forum
    28 Posts 11 Posters 7.6k Views 11 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jim
      last edited by

      Sam, you need to make it the active tool..

      Sketchup.active_model.select_tool(TestTool.new)

      And you may need to zoom a little to get it to activate - the tool may need a view.invalidate/view.refresh in there somewhere.

      Hi

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        DOH!!!

        edit:

        Ok now how to use it. I have played around a bit with the testGUI.rb trying to figure out how to get the value from the widget. The slider example seems to emply that variable value should be the current value of the slider but it contains something like "pos(84.0,19.0,-1.0)flags0".

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aerilius
          last edited by

          That's a bug! (the raw data of the event and where the slider was clicked)

          1 Reply Last reply Reply Quote 0
          • T Offline
            tomasz
            last edited by

            Thank you for sharing this! I want to revamp SU2KT when time permits.
            I will report if I find any bugs.

            Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

            1 Reply Last reply Reply Quote 0
            • K Offline
              kirill2008
              last edited by

              I don't even know how to call this coincidence maybe a kind of synchronicity... I mean a few weeks ago the idea to make custom UI library based on view.draw method suddenly came to my mind. And I even started to code it 😄 Actually I needed a kind of adjustment curve editing control for one of my tools and since I didn't find any javascript ready made widget I decided to make my own control based on view.draw...
              I think it would be interesting to take a look at the result in a video: http://youtu.be/QLfI1McLMa0?hd=1 (skip to 1:08 to view 'Control Curve' window).
              In short, now I think there is no need to continue coding my own library since OnScreen GUI Toolkit is already exist 👍 . I'll try to adapt 'Control Curve' control in it and post result here if you don't mind.
              Thanks for sharing your library 👍

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aerilius
                last edited by

                That looks cool!
                This toolkit is in early development and it's possible that there will be soon bigger changes in the architecture of the underlying code.
                Dialogs like yours don't exist yet at all, one would have to create a new Dialog class as subclass of Container and then create the dialog titlebar, close buttons etc. maybe border resizing...

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  Ok, I uploaded my code for the RGB color picker. I'm sure there is lots of optimization that could be done. And its just wrapped in a class. As this development kit keeps improving and adding, maybe the RGB picker could get incorporated into it as well.

                  http://forums.sketchucation.com/viewtopic.php?f=180&t=47808

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    Cool! It'd be really nice to see a unified framework here. We're clearly re-inventing each others work.
                    I have code that reads BMP files and let you draw it - but it's terrible slow.

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dacastror
                      last edited by

                      with this would it be possible to create a dialog that allows the user to enter a number?

                      (google translator)

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Aerilius
                        last edited by

                        Possibly, but it would not be ideal.
                        I also haven't yet got time to finalize this, but I might be able to finish it in future.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by

                          Has everyone else seen this one?
                          http://sketchucation.com/forums/viewtopic.php?f=323&t=41982&start=45#p406363
                          it is in the other thread but thought it was easier to ask about if it's here...

                          is it the same concept?
                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dacastror
                            last edited by

                            I would like to do this, to make a inputbox made with OpenGL, could you please show an example of how to do this?

                            1 Reply Last reply Reply Quote 0
                            • 1
                            • 2
                            • 2 / 2
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement