Home › Forums › General › Programming › Problem with uiButtonContent
- This topic has 13 replies, 3 voices, and was last updated 8 years, 8 months ago by urbanspaceman.
-
AuthorPosts
-
August 7, 2015 at 4:03 pm #54418
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.August 7, 2015 at 9:21 pm #54442This is due to the errors at start. Once you fix them, the button content is displayed again.
August 8, 2015 at 12:17 am #54461opened 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 ityou 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 fileAugust 8, 2015 at 1:50 am #54468a bit complicated…
i try (if i understand)August 8, 2015 at 2:22 am #54469i 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.August 8, 2015 at 3:02 am #54471soRry 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 propertiesbefore 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 !
August 8, 2015 at 3:24 am #54473ps : 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.August 8, 2015 at 12:58 pm #54496hmm but i have 2 buttons 100, 101
4 button 200, 201,202, 203
4 buttons 300, 301, 302, 303It means that I have to have a method for each group of buttons?
August 8, 2015 at 1:09 pm #54498no, it was the first step (only part buttons)
August 8, 2015 at 6:45 pm #54528once the method is working for you (no reason it can’t work)
replace
if curmod >= 300 and curmod <= 303 then
at line 11
byif 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 seeAugust 9, 2015 at 12:05 pm #54550to affine the method then you could add :
if curmod ~= 0 then
beforeif curmod ==100 then
and add aend
to the end of the method
this will close the chunk directly if current modulator dragged is not concerned by the methodhope 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 identicalAugust 10, 2015 at 6:14 pm #54692mission 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 propertiesAttachments:
You must be logged in to view attached files.August 17, 2015 at 1:04 pm #55201Thanks @zeoka, i look in your panel in these days 🙂
August 17, 2015 at 3:25 pm #55209thanks again, works very well and beginning to understand how works
-
AuthorPosts
- The forum ‘Programming’ is closed to new topics and replies.