131 lines
4.2 KiB
HTML
131 lines
4.2 KiB
HTML
|
<html>
|
|||
|
<head>
|
|||
|
<title>MOHAA - SDK</title>
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
<b><u><font size=+2>GUI Documentation</font></u></b>
|
|||
|
<br>
|
|||
|
<br>
|
|||
|
|
|||
|
<p>
|
|||
|
DlgEdit <20> This is the editor that allows you to create GUIs for the game. Right click the on the window to bring up the Menu Properties dialog. Here<72>s a description of the fields:
|
|||
|
</p>
|
|||
|
|
|||
|
<ul>
|
|||
|
<li>Menu Name: The name of the menu that you will reference it by in the game.
|
|||
|
<li>Motion Direction: This is the direction that the menu will appear from when toggled in the game. Choices are NONE (Default), FROM_TOP, FROM_BOTTOM, FROM_LEFT, and FROM_RIGHT.
|
|||
|
<li>Time: This is the amount of time the menu takes to appear or disappear when toggled.
|
|||
|
<li>General Commands: You can add any of the appropriate layout commands mentioned below.
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
<p><center>
|
|||
|
<img src="MOH GUI Documentation/1-1.jpg">
|
|||
|
</center></p>
|
|||
|
|
|||
|
<p>
|
|||
|
To create a widget, just click the LMB anywhere in the background and drag out a region. This will define the frame of the widget. Double click in the frame of that widget to bring up the Widget Properties Dialog. Here<72>s a description of the fields:
|
|||
|
</p>
|
|||
|
|
|||
|
<Table cellspacing="3" cellpadding="3" border=0 align=center width=100%>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<img src="MOH GUI Documentation/1-2.jpg">
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<ul>
|
|||
|
<li>Name - Internal name of the widget. This really isn<73>t used much in the game and was added (just in case we need it).
|
|||
|
<li>Class - Defines the class of the widget (Button, Label, List, etc<74>).
|
|||
|
<li>Title <20> Title to be displayed for labels, buttons, etc..
|
|||
|
<li>Cmd <20> Stuff command to be put into the command buffer when the widget is activated (i.e. button is pressed).
|
|||
|
<li>Cvar <20> Name of the cvar to link this widget with. If the value of the widget changes, then this cvar will be updated with the appropriate value.
|
|||
|
<li>Border <20> Style of the border of the widget.
|
|||
|
<li>BGColor <20> Background color of the widget.
|
|||
|
<li>BGAlpha <20> Background alpha of the widget.
|
|||
|
<li>FGColor <20> Foreground color of the widget.
|
|||
|
<li>FGAlpha <20> Foreground alpha of the widget.
|
|||
|
<li>Position <20> Position of the widget ( x,y,width,height).
|
|||
|
<li>Class specific attributes <20> Extra information that applies to the widget. See the list of layout commands below.
|
|||
|
</ul>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<br>
|
|||
|
<br>
|
|||
|
<Table cellspacing="3" cellpadding="3" border=1>
|
|||
|
<tr>
|
|||
|
<td>align <left> <right> <top> <bottom>
|
|||
|
<td>Aligns the widget to the specified directions (resolution independent)
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>shader <shadername>
|
|||
|
<td>Sets the shader of the widget. This will be drawn stretched in the widget
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>tileshader <shadername>
|
|||
|
<td>Sets the shader of the widget. This will be drawn tiled in the widget
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>hovershader <shadername>
|
|||
|
<td>Sets the shader that will be drawn when the mouse is hovering over the widget
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>additem <item>
|
|||
|
<td>Adds the specified item to a list or listbox widget
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>setrange <min> <max>
|
|||
|
<td>Sets the range of the slider from min to max
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>direction <from_left | from_right | from_top | from_bottom>
|
|||
|
<td>Sets the direction of the shader when it appears on the screen. It will scroll in from that direction over time
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>slidertype <integer | float>
|
|||
|
<td>Sets the type of the slider to either integral or floating value
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>fadein <time>
|
|||
|
<td>Makes the widget fade in over the specified time
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>stopsound <soundname>
|
|||
|
<td>Plays the sound specified when the widget stops moving
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>clicksound <soundname>
|
|||
|
<td>Plays the sound specified when the widget is clicked
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>stretch < horizontal | vertical >
|
|||
|
<td>Stretch the widget horizontally or vertically across the whole screen (resolution independent )
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>initdata <data>
|
|||
|
<td>Initializes the widget to data (used for sliders)
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>sliderstep <stepsize>
|
|||
|
<td>Sets the stepsize for the slider
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
|
|||
|
|
|||
|
</body>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<p>
|
|||
|
|
|||
|
</p>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<pre>
|
|||
|
<i><font color=blue>
|
|||
|
|
|||
|
</font>
|
|||
|
</i>
|
|||
|
</pre>
|