Open main menu

Difference between revisions of "GUI Themes/STX Syntax"

m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 15: Line 15:
     ...
     ...
</render_info>
</render_info>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 39: Line 39:
     ...
     ...
</palette>
</palette>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 59: Line 59:
         rgb = '255, 0, 0'
         rgb = '255, 0, 0'
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 86: Line 86:
     ...
     ...
</bitmaps>
</bitmaps>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 105: Line 105:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<bitmap filename = 'logo.bmp'/>
<bitmap filename = 'logo.bmp'/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 132: Line 132:
     ...
     ...
</fonts>
</fonts>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 153: Line 153:
         file = 'default'
         file = 'default'
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 189: Line 189:
             color = 'black'
             color = 'black'
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 232: Line 232:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<defaults fill = 'gradient' fg_color = 'white' bevel_color = '237, 169, 72'/>
<defaults fill = 'gradient' fg_color = 'white' bevel_color = '237, 169, 72'/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 253: Line 253:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<cursor file = 'cursor.bmp' hotspot = '0, 0' scale = '3'/>
<cursor file = 'cursor.bmp' hotspot = '0, 0' scale = '3'/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 283: Line 283:
     />
     />
</drawdata>
</drawdata>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 340: Line 340:
             bevel = 1
             bevel = 1
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 420: Line 420:
         horizontal_align = 'center'
         horizontal_align = 'center'
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 466: Line 466:
     ...
     ...
</layout_info>
</layout_info>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 490: Line 490:
     ...
     ...
</globals>
</globals>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 510: Line 510:
<def var = 'WidgetSize' value = 'kBigWidgetSize' />
<def var = 'WidgetSize' value = 'kBigWidgetSize' />
<def resolution = 'y>399' var = 'WidgetSize' value = 'kNormalWidgetSize' />
<def resolution = 'y>399' var = 'WidgetSize' value = 'kNormalWidgetSize' />
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 561: Line 561:
         size = '128, 18'
         size = '128, 18'
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 583: Line 583:
     </layout>
     </layout>
</dialog>
</dialog>
</source>
</syntaxhighlight>


Because of this, there are no unique identifiers for Widget names. You may give them any alias (since these aliases are only queried by your own layout definition, inside the parser). However, for added customization, the Theme Renderer will also poll a few unique Global Widget names for their layout information:
Because of this, there are no unique identifiers for Widget names. You may give them any alias (since these aliases are only queried by your own layout definition, inside the parser). However, for added customization, the Theme Renderer will also poll a few unique Global Widget names for their layout information:
Line 620: Line 620:
     ...
     ...
</dialog>
</dialog>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 687: Line 687:
     ...
     ...
</layout>
</layout>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 724: Line 724:
     </layout>
     </layout>
</dialog>
</dialog>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 750: Line 750:
<space size = '16' />
<space size = '16' />
<widget name = 'AddGameButton' type = 'Button' />
<widget name = 'AddGameButton' type = 'Button' />
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
Line 773: Line 773:
         space by the button's width; hence Button2 is now aligned to the right */
         space by the button's width; hence Button2 is now aligned to the right */
</layout>
</layout>
</source>
</syntaxhighlight>


===== Properties =====
===== Properties =====
Line 797: Line 797:
         type = 'Button'  
         type = 'Button'  
/>
/>
</source>
</syntaxhighlight>


===== Description =====
===== Description =====
TrustedUser
2,147

edits