Skip to content

Instantly share code, notes, and snippets.

@PredatorMF PredatorMF/UIOption.cpp
Last active Mar 15, 2019

Embed
What would you like to do?
Urho3D UIOption
<?xml version="1.0"?>
<element type="Window">
<attribute name="Name" value="Settings" />
<attribute name="Position" value="511 121" />
<attribute name="Size" value="554 535" />
<attribute name="Pivot" value="0 0" />
<attribute name="Opacity" value="0.84" />
<attribute name="Color" value="0.1 0.1 0.1 1" />
<attribute name="Top Left Color" value="0.1 0.1 0.1 1" />
<attribute name="Top Right Color" value="0.1 0.1 0.1 1" />
<attribute name="Bottom Left Color" value="0.1 0.1 0.1 1" />
<attribute name="Bottom Right Color" value="0.1 0.1 0.1 1" />
<attribute name="Layout Mode" value="Vertical" />
<attribute name="Layout Spacing" value="4" />
<attribute name="Layout Border" value="6 6 6 6" />
<attribute name="Texture" value="Texture2D;" />
<attribute name="Image Rect" value="48 0 64 16" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Resize Border" value="6 6 6 6" />
<attribute name="Is Movable" value="true" />
<attribute name="Is Resizable" value="true" />
<element>
<attribute name="Name" value="Title Bar" />
<attribute name="Min Size" value="184 16" />
<attribute name="Max Size" value="2147483647 16" />
<attribute name="Pivot" value="0 0" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="8" />
<element type="Text">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Settings" />
<attribute name="Auto Localizable" value="true" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element style="Panel">
<attribute name="Name" value="Options" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Border" value="0 4 0 4" />
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptDisplayMode" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Display Mode" />
<attribute name="Option Strings">
<variant type="Int" value="3" />
<variant type="String" value="Window" />
<variant type="String" value="Borderless Window" />
<variant type="String" value="Full Screen" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Display Mode" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Window" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptMonitor" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Monitor" />
<attribute name="Option Index" value="0" />
<attribute name="Option Strings">
<variant type="Int" value="2" />
<variant type="String" value="0" />
<variant type="String" value="1" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Monitor" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="0" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptRate" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Refresh Rate" />
<attribute name="Option Strings">
<variant type="Int" value="3" />
<variant type="String" value="60 Hz" />
<variant type="String" value="120 Hz" />
<variant type="String" value="144 Hz" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Refresh Rate" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="144 Hz" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptResolution" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Resolution" />
<attribute name="Option Index" value="0" />
<attribute name="Option Strings">
<variant type="Int" value="3" />
<variant type="String" value="1280x720" />
<variant type="String" value="1366x768" />
<variant type="String" value="1920x1080" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Resolution" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="1920x1080" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="Text">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="ADVANCED" />
<attribute name="Auto Localizable" value="true" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element type="UIBoolOption" style="UIBoolOption">
<attribute name="Name" value="OptVsync" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_bool.xml" />
<attribute name="Option Name" value="V-Sync" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="V-Sync" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Enabled" value="true" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Off" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Visible" value="false" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="On" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIBoolOption" style="UIBoolOption">
<attribute name="Name" value="OptBorder" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_bool.xml" />
<attribute name="Option Name" value="Window Border" />
<attribute name="Option Value" value="true" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Window Border" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Visible" value="false" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Off" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Enabled" value="true" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="On" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIBoolOption" style="UIBoolOption">
<attribute name="Name" value="OptPreventScreensaver" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_bool.xml" />
<attribute name="Option Name" value="Prevent Screensaver" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Prevent Screensaver" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Enabled" value="true" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Off" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage" internal="true" style="none">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Visible" value="false" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text" internal="true" style="none">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="On" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptFrameLimit" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Framerate Limit" />
<attribute name="Option Index" value="0" />
<attribute name="Option Strings">
<variant type="Int" value="10" />
<variant type="String" value="Unlimited" />
<variant type="String" value="25" />
<variant type="String" value="30" />
<variant type="String" value="60" />
<variant type="String" value="75" />
<variant type="String" value="100" />
<variant type="String" value="120" />
<variant type="String" value="125" />
<variant type="String" value="144" />
<variant type="String" value="250" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Framerate Limit" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Unlimited" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<element type="UIMultiOption" style="UIMultiOption">
<attribute name="Name" value="OptShowFPS" />
<attribute name="Min Size" value="200 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<attribute name="Focus Mode" value="Focusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<attribute name="Template" value="XMLFile;ui/ui_option_multi.xml" />
<attribute name="Option Name" value="Show FPS" />
<attribute name="Option Strings">
<variant type="Int" value="4" />
<variant type="String" value="No" />
<variant type="String" value="Simple" />
<variant type="String" value="Verbose" />
<variant type="String" value="Graph" />
</attribute>
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Show FPS" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element internal="true" style="none">
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage" internal="true" style="none">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text" internal="true" style="none">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="No" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button" internal="true" style="none">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text" internal="true" style="none">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
</element>
<element>
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="2147483647 40" />
<attribute name="Pivot" value="0 0" />
<element type="Button">
<attribute name="Name" value="BtnApply" />
<attribute name="Size" value="120 32" />
<attribute name="Min Size" value="120 32" />
<attribute name="Max Size" value="120 32" />
<attribute name="Min Anchor" value="1 0.5" />
<attribute name="Max Anchor" value="1 0.5" />
<attribute name="Pivot" value="1 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Apply" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<?xml version="1.0"?>
<element>
<attribute name="Name" value="TopToolbar" />
<attribute name="Position" value="400 145" />
<attribute name="Size" value="569 80" />
<attribute name="Min Size" value="0 80" />
<attribute name="Max Size" value="2147483647 80" />
<attribute name="Pivot" value="0 0" />
<attribute name="Opacity" value="0.84" />
<attribute name="Focus Mode" value="ResetFocus" />
<attribute name="Layout Mode" value="Horizontal" />
<element type="BorderImage">
<attribute name="Name" value="background" />
<attribute name="Pivot" value="0 0" />
<attribute name="Color" value="0.1 0.1 0.1 1" />
<attribute name="Top Left Color" value="0.1 0.1 0.1 1" />
<attribute name="Top Right Color" value="0.1 0.1 0.1 1" />
<attribute name="Bottom Left Color" value="0.1 0.1 0.1 1" />
<attribute name="Bottom Right Color" value="0.1 0.1 0.1 1" />
<attribute name="Texture" value="Texture2D;" />
<attribute name="Image Rect" value="0 0 256 128" />
<element>
<attribute name="Position" value="12 0" />
<attribute name="Size" value="565 80" />
<attribute name="Min Size" value="400 80" />
<attribute name="Max Size" value="2147483647 80" />
<attribute name="Pivot" value="0 0" />
<attribute name="Layout Mode" value="Horizontal" />
<element>
<attribute name="Name" value="Logo" />
<attribute name="Min Size" value="250 80" />
<attribute name="Max Size" value="250 80" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Border" value="8 8 0 0" />
<element type="BorderImage">
<attribute name="Name" value="LogoImage" />
<attribute name="Min Size" value="128 64" />
<attribute name="Max Size" value="128 64" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Texture" value="Texture2D;Textures/Logo.png" />
<attribute name="Image Rect" value="0 0 128 64" />
</element>
<element>
<attribute name="Name" value="AppName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Vertical" />
<element type="Text">
<attribute name="Name" value="LblApp" />
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Use Derived Opacity" value="true" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="14" />
<attribute name="Text" value="Urho3D" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
<attribute name="Shadow Offset" value="2 2" />
</element>
<element type="Text">
<attribute name="Name" value="LblVersion" />
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Use Derived Opacity" value="true" />
<attribute name="Font" value="Font;Fonts/Roboto-Regular.ttf" />
<attribute name="Font Size" value="10" />
<attribute name="Text" value="1.7" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
<element>
<attribute name="Name" value="Controls" />
<attribute name="Pivot" value="0 0" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="15" />
<attribute name="Layout Border" value="14 14 0 0" />
<element type="Button">
<attribute name="Name" value="BtnSettings" />
<attribute name="Min Size" value="64 48" />
<attribute name="Max Size" value="64 48" />
<attribute name="Pivot" value="0 0" />
<attribute name="Image Rect" value="16 0 32 16" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="0 16" />
<attribute name="Pressed Image Offset" value="16 0" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Position" value="15 8" />
<attribute name="Size" value="32 32" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Pivot" value="0 0" />
<attribute name="Texture" value="Texture2D;ui/preferences-system.png" />
<attribute name="Image Rect" value="0 0 256 256" />
</element>
</element>
<element type="Button">
<attribute name="Name" value="BtnConsole" />
<attribute name="Min Size" value="64 48" />
<attribute name="Max Size" value="64 48" />
<attribute name="Pivot" value="0 0" />
<attribute name="Image Rect" value="16 0 32 16" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="0 16" />
<attribute name="Pressed Image Offset" value="16 0" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Position" value="15 8" />
<attribute name="Size" value="32 32" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Pivot" value="0 0" />
<attribute name="Texture" value="Texture2D;ui/utilities-terminal.png" />
<attribute name="Image Rect" value="0 0 256 256" />
</element>
</element>
<element type="Button">
<attribute name="Name" value="BtnVideoPlayer" />
<attribute name="Min Size" value="64 48" />
<attribute name="Max Size" value="64 48" />
<attribute name="Pivot" value="0 0" />
<attribute name="Image Rect" value="16 0 32 16" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="0 16" />
<attribute name="Pressed Image Offset" value="16 0" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Position" value="15 8" />
<attribute name="Size" value="32 32" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Pivot" value="0 0" />
<attribute name="Texture" value="Texture2D;ui/video-television-3.png" />
<attribute name="Image Rect" value="0 0 256 256" />
</element>
</element>
<element type="Button">
<attribute name="Name" value="BtnWebBrowser" />
<attribute name="Min Size" value="64 48" />
<attribute name="Max Size" value="64 48" />
<attribute name="Pivot" value="0 0" />
<attribute name="Image Rect" value="16 0 32 16" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="0 16" />
<attribute name="Pressed Image Offset" value="16 0" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Position" value="15 8" />
<attribute name="Size" value="32 32" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Pivot" value="0 0" />
<attribute name="Texture" value="Texture2D;ui/applications-internet.png" />
<attribute name="Image Rect" value="0 0 256 256" />
</element>
</element>
</element>
</element>
</element>
</element>
<?xml version="1.0"?>
<element type="BorderImage">
<attribute name="Name" value="BoolOption" />
<attribute name="Pivot" value="0 0" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<element type="Text">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="V-Sync" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element>
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Off" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="BorderImage">
<attribute name="Name" value="Status" />
<attribute name="Min Size" value="10 20" />
<attribute name="Max Size" value="10 20" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Is Visible" value="false" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 2 14 14" />
</element>
<element type="Text">
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="On" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
<?xml version="1.0"?>
<element type="BorderImage">
<attribute name="Name" value="MultiOption" />
<attribute name="Pivot" value="0 0" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="2" />
<attribute name="Layout Border" value="12 0 12 0" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="2 18 14 30" />
<attribute name="Hover Image Offset" value="16 -16" />
<element type="Text">
<attribute name="Name" value="LblName" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Top Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Left Color" value="0.7 0.7 0.7 1" />
<attribute name="Bottom Right Color" value="0.7 0.7 0.7 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Display Mode" />
<attribute name="Text Effect" value="Stroke" />
</element>
<element>
<attribute name="Min Size" value="0 40" />
<attribute name="Max Size" value="9999 40" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Layout Spacing" value="4" />
<element type="Button">
<attribute name="Name" value="BtnLeft" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&lt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="BorderImage">
<attribute name="Min Size" value="64 32" />
<attribute name="Max Size" value="9999 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Image Border" value="2 2 2 2" />
<element type="Text">
<attribute name="Name" value="LblValue" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="12" />
<attribute name="Text" value="Full Screen" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
<element type="Button">
<attribute name="Name" value="BtnRight" />
<attribute name="Min Size" value="32 32" />
<attribute name="Max Size" value="32 32" />
<attribute name="Min Anchor" value="0 0.5" />
<attribute name="Max Anchor" value="0 0.5" />
<attribute name="Pivot" value="0 0.5" />
<attribute name="Focus Mode" value="NotFocusable" />
<attribute name="Layout Mode" value="Horizontal" />
<attribute name="Texture" value="Texture2D;ui/ui_flat.png" />
<attribute name="Image Rect" value="0 16 16 32" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Hover Image Offset" value="16 0" />
<attribute name="Pressed Image Offset" value="-16 -16" />
<attribute name="Pressed Child Offset" value="-1 1" />
<element type="Text">
<attribute name="Pivot" value="0 0" />
<attribute name="Top Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Top Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Left Color" value="0.85 0.85 0.85 1" />
<attribute name="Bottom Right Color" value="0.85 0.85 0.85 1" />
<attribute name="Is Editable" value="false" />
<attribute name="Font" value="Font;Fonts/Roboto-Bold.ttf" />
<attribute name="Font Size" value="18" />
<attribute name="Text" value="&gt;" />
<attribute name="Text Alignment" value="Center" />
<attribute name="Text Effect" value="Stroke" />
</element>
</element>
</element>
</element>
#include "ui_option.h"
#include <Urho3D/Core/Context.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/UI/UI.h>
#include <Urho3D/UI/Text.h>
#include <Urho3D/UI/UIEvents.h>
#include <Urho3D/Input/InputEvents.h>
namespace Urho3D {
extern const char* UI_CATEGORY;
// static
void UITemplateElement::RegisterObject(Context* context) {
context->RegisterFactory<UITemplateElement>(UI_CATEGORY);
URHO3D_COPY_BASE_ATTRIBUTES(BorderImage);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Template", GetTemplate, SetTemplate, ResourceRef, ResourceRef(XMLFile::GetTypeStatic()), AM_DEFAULT);
}
UITemplateElement::UITemplateElement(Context* context)
: BorderImage(context) {
}
UITemplateElement::~UITemplateElement() {
}
void UITemplateElement::SetTemplate(const ResourceRef& xmltemplate) {
if (template_ == xmltemplate.name_)
return;
template_ = xmltemplate.name_;
RemoveAllChildren();
// load template
if (template_.Empty())
return;
auto ui = GetSubsystem<UI>();
auto cache = GetSubsystem<ResourceCache>();
auto xml = cache->GetResource<XMLFile>(template_);
if (!xml)
return;
auto name = GetName();
LoadXML(xml->GetRoot(), 0);
SetName(name);
//auto child = CreateChild<BorderImage>();
//child->SetInternal(true);
//child->LoadXML(xml->GetRoot(), 0);
auto child = GetChild(0);
child->SetInternal(true);
if (child) child->SetInternal(true);
PODVector<UIElement*> children;
GetChildren(children, true);
for (auto c : children) {
c->SetInternal(true);
}
OnTemplateLoaded();
}
ResourceRef UITemplateElement::GetTemplate() const {
return ResourceRef(XMLFile::GetTypeStatic(), template_);
}
// static
void UIOption::RegisterObject(Context* context) {
context->RegisterFactory<UIOption>(UI_CATEGORY);
URHO3D_COPY_BASE_ATTRIBUTES(UITemplateElement);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Name", GetOptionName, SetOptionName, String, "", AM_DEFAULT);
}
UIOption::UIOption(Context* context): UITemplateElement(context) {
SetFocusMode(FM_FOCUSABLE);
}
UIOption::~UIOption() {
}
void UIOption::SetOptionName(const String& name) {
option_name_ = name;
auto label = GetChildDynamicCast<Text>("LblName", true);
if (label) label->SetText(option_name_);
}
void UIOption::OnTemplateLoaded() {
auto label = GetChildDynamicCast<Text>("LblName", true);
if (label) label->SetText(option_name_);
}
void UIOption::OnChanged() {
Urho3D::VariantMap& eventData = GetEventDataMap();
using namespace UIOptionChanged;
eventData[P_OPTION] = this;
SendEvent(E_UIOPTION_CHANGED, eventData);
}
void UIOption::OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) {
if (key == KEY_UP || key == KEY_DOWN) {
using namespace KeyDown;
VariantMap& eventData = GetEventDataMap();
eventData[P_KEY] = KEY_TAB;
eventData[P_BUTTONS] = (unsigned)buttons;
eventData[P_QUALIFIERS] = key == KEY_UP ? QUAL_SHIFT : 0;
SendEvent(E_KEYDOWN, eventData);
}
}
// static
void UIBoolOption::RegisterObject(Context* context) {
context->RegisterFactory<UIBoolOption>(UI_CATEGORY);
URHO3D_COPY_BASE_ATTRIBUTES(UITemplateElement);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Name", GetOptionName, SetOptionName, String, "", AM_DEFAULT);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Value", GetOptionValue, SetOptionValue, bool, false, AM_DEFAULT);
}
UIBoolOption::UIBoolOption(Context* context)
: UIOption(context), value_(false), subscribed_(false) {
}
UIBoolOption::~UIBoolOption() {
}
void UIBoolOption::SetOptionValue(bool value) {
bool old_val = value_;
value_ = value;
if (old_val != value_) {
UpdateValue();
OnChanged();
}
}
void UIBoolOption::OnTemplateLoaded() {
UIOption::OnTemplateLoaded();
auto button_left = GetChild("BtnLeft", true);
if (button_left) {
SubscribeToEvent(button_left, E_RELEASED, URHO3D_HANDLER(UIBoolOption, HandleButton));
}
auto button_right = GetChild("BtnRight", true);
if (button_right) {
SubscribeToEvent(button_right, E_RELEASED, URHO3D_HANDLER(UIBoolOption, HandleButton));
}
UpdateValue();
}
void UIBoolOption::HandleButton(StringHash eventType, VariantMap& eventData) {
using namespace Released;
auto element = static_cast<UIElement*>(eventData[P_ELEMENT].GetPtr());
if (element->GetName() == "BtnLeft") {
SetOptionValue(false);
} else if (element->GetName() == "BtnRight") {
SetOptionValue(true);
}
}
void UIBoolOption::SetOptionLabel(bool state, const String& text) {
auto label = GetChildDynamicCast<Text>(state ? "LblLeft" : "LblRight", true);
if (label)
label->SetText(text);
}
String UIBoolOption::GetOptionLabel(bool state) const {
auto label = GetChildDynamicCast<Text>(state ? "LblLeft" : "LblRight", true);
if (label)
return label->GetText();
return "";
}
void UIBoolOption::OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) {
if (key == KEY_LEFT) {
SetOptionValue(false);
} else if (key == KEY_RIGHT) {
SetOptionValue(true);
}
UIOption::OnKey(key, buttons, qualifiers);
}
void UIBoolOption::UpdateValue() {
auto button_left = GetChild("BtnLeft", true);
if (button_left) {
auto status = button_left->GetChild("Status", true);
if (status) {
status->SetEnabled(!value_);
status->SetVisible(!value_);
}
}
auto button_right = GetChild("BtnRight", true);
if (button_right) {
auto status = button_right->GetChild("Status", true);
if (status) {
status->SetEnabled(value_);
status->SetVisible(value_);
}
}
MarkDirty();
}
static const StringVector optionsVectorNames =
{
"Option Count",
" Text",
};
// static
void UIMultiOption::RegisterObject(Context* context) {
context->RegisterFactory<UIMultiOption>(UI_CATEGORY);
URHO3D_COPY_BASE_ATTRIBUTES(UITemplateElement);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Name", GetOptionName, SetOptionName, String, "", AM_DEFAULT);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Index", GetOptionIndex, SetOptionIndex, int, -1, AM_DEFAULT);
URHO3D_MIXED_ACCESSOR_ATTRIBUTE("Option Strings", GetOptionsAttr, SetOptionsAttr, VariantVector, Variant::emptyVariantVector, AM_DEFAULT)
.SetMetadata(AttributeMetadata::P_VECTOR_STRUCT_ELEMENTS, optionsVectorNames);
}
UIMultiOption::UIMultiOption(Context* context)
: UIOption(context), index_(0), options_count_(0), subscribed_(false) {
}
UIMultiOption::~UIMultiOption() {
}
void UIMultiOption::SetOptionIndex(int value) {
int old_val = index_;
index_ = value;
if (index_ < 0)
index_ = 0;
if (index_ >= options_count_)
index_ = options_count_ - 1;
if (old_val != index_) {
OnTemplateLoaded();
OnChanged();
}
}
void UIMultiOption::SetNumberOfOptions(int count) {
options_count_ = count;
}
void UIMultiOption::SetStrings(const StringVector& strings) {
strings_ = strings;
options_count_ = strings_.Size();
OnTemplateLoaded();
}
void UIMultiOption::SetOptionsAttr(const VariantVector& options) {
unsigned index = 0;
options_count_ = index < options.Size() ? options[index++].GetUInt() : 0;
// Prevent negative value being assigned from the editor
if (options_count_ > M_MAX_INT)
options_count_ = 0;
strings_.Resize(options_count_);
for (auto it = strings_.Begin(); it != strings_.End() && index < options.Size(); ++it) {
*it = options[index++].GetString();
}
OnTemplateLoaded();
}
VariantVector UIMultiOption::GetOptionsAttr() const {
VariantVector ret;
ret.Reserve(options_count_ + 1);
ret.Push(options_count_);
for (auto it = strings_.Begin(); it != strings_.End(); ++it) {
ret.Push(*it);
}
return ret;
}
String UIMultiOption::GetValue() const {
if (strings_.Empty())
return "";
if (index_ >= 0 && index_ < (int)strings_.Size())
return strings_[index_];
return "";
}
void UIMultiOption::OnTemplateLoaded() {
UIOption::OnTemplateLoaded();
auto button_left = GetChild("BtnLeft", true);
if (button_left) {
SubscribeToEvent(button_left, E_RELEASED, URHO3D_HANDLER(UIMultiOption, HandleButton));
}
auto button_right = GetChild("BtnRight", true);
if (button_right) {
SubscribeToEvent(button_right, E_RELEASED, URHO3D_HANDLER(UIMultiOption, HandleButton));
}
if (options_count_ > 0 && index_ >= 0 && index_ < options_count_) {
auto lbl_value = GetChildDynamicCast<Text>("LblValue", true);
if (lbl_value)
lbl_value->SetText(strings_[index_]);
}
MarkDirty();
}
void UIMultiOption::HandleButton(StringHash eventType, VariantMap& eventData) {
using namespace Released;
if (options_count_ <= 0)
return;
auto element = static_cast<UIElement*>(eventData[P_ELEMENT].GetPtr());
if (element->GetName() == "BtnLeft") {
SetOptionIndex(index_ - 1);
} else if (element->GetName() == "BtnRight") {
SetOptionIndex(index_ + 1);
}
}
void UIMultiOption::OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) {
if (key == KEY_LEFT) {
SetOptionIndex(index_ - 1);
} else if (key == KEY_RIGHT) {
SetOptionIndex(index_ + 1);
}
UIOption::OnKey(key, buttons, qualifiers);
}
} // namespace Urho3D
#ifndef __ENGINE_UI_OPTION_H__
#define __ENGINE_UI_OPTION_H__
#pragma once
#include <Urho3D/UI/UIElement.h>
#include <Urho3D/UI/BorderImage.h>
#include <Urho3D/Core/Object.h>
namespace Urho3D {
/// UI button was pressed, then released.
URHO3D_EVENT(E_UIOPTION_CHANGED, UIOptionChanged)
{
URHO3D_PARAM(P_OPTION, Option); // UITemplateElement pointer
}
class UITemplateElement : public BorderImage {
URHO3D_OBJECT(UITemplateElement, BorderImage)
public:
/// Construct.
explicit UITemplateElement(Context* context);
/// Destruct.
~UITemplateElement() override;
/// Register object factory.
static void RegisterObject(Context* context);
void SetTemplate(const ResourceRef& xmltemplate);
ResourceRef GetTemplate() const;
private:
String template_;
virtual void OnTemplateLoaded() {}
};
class UIOption : public UITemplateElement {
URHO3D_OBJECT(UIOption, UITemplateElement)
public:
/// Construct.
explicit UIOption(Context* context);
/// Destruct.
~UIOption() override;
/// Register object factory.
static void RegisterObject(Context* context);
void SetOptionName(const String& name);
String GetOptionName() const { return option_name_; }
protected:
String option_name_;
virtual void OnTemplateLoaded();
void OnChanged();
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override;
};
class UIBoolOption : public UIOption {
URHO3D_OBJECT(UIBoolOption, UIOption)
public:
UIBoolOption(Context* context);
~UIBoolOption() override;
/// Register object factory.
static void RegisterObject(Context* context);
void SetOptionValue(bool value);
bool GetOptionValue() const { return value_; }
void SetOptionLabel(bool state, const String& text);
String GetOptionLabel(bool state) const;
private:
bool value_;
bool subscribed_;
void OnTemplateLoaded() override;
void HandleButton(StringHash eventType, VariantMap& eventData);
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override;
void UpdateValue();
};
class UIMultiOption : public UIOption {
URHO3D_OBJECT(UIMultiOption, UIOption)
public:
UIMultiOption(Context* context);
~UIMultiOption() override;
/// Register object factory.
static void RegisterObject(Context* context);
void SetOptionIndex(int value);
int GetOptionIndex() const { return index_; }
void SetNumberOfOptions(int count);
int GetNumberOfOptions() const { return options_count_; }
void SetOptionsAttr(const VariantVector& strings);
VariantVector GetOptionsAttr() const;
void SetStrings(const StringVector& strings);
StringVector GetStrings() const { return strings_; }
String GetValue() const;
private:
int options_count_;
Vector<String> strings_;
int index_;
bool subscribed_;
void OnTemplateLoaded() override;
void HandleButton(StringHash eventType, VariantMap& eventData);
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override;
};
} // namespace Urho3D
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.