I want to use a icon for specific Parameter, something like this:
<textzone deck="2">
<size width="65" height="22"></size>
<pos x="728" y="235"></pos>
<up x="728" y="235"/>
<text font="LCD" dy="-5" size="32" color="#CA5906" align="center" format="%Plevel">
<icon>
<size width="28" height="11"></size>
<pos x="747" y="222"></pos>
<up x="747" y="222"/>
<down x="611" y="2279"></down>
</icon>
</text>
</textzone>
This code works with VDJ7 but not with VDJ8, what ist wrong with the Code for VDJ8?
<textzone deck="2">
<size width="65" height="22"></size>
<pos x="728" y="235"></pos>
<up x="728" y="235"/>
<text font="LCD" dy="-5" size="32" color="#CA5906" align="center" format="%Plevel">
<icon>
<size width="28" height="11"></size>
<pos x="747" y="222"></pos>
<up x="747" y="222"/>
<down x="611" y="2279"></down>
</icon>
</text>
</textzone>
This code works with VDJ7 but not with VDJ8, what ist wrong with the Code for VDJ8?
Mensajes Fri 11 Jul 14 @ 12:00 am
Hmm, i dont think that <icon> is implemented for textzones in version 8. It works with <button>s though.
try...
<button action="nothing" deck="2">
<size width="65" height="22"/>
<pos x="728" y="235"/>
<text font="LCD" dy="-5" size="32" color="#CA5906" align="center" format="%Plevel"/>
<icon dx="" dy="" width="28" height="11" x="611" y="2279"/>
</button>
and use the dx/dy to define its position inside the button
try...
<button action="nothing" deck="2">
<size width="65" height="22"/>
<pos x="728" y="235"/>
<text font="LCD" dy="-5" size="32" color="#CA5906" align="center" format="%Plevel"/>
<icon dx="" dy="" width="28" height="11" x="611" y="2279"/>
</button>
and use the dx/dy to define its position inside the button
Mensajes Fri 11 Jul 14 @ 12:29 am
Thank you! This works fine. Just one Question, how can realise it for this Code:
<textzone deck="1">
<size width="88" height="22"/>
<pos x="280" y="235"/>
<up x="280" y="235"/>
<text dy="-5" font="LCD" size="32" color="#00A600" align="center" format="%Pbpmex">
<icon><size width="67" height="11"/>
<pos x="289" y="222"/>
<up x="289" y="222"/>
<down x="543" y="2267"/>
</icon></text>
<text2 dy="-5" font="LCD" size="32" color="#00A600" align="center" format="%Ppitch">
<icon><size width="67" height="11"/>
<pos x="289" y="222"/>
<up x="289" y="222"/>
<down x="543" y="2279"/>
</icon></text2>
</textzone>
<textzone deck="1">
<size width="88" height="22"/>
<pos x="280" y="235"/>
<up x="280" y="235"/>
<text dy="-5" font="LCD" size="32" color="#00A600" align="center" format="%Pbpmex">
<icon><size width="67" height="11"/>
<pos x="289" y="222"/>
<up x="289" y="222"/>
<down x="543" y="2267"/>
</icon></text>
<text2 dy="-5" font="LCD" size="32" color="#00A600" align="center" format="%Ppitch">
<icon><size width="67" height="11"/>
<pos x="289" y="222"/>
<up x="289" y="222"/>
<down x="543" y="2279"/>
</icon></text2>
</textzone>
Mensajes Fri 11 Jul 14 @ 9:00 am
I see 2 ways here..
1. Use 2 <button>s with visibility and an action to toggle a variable.
E.g.
<button action="toggle 'myvar'" visibility="var 'myvar' 0">
..
<text ..use the text 1 here/>
</button>
<button action="toggle 'myvar'" visibility="var 'myvar' 1">
..
<text ..use the text 2 here />
</button>
or
2. Use the same button but with <text> and <textselected>
like..
<button action="toggle 'myvar'" >
..
<text ..use the text 1 here/>
<textselected* ..use the text 2 here/>
..
</button>
* the <textselected> will be used if the action is true , so variable is 1
the difference between the 2 ways is that with the first one, you can have different <icons>
1. Use 2 <button>s with visibility and an action to toggle a variable.
E.g.
<button action="toggle 'myvar'" visibility="var 'myvar' 0">
..
<text ..use the text 1 here/>
</button>
<button action="toggle 'myvar'" visibility="var 'myvar' 1">
..
<text ..use the text 2 here />
</button>
or
2. Use the same button but with <text> and <textselected>
like..
<button action="toggle 'myvar'" >
..
<text ..use the text 1 here/>
<textselected* ..use the text 2 here/>
..
</button>
* the <textselected> will be used if the action is true , so variable is 1
the difference between the 2 ways is that with the first one, you can have different <icons>
Mensajes Fri 11 Jul 14 @ 6:57 pm