Jump to content


Photo

Buttons,Inputs,dropdown menus


    2 replies to this topic

    #1 sdahlka

    sdahlka

      Advanced Member

    • Members
    • PipPipPip
    • 324 posts

      Posted 02 October 2014 - 10:05 PM

      is there a simple way to build a simple menu script that has buttons, text inputs, and drop down menus

       

      or even an example layout for one??

       

      the image below is what i would like to do

       

      Attached File  Untitled.png   8.04K   23 downloads



      #2 Iryoku

      Iryoku

        Advanced Member

      • Windower Staff
      • 488 posts

        Posted 03 October 2014 - 07:46 AM

        What you want is certainly possible to do, but unfortunately, it's not easy with the current primitives supplied by Windower 4.

         

        You can use primitives and text objects to draw the UI. You can also subscribe to mouse events for detecting clicks on the buttons, and keyboard events for typing in the text box, but there is no built-in mechanism for handling focus, z-order, or any of the other things needed for a proper UI toolkit. In addition, because inter-addon communication is very limited, if multiple addons start trying to render complex UIs things get messy.

         

        But this is possible. Here's a video of an addon that was recently published on the Windower Dev update stream, just to prove that it can be done.

         



        #3 anadrag

        anadrag

          Newbie

        • Members
        • Pip
        • 7 posts

          Posted 03 October 2014 - 04:27 PM

          wow thats nice






          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users