Hello,
Can someone please explain the meaning of the <NumberStates> and <Number> keys
in conjunction with the <EmitOnDownPress> and <ButtonState> keys in skin.xml?
I would like to put that explanation in the skinning documentation.
Example 1:
<PushButton>
<Tooltip>Left Click: Pause/play, Right Click: Set cue
point</Tooltip>
<NumberStates>2</NumberStates>
<State>
<Number>0</Number>
<Pressed>btn_play1.png</Pressed>
<Unpressed>btn_play1.png</Unpressed>
</State>
<State>
<Number>1</Number>
<Pressed>btn_play1_over.png</Pressed>
<Unpressed>btn_play1_over.png</Unpressed>
</State>
<Pos>57,307</Pos>
<Connection>
<ConfigKey>[Channel1],play</ConfigKey>
<EmitOnDownPress>true</EmitOnDownPress>
<ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
<ConfigKey>[Channel1],cue_set</ConfigKey>
<EmitOnDownPress>true</EmitOnDownPress>
<ButtonState>RightButton</ButtonState>
</Connection>
</PushButton>
Example 2:
( makes somehow no sense to me , may even wrong cause of the different
<EmitOnDownPress> values for the <ButtonState>LeftButton</ButtonState>):
<PushButton>
<Tooltip>Set and activate Hotcue, delete Hotcue (right-click)</Tooltip>
<NumberStates>1</NumberStates>
<State>
<Number>0</Number>
<Pressed>btn_hotcue1_over.png</Pressed>
<Unpressed>btn_hotcue1.png</Unpressed>
</State>
<Pos>375,307</Pos>
<Connection>
<ConfigKey>[Channel1],hotcue_1_activate</ConfigKey>
<EmitOnDownPress>true</EmitOnDownPress>
<ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
<ConfigKey>[Channel1],hotcue_1_activate</ConfigKey>
<EmitOnDownPress>false</EmitOnDownPress>
<ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
<ConfigKey>[Channel1],hotcue_1_clear</ConfigKey>
<EmitOnDownPress>true</EmitOnDownPress>
<ButtonState>RightButton</ButtonState>
</Connection>
</PushButton>
Thank you.
jus
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel