PDA

View Full Version : Ptunes Skin coding help...


providence
08-24-2009, 07:26 PM
Anyone knows how to skin ptunes?

How do you make a next and previous button without playing the song? I would like to make them scroll through the list of songs available.

im using the following code for the next/prev button


<!-- prevtrack button --> <Control Type="Button" ID="16" Visible="CA"> <Value>ConditionFiveWayLeftPressed</Value> <Bounds><X>107</X><Y>266</Y><Width>53</Width><Height>54</Height></Bounds> <Appearance When="Clicked" Condition="!ConditionScanning">32</Appearance> <Appearance When="Clicked" Condition="ConditionScanning">32</Appearance> <Appearance When="Unclicked" Condition="true">33</Appearance> <Event Type="Held" msStart="500" msRepeat="250">ScanBackward</Event> <Event Type="Clicked" Condition="!ConditionScanning">PreviousTrack</Event> <Event Type="Clicked" Condition="ConditionScanning">DoneScanning</Event> </Control>

<!-- nexttrack button -->
<Control Type="Button" ID="17" Visible="CA">
<Bounds><X>160</X><Y>266</Y><Width>53</Width><Height>54</Height></Bounds> <Value>ConditionFiveWayRightPressed</Value> <Appearance When="Clicked" Condition="!ConditionScanning">34</Appearance> <Appearance When="Clicked" Condition="ConditionScanning">34</Appearance> <Appearance When="Unclicked" Condition="true">35</Appearance> <Event Type="Held" msStart="500" msRepeat="250">ScanForeward</Event> <Event Type="Clicked" Condition="!ConditionScanning">NextTrack</Event> <Event Type="Clicked" Condition="ConditionScanning">DoneScanning</Event> </Control>

Bla8
08-25-2009, 06:52 AM
If you mean scrolling through the playlist, those would be the incorrect commands, as they will force a song change:


<Control Type="Button" ID="53" Visible="CA + CO">
<Bounds> <X>304</X><Y>274</Y><Width>16</Width><Height>16</Height> </Bounds>
<Appearance When="Unclicked">38</Appearance>
<Appearance When="Clicked">39</Appearance>
<Event Type="Held" msStart="500" msRepeat="250">SetInt IntegerPlaylistDisplayPos IntegerPlaylistDisplayPos + IntegerPlaylistNumLines</Event>
<Event Type="Clicked" Condition="true">SetInt IntegerPlaylistDisplayPos IntegerPlaylistDisplayPos + IntegerPlaylistNumLines</Event>
</Control>

providence
08-25-2009, 08:35 AM
thanks Bla8 its perfect!

William2
08-31-2009, 02:54 AM
Thank you Bla8 for your Suggestion. I will try it later.











Online Shopping For men's shoes (http://www.fullfashionsense.com/shoes/).

Glen Lee
08-31-2009, 04:59 AM
Hi Bla8,
Do you know how to scroll down the song lists song by song without playing it? instead of going through the whole screen at once?

Bla8
08-31-2009, 07:42 AM
Hi Bla8,
Do you know how to scroll down the song lists song by song without playing it? instead of going through the whole screen at once?

If you mean scrolling up and down the playlist one song at a time with the buttons, you just need to modify the code to go up or down with 1 e.g.:

<Control Type="Button" ID="53" Visible="CA + CO">
<Bounds> <X>304</X><Y>274</Y><Width>16</Width><Height>16</Height> </Bounds>
<Event Type="Clicked" Condition="true">SetInt IntegerPlaylistDisplayPos IntegerPlaylistDisplayPos + 1</Event>
</Control>

nathanpc
09-13-2009, 06:05 PM
Put in the code tags:
<Control Type="Button" ID="53" Visible="CA + CO">
<Bounds> <X>304</X><Y>274</Y><Width>16</Width><Height>16</Height> </Bounds>
<Event Type="Clicked" Condition="true">SetInt IntegerPlaylistDisplayPos IntegerPlaylistDisplayPos + 1</Event>
</Control>

And developing skins for pTunes is very hard!