I've seen a few old posts referencing multibutton, the info leaves me with questions, but there's no mention in the skin sdk,
it might be just the thing I'm after.
If it is still a thing?
My hazy understanding is, it's like a pad page pad where a [stupidly long] script can be called by a given name
multibutton 'my_button'
but it is hardcoded into the skin.
it might be just the thing I'm after.
If it is still a thing?
My hazy understanding is, it's like a pad page pad where a [stupidly long] script can be called by a given name
multibutton 'my_button'
but it is hardcoded into the skin.
Inviato Fri 14 Feb 20 @ 1:46 pm
A button with a menu for set of possible hardcoded actions
Something like a custom button but with no edit entry
<multibutton class="my button" id="1" x="4" y="3" >
<choice name="Play" action="play"/>
<choice name="Pause" action="pause"/>
<choice name="Stop" action="stop"/>
<text text="multibutton '1'" align="center"/>
</multibutton>
Open menu:
multibutton_select "my_button"
Selectable by script :
multibutton_select "my_button" "play"
documentation says:
If a second text parameter is provided after the name, use it as the new action to load in the multibutton: 'multibutton_select "my_button" "goto_cue 2 & play"'
in fact the action seems to be the name of a choice entry, not the action by itself
selected="" rightclick="" parameters do not seem to do anything
In conjonction with your "holding" emulation I got some things like
<choice name="Loop" action="repeat_start rpt ? up ? repeat_stop rpt & loop_select : nothing : repeat_start rpt 500ms 1 & multibutton_select '1'"/>
in a way to be able to toggle the functionalities in one of the touch skin i use for tests
Something like a custom button but with no edit entry
<multibutton class="my button" id="1" x="4" y="3" >
<choice name="Play" action="play"/>
<choice name="Pause" action="pause"/>
<choice name="Stop" action="stop"/>
<text text="multibutton '1'" align="center"/>
</multibutton>
Open menu:
multibutton_select "my_button"
Selectable by script :
multibutton_select "my_button" "play"
documentation says:
If a second text parameter is provided after the name, use it as the new action to load in the multibutton: 'multibutton_select "my_button" "goto_cue 2 & play"'
in fact the action seems to be the name of a choice entry, not the action by itself
selected="" rightclick="" parameters do not seem to do anything
In conjonction with your "holding" emulation I got some things like
<choice name="Loop" action="repeat_start rpt ? up ? repeat_stop rpt & loop_select : nothing : repeat_start rpt 500ms 1 & multibutton_select '1'"/>
in a way to be able to toggle the functionalities in one of the touch skin i use for tests
Inviato Sat 15 Feb 20 @ 11:46 pm
Nice one nico, do you know if a multibutton could call a multibutton?
[pad page I have uses a pad calling a pad, because the normal way would be '10s of MB of script]
[btw, check your messages]
[pad page I have uses a pad calling a pad, because the normal way would be '10s of MB of script]
[btw, check your messages]
Inviato Sun 16 Feb 20 @ 12:09 am
Calling a multibutton from within a multibutton seems to be possible the same way calling a pad in pads...
recursion in pad gives crashes at load time ... mainly DirectX related in windows - maybe script recurses with multibuttons
I think i got your thought...
Yes hidden multibuttons seems to be callable from scripts giving very interesting unplanned use : a container for selectable subroutines
and they seems to be usable - callable , not clickable - from video skins
recursion in pad gives crashes at load time ... mainly DirectX related in windows - maybe script recurses with multibuttons
I think i got your thought...
Yes hidden multibuttons seems to be callable from scripts giving very interesting unplanned use : a container for selectable subroutines
and they seems to be usable - callable , not clickable - from video skins
Inviato Sun 16 Feb 20 @ 10:49 am
Wrong info : selected parameter is working with choice, selected="yes"
it's <selected> that i do not know about
as long these are immediate actions everything is ok
status of toggle actions however is not reported
it's <selected> that i do not know about
as long these are immediate actions everything is ok
status of toggle actions however is not reported
Inviato Mon 17 Feb 20 @ 2:55 pm
*edit you posted as I was writing this and testing*
Nice nice, took me a few pokes at it
create 2 multibuttons with different ids [names] first button script calls the second button.
They're in the skin, but not visible
<multibutton id="1" >
<choice name="test" action="multibutton "2""/>
</multibutton>
<multibutton id="2" >
<choice name="test1" action="play"/>
</multibutton>
and a custom button to test it
multibutton "1"
the track plays :)
testing stupid [...because I'm stupid] I tried a loop [multibutton calls another multibutton that calls the first button], not a smart idea, I wouldn't use this, but in testing < 1500 loops and it doesn't crash. [I think with pads it can go upto 3000 ish, I can't remember, again a stupid idea]
Nice nice, took me a few pokes at it
create 2 multibuttons with different ids [names] first button script calls the second button.
They're in the skin, but not visible
<multibutton id="1" >
<choice name="test" action="multibutton "2""/>
</multibutton>
<multibutton id="2" >
<choice name="test1" action="play"/>
</multibutton>
and a custom button to test it
multibutton "1"
the track plays :)
testing stupid [...because I'm stupid] I tried a loop [multibutton calls another multibutton that calls the first button], not a smart idea, I wouldn't use this, but in testing < 1500 loops and it doesn't crash. [I think with pads it can go upto 3000 ish, I can't remember, again a stupid idea]
Inviato Mon 17 Feb 20 @ 3:19 pm
What's the reason for using a <class> if it doesn't really contain anything?
Inviato Mon 17 Feb 20 @ 3:28 pm
Because I'm an idiot XD, I take what works then I trial & error until something new works, then people who know better look at me strange and ask
"...what are you doing?...."
then I've learnt something XD, I'll edit the post
"...what are you doing?...."
then I've learnt something XD, I'll edit the post
Inviato Mon 17 Feb 20 @ 3:38 pm
it look like name or id can be used to identify multibutton
only id will select the correct choice name, select by name open popup but does not set it, query always returns last choice
within multibutton:
action= is not working (as expected), however tooltip appears for it
leftclick= is not working
rightclick= is not working, however even tooltip appears for it; it executes the action
middleclick= is not working, as usual
dblclick= is working but single click is pass to child
scroll= is working
tooltip= is ok, reports the current selected tooltip as well
within choice:
action= is hopefully working
selected= is working for initial state
multibutton_select "my_button" "thechoiceentry"
to select the choice entry by script does not work anymore :(
in fact now click is sent to multibutton before to select , action is executed before to read parameter and script goes on while popup is showing
only id will select the correct choice name, select by name open popup but does not set it, query always returns last choice
within multibutton:
action= is not working (as expected), however tooltip appears for it
leftclick= is not working
rightclick= is not working, however even tooltip appears for it; it executes the action
middleclick= is not working, as usual
dblclick= is working but single click is pass to child
scroll= is working
tooltip= is ok, reports the current selected tooltip as well
within choice:
action= is hopefully working
selected= is working for initial state
multibutton_select "my_button" "thechoiceentry"
to select the choice entry by script does not work anymore :(
in fact now click is sent to multibutton before to select , action is executed before to read parameter and script goes on while popup is showing
Inviato Sun 30 Aug 20 @ 5:57 pm
some interesting precisions :
in constructions like this :
get_constant id0 & param_cast text & multibutton_select & multibutton
multibutton is called with actual selected choice prior the menu to appear
multibutton 'name0' : won't work
multibutton 'id0' : will work, multibutton receives "No data" as parameter
get_text 'id0' & multibutton : won't work
get_text 'id0' & param_cast text & multibutton : will work, multibutton 'id0' receives 'id0' as a parameter
get_text 'name0' & param_cast text & multibutton : won't work
get_text 'id0' & param_cast text & multibutton : will work, multibutton 'id0' receives 'id0' as a parameter
actions wich need no parameter to execute correctly will not work in indirect call ^^ (i.e.: action="video")
multibuttons can receive parameters ;)
=======================================
get_text 'myparam' & param_cast text & multibutton 'id0' : will work, multibutton 'id0' will receive 'myparam' as a parameter
badly no workaround found to make parameter becomes "No data" again :(
multibutton_select DOES NOT WORK ANYMORE (b6067 and up) (second parameter seems to be ignored in all cases)
in constructions like this :
get_constant id0 & param_cast text & multibutton_select & multibutton
multibutton is called with actual selected choice prior the menu to appear
multibutton 'name0' : won't work
multibutton 'id0' : will work, multibutton receives "No data" as parameter
get_text 'id0' & multibutton : won't work
get_text 'id0' & param_cast text & multibutton : will work, multibutton 'id0' receives 'id0' as a parameter
get_text 'name0' & param_cast text & multibutton : won't work
get_text 'id0' & param_cast text & multibutton : will work, multibutton 'id0' receives 'id0' as a parameter
actions wich need no parameter to execute correctly will not work in indirect call ^^ (i.e.: action="video")
multibuttons can receive parameters ;)
=======================================
get_text 'myparam' & param_cast text & multibutton 'id0' : will work, multibutton 'id0' will receive 'myparam' as a parameter
badly no workaround found to make parameter becomes "No data" again :(
multibutton_select DOES NOT WORK ANYMORE (b6067 and up) (second parameter seems to be ignored in all cases)
Inviato Mon 14 Sep 20 @ 12:51 am