Good evening everyone,
I need some help with skinning buttons for Online Videos.
What I am trying to achieve is move the buttons off the hidden menu into the main window. I've taken a screenshot to show what I am doing.
The problem is with the bottom two buttons <id>5</id> and <id>9</id> [ full code at the end of this text.]
They work fine, but navigation is awful. This type of selectbutton just isn't designed for sideways navigation as you end up changing the values. Ideally I would like to change them to a menubutton with dialoglist, but I don't know what I am doing as the guidance in the wiki is, to say the least, thin on this topic (this would be a really good addition to the tutorials)
What I do know - some plugins crash if certain default buttons aren't present, or if you muck about with their button type, so they have to be kept as they are. What I would suggest to myself is moving the two problematic buttons to off-screen minus coordinates and putting in new buttons with different <id>s in their place.
What I don't know how to do, is how to bind variables to a dialog style menubutton, and what properties to set for these two functions in OnlineVideos. A fairly fundamental failing on my part therefore. I've had a good search of the wiki and while it explains what binding is, there are no examples I can find, and I would only be guessing at setting OnlineVideos properties.
Any advice would be very gratefully received
Thank you
RH
The problem buttons:
<control>
<description>Button 2 max results</description>
<type>selectbutton</type>
<id>5</id>
<posX>68</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label>#OnlineVideos.Translation.MaxResults.Label</label>
<textcolor>FF000000</textcolor>
<textcolorNoFocus>ffffffff</textcolorNoFocus>
<onup>13</onup>
<ondown>5</ondown>
<onleft>901</onleft>
<onright>9</onright>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>
<control>
<description>Button 4 category</description>
<type>selectbutton</type>
<id>9</id>
<posX>460</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label>#OnlineVideos.Translation.Category.Label</label>
<textcolor>FF000000</textcolor>
<textcolorNoFocus>ffffffff</textcolorNoFocus>
<onup>10</onup>
<ondown>9</ondown>
<onleft>13</onleft>
<onright>50</onright>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>
What I would like: (format as per MyMusic)
<control>
<description>View-As</description>
<type>menubutton</type>
<id>2</id>
<posX>68</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label></label>
<mode>dialoglist</mode>
<dialogTitle>792</dialogTitle>
<valueTextInButton>yes</valueTextInButton>
<valuePrefixText>95</valuePrefixText>
<onup>.....
etc
</control>
I need some help with skinning buttons for Online Videos.
What I am trying to achieve is move the buttons off the hidden menu into the main window. I've taken a screenshot to show what I am doing.
The problem is with the bottom two buttons <id>5</id> and <id>9</id> [ full code at the end of this text.]
They work fine, but navigation is awful. This type of selectbutton just isn't designed for sideways navigation as you end up changing the values. Ideally I would like to change them to a menubutton with dialoglist, but I don't know what I am doing as the guidance in the wiki is, to say the least, thin on this topic (this would be a really good addition to the tutorials)
What I do know - some plugins crash if certain default buttons aren't present, or if you muck about with their button type, so they have to be kept as they are. What I would suggest to myself is moving the two problematic buttons to off-screen minus coordinates and putting in new buttons with different <id>s in their place.
What I don't know how to do, is how to bind variables to a dialog style menubutton, and what properties to set for these two functions in OnlineVideos. A fairly fundamental failing on my part therefore. I've had a good search of the wiki and while it explains what binding is, there are no examples I can find, and I would only be guessing at setting OnlineVideos properties.
Any advice would be very gratefully received
Thank you
RH
The problem buttons:
<control>
<description>Button 2 max results</description>
<type>selectbutton</type>
<id>5</id>
<posX>68</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label>#OnlineVideos.Translation.MaxResults.Label</label>
<textcolor>FF000000</textcolor>
<textcolorNoFocus>ffffffff</textcolorNoFocus>
<onup>13</onup>
<ondown>5</ondown>
<onleft>901</onleft>
<onright>9</onright>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>
<control>
<description>Button 4 category</description>
<type>selectbutton</type>
<id>9</id>
<posX>460</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label>#OnlineVideos.Translation.Category.Label</label>
<textcolor>FF000000</textcolor>
<textcolorNoFocus>ffffffff</textcolorNoFocus>
<onup>10</onup>
<ondown>9</ondown>
<onleft>13</onleft>
<onright>50</onright>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>
What I would like: (format as per MyMusic)
<control>
<description>View-As</description>
<type>menubutton</type>
<id>2</id>
<posX>68</posX>
<posY>912</posY>
<font>TitanLight12</font>
<label></label>
<mode>dialoglist</mode>
<dialogTitle>792</dialogTitle>
<valueTextInButton>yes</valueTextInButton>
<valuePrefixText>95</valuePrefixText>
<onup>.....
etc
</control>