Problem with uiButtonContent

Home Forums General Programming Problem with uiButtonContent

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #54418
    urbanspaceman
    Participant
      • Topics: 7
      • Replies: 38
      • Total: 45

      I will not be the nightmare of the forum… but i have another problem.
      today i open my panel (the same panel as yesterday)

      some button name (uiButtonContent) are disappeared…
      yesterday there was now no more
      sometimes I find the buttons moved around the panel…

      What’s going on?

      • This topic was modified 8 years, 9 months ago by urbanspaceman.
      Attachments:
      You must be logged in to view attached files.
      #54442
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        This is due to the errors at start. Once you fix them, the button content is displayed again.

        #54461
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          opened your panel :
          first replace all uibuttoncontent with :
          False
          True
          we will change that once the method is working
          -set uibuttonistoogle on
          -remove the viewswitch method of ALL button and AFTER then delete it

          you have 2 tabs : some btns for one , some others for the other one
          so we will do first “part” buttons only .even you have 3 uiTabs
          – set your “part” buttons to OFF (false) by clicking them
          – set your custom indexes 100,101,102,103 to “part” buttons
          -so put the method called “klm” in the other thread( I just updated it 08/08/15 00:24 AM) . put it in “called when ANY modulator value changes ” in the panel prop
          in it :
          – repace “mytabmodulatorName” by “PrfParts”
          – modify “102” by “103”
          -done (in theory) 🙂
          – save your panel in a new file

          #54468
          urbanspaceman
          Participant
            • Topics: 7
            • Replies: 38
            • Total: 45

            a bit complicated…
            i try (if i understand)

            #54469
            urbanspaceman
            Participant
              • Topics: 7
              • Replies: 38
              • Total: 45

              i understand until – set your custom indexes 100,101,102,103 to “part” buttons
              kml give me an error…

              i think is a bit complicated for me.. I did not understand how the method work

              Attachments:
              You must be logged in to view attached files.
              #54471
              zeoka
              Participant
                • Topics: 73
                • Replies: 466
                • Total: 539
                • ★★★

                soRry about brainstorming 😀 you have to follows steps

                “set your custom indexes 100,101,102,103 to “part” buttons”
                means set”modulatorCustomIndex” on part1,part2…. buttons in the button properties

                before you create the new script and copy klm lines in , you must remove and delete old method and do all first steps
                and before COMPILING your new method (you can call it “viewSwitch” again)
                you must modify what I wrote post above.

                I know it could appear complicated but it ‘s simplified in reality !

                #54473
                zeoka
                Participant
                  • Topics: 73
                  • Replies: 466
                  • Total: 539
                  • ★★★

                  ps : in the script when I wrote final end it was just to say “this is the final end of the method” 😉 and you didn’t modify it (tab name ,indexes)

                  ok you have adapted your own custom indexes so you need to to change 100..103 by 300..303 in the klm script

                  work nice here ^^

                  good night

                  Attachments:
                  You must be logged in to view attached files.
                  #54496
                  urbanspaceman
                  Participant
                    • Topics: 7
                    • Replies: 38
                    • Total: 45

                    hmm but i have 2 buttons 100, 101
                    4 button 200, 201,202, 203
                    4 buttons 300, 301, 302, 303

                    It means that I have to have a method for each group of buttons?

                    #54498
                    zeoka
                    Participant
                      • Topics: 73
                      • Replies: 466
                      • Total: 539
                      • ★★★

                      no, it was the first step (only part buttons)

                      #54528
                      zeoka
                      Participant
                        • Topics: 73
                        • Replies: 466
                        • Total: 539
                        • ★★★

                        once the method is working for you (no reason it can’t work)

                        replace
                        if curmod >= 300 and curmod <= 303 then at line 11
                        by

                            if curmod ==100 then
                        -- body 
                        elseif curmod ==101 then
                        -- body 
                        elseif curmod >= 200  and curmod <= 203 then
                        -- body
                        elseif curmod >= 300  and curmod <= 303 then 

                        compile and save the panel

                        then you will have to adapt what I’ve done with part btns (300,303) to the (200,203) btns in body
                        for the 2 first btns we will see

                        #54550
                        zeoka
                        Participant
                          • Topics: 73
                          • Replies: 466
                          • Total: 539
                          • ★★★

                          to affine the method then you could add :
                          if curmod ~= 0 then before if curmod ==100 then
                          and add a end to the end of the method
                          this will close the chunk directly if current modulator dragged is not concerned by the method

                          hope this is clearer now
                          if you don’t get it:
                          until you copy the method you’ve done all correct so look rigorously at the method in the pic above , your script must be strictly identical

                          #54692
                          zeoka
                          Participant
                            • Topics: 73
                            • Replies: 466
                            • Total: 539
                            • ★★★

                            mission tab finished ,that was just copy-paste , possible to compact the method
                            now you’ve just to replace buttonContent like i’ve done with part1 btn and set colorOn/Off in btn properties

                            Attachments:
                            You must be logged in to view attached files.
                            #55201
                            urbanspaceman
                            Participant
                              • Topics: 7
                              • Replies: 38
                              • Total: 45

                              Thanks @zeoka, i look in your panel in these days 🙂

                              #55209
                              urbanspaceman
                              Participant
                                • Topics: 7
                                • Replies: 38
                                • Total: 45

                                thanks again, works very well and beginning to understand how works

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • The forum ‘Programming’ is closed to new topics and replies.
                              There is currently 0 users and 99 guests online
                              No users are currently active
                              Forum Statistics
                              Threads: 2,495, Posts: 17,374, Members: 77,605
                              Most users ever online was 12 on January 22, 2019 3:47 pm
                              Ctrlr