Changes between Version 1 and Version 2 of MythUIThemeFormat


Ignore:
Timestamp:
05/21/06 16:53:37 (20 years ago)
Author:
Isaac Richards
Comment:

More text..

Legend:

Unmodified
Added
Removed
Modified
  • MythUIThemeFormat

    v1 v2  
    3838Position on screen, relative to parent.
    3939
     40Valid widget types are:
     41 * imagetype
     42 * textarea
     43 * listbutton
     44 * horizontallistbutton
     45 * statetype
     46
    4047== Images ==
    4148
     
    9097
    9198All values optional except area, font, and value.
     99
     100== State Types ==
     101
     102State Types are collections of types that display different states - like the watermark image on the main menus.
     103
     104By name (valid names depend on context):
     105{{{
     106  <statetype name="blah">
     107    <showempty>yes</showempty>
     108    <state name="selected">
     109       <imagetype name="selectimage">
     110         <filename>selectimage.png</filename>
     111       </imagetype>
     112    </state>
     113    <state name="normal">
     114       <imagetype name="normalimage">
     115         <filename>normalimage.png</filename>
     116       </imagetype>
     117    </state>
     118}}}
     119
     120By type (valid types are: 'none', 'off', 'half', full', and what's used depends on context):
     121{{{
     122  <statetype>
     123    <showempty>yes</showempty>
     124    <state name="off">
     125       <imagetype name="offimage">
     126         <filename>offimage.png</filename>
     127       </imagetype>
     128    </state>
     129    <state type="full">
     130       <imagetype name="fullimage">
     131         <filename>fullimage.png</filename>
     132       </imagetype>
     133    </state>
     134  </statetype>
     135}}}
     136
     137 * showempty - allow empty states to be displayed (show nothing, that is).
     138
     139== Button List ==
     140{{{
     141 <buttonlist name="basebuttonlist">
     142    <area>x,y,w,h</area>
     143    <activefont>fontname</activefont>
     144    <inactivefont>fontname</inactivefont>
     145    <scrollarrows show="yes">
     146       <statetype name="upscrollarrow">
     147          <state type="off">
     148              <imagetype name="upon">
     149                <filename>lb-uparrow-reg.png</filename>
     150              </imagetype>
     151          </state>
     152          <state type="full">
     153              <imagetype name="upon">
     154                <filename>lb-dnarrow-reg.png</filename>
     155              </imagetype>
     156          </state>
     157       </statetype>
     158       <statetype name="downscrollarrow">
     159          <state type="off">
     160              <imagetype name="upon">
     161                <filename>lb-dnarrow-reg.png</filename>
     162              </imagetype>
     163          </state>
     164          <state type="full">
     165              <imagetype name="upon">
     166                <filename>lb-dnarrow-sel.png</filename>
     167              </imagetype>
     168          </state>
     169       </statetype>
     170    <showarrow>yes</showarrow>
     171    <arrow filename="lb-arrow.png"/>
     172    <check-empty filename="lb-check-empty.png"/>
     173    <check-half filename="lb-check-half.png"/>
     174    <check-full filename="lb-check-full.png"/>
     175    <regular-background gradientstart="#505050" gradientend="#000000" gradientalpha="100"/>
     176    <selected-background gradientstart="#52CA38" gradientend="#349838" gradientalpha="255"/>
     177    <inactive-background gradientstart="#52CA38" gradientend="#349838" gradientalpha="255"/>
     178    <spacing>5</spacing>
     179    <margin>5</margin>
     180    <drawfrombottom>yes</drawfrombottom>
     181  </buttonlist>
     182}}}
     183
     184A Horizontal buttonlist has one additional config:
     185{{{
     186  <horizontalbuttonlist>
     187    ... same as above ...
     188    <items>3</items>
     189  </horizontalbuttonlist>
     190}}}
     191
     192= Inheritance =
     193
     194Widgets can be inherited from previously defined widgets of the same type.  For example:
     195
     196{{{
     197   <buttonlist name="newbasebuttonlist" from="basebuttonlist">
     198    <area>x,y,w,h</area>
     199   </buttonlist>
     200}}}
     201