2013-11-01, 04:49
I am learning skinning by modding djtolls AWSOME skin Joggler
Joggler has a context menu that comes up for each thumb nail in the music view so based on that I have a button next to the context button that when pressed brings up a yes no dialog.
I would like to pass the Artist, Song and Thumb to this dialog is this possible?
I can pass the $INFO[ListItem.Label] in the context dialog but that doesn't work for the custom dialog.
file view
Custom dialog
Any suggestions?
Thanks you
Joggler has a context menu that comes up for each thumb nail in the music view so based on that I have a button next to the context button that when pressed brings up a yes no dialog.
I would like to pass the Artist, Song and Thumb to this dialog is this possible?
I can pass the $INFO[ListItem.Label] in the context dialog but that doesn't work for the custom dialog.
file view
Code:
<control type="group">
<posx>11</posx>
<!-- start context Buttons -->
<control type="button"> <!-- 1context -->
<posx>100</posx>
<posy>60</posy>
<width>64</width>
<height>64</height>
<label>-</label>
<font>-</font>
<texturefocus>info-icon-context-FO2.png</texturefocus>
<texturenofocus>blank.png</texturenofocus>
<onclick>ContextMenu</onclick>
<visible>Control.IsVisible(460)</visible>
</control>
<control type="button"> <!-- 1 custom -->
<posx>170</posx>
<posy>60</posy>
<width>64</width>
<height>64</height>
<label>-</label>
<font>-</font>
<texturefocus>info-icon-context-FO2.png</texturefocus>
<texturenofocus>blank.png</texturenofocus>
<onclick>ActivateWindow(1234)</onclick>
<!--<visible>Control.IsVisible(460)</visible>-->
</control>
<control type="button"> <!-- 2context -->...
Custom dialog
Code:
<window id="1234">
<defaultcontrol>1000</defaultcontrol>
<!--<include>dialogeffect</include>-->
<coordinates>
<system>1</system>
<posx>340</posx>
<posy>235</posy>
</coordinates>
<animation type="WindowOpen">
<effect type="fade" start="0" end="100" time="1000"/>
<effect type="zoom" start="10,10" end="100,100" center="auto" time="200" delay="200"/>
<effect type="zoom" start="150,150" end="100,100" center="auto" time="400" delay="400"/>
</animation>
<animation type="WindowClose">
<effect type="fade" start="100" end="0" time="1000"/>
</animation>
<controls>
<include name="CommonMediaPlayingBackground">
<control type="visualisation">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<!--<visible>Player.HasAudio + !Skin.HasSetting(ShowBackgroundVis)</visible>-->
</control>
</include>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>600</width>
<height>230</height>
<texture border="20">OverlayDialogBackground.png</texture>
</control>
<!-- Art work-->
<control type="image"> <!-- Art work image Boarder-->
<posx>400</posx>
<posy>25</posy>
<width>170</width>
<height>170</height>
<texture border="20">OverlayDialogBackground.png</texture>
</control>
<control type="image"> <!-- Art work image -->
<posx>410</posx>
<posy>35</posy>
<width>150</width>
<height>150</height>
<texture>$INFO[Container.ListItem.Icon]</texture>
</control>
<control type="label" id="1">
<description>header label</description>
<posx>20</posx>
<posy>18</posy>
<width>560</width>
<height>30</height>
<font>font13_title</font>
<label>Play $INFO[ListItem.Label]</label>
<align>left</align>
<aligny>center</aligny>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
</control>
<control type="label" id="2">
<description>dialog line 1</description>
<posx>20</posx>
<posy>60</posy>
<width>560</width>
<height>30</height>
<align>left</align>
<aligny>center</aligny>
<label>Play now will clear the queue</label>
<font>font13</font>
</control>
<control type="label" id="3">
<description>dialog line 2</description>
<posx>20</posx>
<posy>85</posy>
<width>560</width>
<height>30</height>
<align>left</align>
<aligny>center</aligny>
<label>Queue will add $INFO[ListItem.Label] to the queue</label>
<font>font13</font>
</control>
<control type="label" id="4">
<description>dialog line 3</description>
<posx>20</posx>
<posy>110</posy>
<width>560</width>
<height>30</height>
<align>left</align>
<aligny>center</aligny>
<label>-</label>
<font>font13</font>
</control>
<control type="button" id="11"> <!--Queue button-->
<description>Queue button</description>
<posx>75</posx>
<posy>170</posy>
<width>150</width>
<height>40</height>
<label>Add to Queue</label>
<font>font12_title</font>
<textcolor>white</textcolor>
<focusedcolor>white</focusedcolor>
<align>center</align>
<texturenofocus border="5">MenuItemNF.png</texturenofocus>
<texturefocus border="5">button-focus.png</texturefocus>
<onclick>Queue</onclick>
<onleft>10</onleft>
<onright>10</onright>
<onup>11</onup>
<ondown>11</ondown>
</control>
<control type="button" id="11"> <!--Play button-->
<description>Play button</description>
<posx>230</posx>
<posy>170</posy>
<width>150</width>
<height>40</height>
<label>Play Now</label>
<font>font12_title</font>
<textcolor>white</textcolor>
<focusedcolor>white</focusedcolor>
<align>center</align>
<texturenofocus border="5">MenuItemNF.png</texturenofocus>
<texturefocus border="5">button-focus.png</texturefocus>
<onclick>PlayMedia($ESCINFO[ListItem.Path])</onclick>
<onleft>10</onleft>
<onright>10</onright>
<onup>11</onup>
<ondown>11</ondown>
</control>
<control type="button" id="10"> <!--Open Menu-->
<description>Open Menu</description>
<posx>385</posx>
<posy>170</posy>
<width>150</width>
<height>40</height>
<label>Open folder</label>
<font>font12_title</font>
<textcolor>white</textcolor>
<focusedcolor>white</focusedcolor>
<align>center</align>
<texturenofocus border="5">MenuItemNF.png</texturenofocus>
<texturefocus border="5">button-focus.png</texturefocus>
<onclick>PlayMedia($ESCINFO[ListItem.Path])</onclick>
<onleft>11</onleft>
<onright>11</onright>
<onup>10</onup>
<ondown>10</ondown>
</control>
<control type="button"> <!--Close Window button-->
<description>Close Window button</description>
<posx>540</posx>
<posy>10</posy>
<width>48</width>
<height>48</height>
<label>-</label>
<font>-</font>
<onclick>PreviousMenu</onclick>
<texturefocus>closeoverlaymenuNF.png</texturefocus>
<texturenofocus>closeoverlaymenuFO.png</texturenofocus>
<include>AnimationSearchMETRObuttonHalfZoom</include>
<onleft>1000</onleft>
<onright>1000</onright>
<onup>1000</onup>
<ondown>1000</ondown>
<visible>system.getbool(input.enablemouse)</visible>
</control>
</controls>
</window>
Any suggestions?
Thanks you