1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/gui/test/5_manual.xml
Ykkrosh f9c51d8ec7 Replaced - with _ in GUI
This was SVN commit r1604.
2005-01-01 12:06:17 +00:00

50 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE objects SYSTEM "../gui.dtd">
<!--
==========================================
- ONLINE MANUAL DEFINITION -
==========================================
-->
<objects>
<object type="empty" name="manual_gui" size="0 0 100% 100%" z="1" hotkey="onlinehelp" hidden="true">
<action on="Press"><![CDATA[
// Toggle manual if something selected.
if (selection.length)
{
ManualGUI = getGUIObjectByName("manual_gui");
ManualGUI.hidden = !ManualGUI.hidden;
}
]]></action>
<object type="text" name="manual_bkg" sprite="translucent_background" size="50%-200 0%+50 50%+200 100%-50" font="prospero16" textcolor="255 255 255" z="100" hidden="false" ghost="true">
<action on="Tick"><![CDATA[
if (selection.length && !( getGUIObjectByName( "manual_gui" ).hidden ))
{
manualDisplay();
}
]]></action>
</object>
<object type="button" name="manual_portrait" style="portrait" size="50%-192 0%+80 50%-128 0%+144" z="100" ghost="true"/>
<object type="text" name="manual_name" sprite="translucent_background" size="50%-195 0%+149 50%+195 100%-205" font="prospero14" textcolor="255 255 255" z="100" ghost="true"/>
<!-- Gee needs to implement text clipping, so long text doesn't get clipped to these scroll windows yet. Scroll bars also don't block world input yet. -->
<object type="text" name="manual_rollover" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="translucent_background" size="50%-126 0%+80 50%+195 0%+144" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
<object type="text" name="manual_history" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="translucent_background" size="50%-195 100%-200 50%+195 100%-55" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
<object type="button" name="manual_exit_button" sprite="exit_sprite" sprite_over="exit_sprite_over" size="50%+184 0%+50 50%+200 0%+66" ghost="false" z="100" hidden="false">
<action on="Press"><![CDATA[
// Close manual.
ManualGUI = getGUIObjectByName("manual_gui");
ManualGUI.hidden = true;
]]></action>
</object>
</object>
</objects>