Kodi ——6 Controls (8)Spin Control

6.8 旋转控件

    旋转控件用于可选择的选项列表(比如页面上/下翻转控制)。你可以选择位置,大小,以及旋转控件的外观。

6.8.1 Example

<control type="spincontrol" id="14">
      <description>My first spin control</description>
      <left>80</left>
      <top>60</top>
      <width>250</width>
      <height>200</height>
      <visible>true</visible>
      <colordiffuse>FFFFFFFF</colordiffuse>
      <textureup colordiffuse="FFFFAAFF">myuptexture.png</textureup>
      <textureupfocus colordiffuse="FFFFAAFF">myupfocustexture.png</textureupfocus>
      <texturedown colordiffuse="FFFFAAFF">mydowntexture.png</texturedown>
      <texturedownfocus colordiffuse="FFFFAAFF">mydownfocustexture.png</texturedownfocus>
      <textureupdisabled colordiffuse="AAFFAAFF">mydowntexture.png</textureupdisabled>
      <texturedowndisabled colordiffuse="AAFFAAFF">mydownfocustexture.png</texturedowndisabled>
      <subtype>page</subtype>
      <font>font12</font>
      <textcolor>FFFFFFFF</textcolor>
      <disabledcolor>80FFFFFF</disabledcolor>
      <align></align>
      <aligny></aligny>
      <textoffsetx></textoffsetx>
      <textoffsety></textoffsety>
      <pulseonselect></pulseonselect>
      <onup>2</onup>
      <ondown>3</ondown>
      <onleft>1</onleft>
      <onright>1</onright>
</control>

6.8.2 Available tags

In addition to the Default Control Tags the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

TagDescription
textureupSpecifies the image file which should be displayed for the up arrow when it doesn't have focus. See here for additional information about textures.
textureupfocusSpecifies the image file which should be displayed for the up button when it has focus.
textureupdisabledSpecifies the image file which should be displayed for the up arrow when the button is disabled.
texturedownSpecifies the image file which should be displayed for the down button when it is not focused.
texturedownfocusSpecifies the image file which should be displayed for the down button when it has focus.
texturedowndisabledSpecifies the image file which should be displayed for the up arrow when the button is disabled.
fontFont used for the button label. From fonts.xml.
spincolorThe colour of the text used for this spin control. In AARRGGBB hex format. As of Helix, this doesn't actually get processed, use textcolor
textcolorColor used for displaying the label. In AARRGGBB hex format, or a name from the colour theme..
disabledcolorColor used for the label if the control is disabled. In AARRGGBB hex format, or a name from the colour theme.
shadowcolorSpecifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the colour theme.
subtypeDefines what type of information the spinner holds. Can be int, float, text or page. Defaults to text. Make sure you use page for a page control.
alignLabel horizontal alignment on the control. Defaults to right, can also be left.
alignyLabel vertical alignment on the control. Defaults to top, can also be center.
textoffsetxAmount to offset the label from the left (or right) edge of the button when using left or right alignment.
textoffsetyAmount to offset the label from the top edge of the button when using top alignment.
textwidthWill truncate any text that's too long.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值