MOH GUI Documentation.html wrote:
GUI Documentation
DlgEdit ? 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?s a description of the fields:
Menu Name: The name of the menu that you will reference it by in the game.
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.
Time: This is the amount of time the menu takes to appear or disappear when toggled.
General Commands: You can add any of the appropriate layout commands mentioned below.
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?s a description of the fields:
Name - Internal name of the widget. This really isn?t used much in the game and was added (just in case we need it).
Class - Defines the class of the widget (Button, Label, List, etc?).
Title ? Title to be displayed for labels, buttons, etc..
Cmd ? Stuff command to be put into the command buffer when the widget is activated (i.e. button is pressed).
Cvar ? 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.
Border ? Style of the border of the widget.
BGColor ? Background color of the widget.
BGAlpha ? Background alpha of the widget.
FGColor ? Foreground color of the widget.
FGAlpha ? Foreground alpha of the widget.
Position ? Position of the widget ( x,y,width,height).
Class specific attributes ? Extra information that applies to the widget. See the list of layout commands below.
align <left> <right> <top> <bottom> Aligns the widget to the specified directions (resolution independent)
shader <shadername> Sets the shader of the widget. This will be drawn stretched in the widget
tileshader <shadername> Sets the shader of the widget. This will be drawn tiled in the widget
hovershader <shadername> Sets the shader that will be drawn when the mouse is hovering over the widget
additem <item> Adds the specified item to a list or listbox widget
setrange <min> <max> Sets the range of the slider from min to max
direction <from_left | from_right | from_top | from_bottom> Sets the direction of the shader when it appears on the screen. It will scroll in from that direction over time
slidertype <integer | float> Sets the type of the slider to either integral or floating value
fadein <time> Makes the widget fade in over the specified time
stopsound <soundname> Plays the sound specified when the widget stops moving
clicksound <soundname> Plays the sound specified when the widget is clicked
stretch < horizontal | vertical > Stretch the widget horizontally or vertically across the whole screen (resolution independent )
initdata <data> Initializes the widget to data (used for sliders)
sliderstep <stepsize> Sets the stepsize for the slider
I also found this: (sorry it's so long)
MOH_ClientClasses.html wrote: Client Module Classes
bindlistener -> Listener -> Class
activebackgroundcolor( Float r, Float g, Float b, Float a )
Set the color for the active button background
activebordercolor( Float r, Float g, Float b, Float a )
Set the color for the active button border
activeforegroundcolor( Float r, Float g, Float b, Float a )
Set the color for the active button foreground
activesound( String soundname )
Set the name of the sound to play when the item is made active
align( String arg1, [ String arg2 ], [ String arg3 ], [ String arg4 ], [ String arg5 ], [ String arg6 ] )
Set the alignment on the bind menu
bind_alternatekeyheight( Integer height )
Height of the alternate key item
bind_alternatekeywidth( Integer width )
Width of the alternate key item
bind_commandheight( Integer height )
Height of the command item
bind_commandwidth( Integer width )
Width of the command item
bind_fillwidth( Integer width, [ String material ] )
Width of the filling between widgets
bind_height( Integer height )
Height of the bind menu
bind_primarykeyheight( Integer height )
Height of the primary key item
bind_primarykeywidth( Integer width )
Width of the primary key item
bind_width( Integer width )
Width of the bind menu
binditem( String name, String command )
Create a new bind item in the interface
changesound( String soundname )
Set the name of the sound to play when the highlighted item changes
entersound( String soundname )
Set the name of the sound to play when the key is entered
header( Integer column_num, String name, String material )
Set the header of each column
highlightbackgroundcolor( Float r, Float g, Float b, Float a )
Set the color for the highlighted button background
highlightforegroundcolor( Float r, Float g, Float b, Float a )
Set the color for the highlighted button foreground
inactivebackgroundcolor( Float r, Float g, Float b, Float a )
Set the color for the inactive button background
inactiveforegroundcolor( Float r, Float g, Float b, Float a )
Set the color for the inactive button foreground
selectbackgroundcolor( Float r, Float g, Float b, Float a )
Set the color for the selected button background
selectforegroundcolor( Float r, Float g, Float b, Float a )
Set the color for the selected button foreground
titlebackgroundcolor( Float r, Float g, Float b, Float a )
Set the color for the title background
titleforegroundcolor( Float r, Float g, Float b, Float a )
Set the color for the title foreground
Class
ConsoleHider -> Listener -> Class
floatingwindow_close_pressed
Signal that the window was closed
widget_destroyed
Specifies that the widget has been destroyed.
CvarFilePickerClass -> FilePickerClass -> USignal -> Listener -> Class
DMConsoleHider -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
floatingwindow_close_pressed
Signal that the window was closed
widget_destroyed
Specifies that the widget has been destroyed.
Event -> Class
ExecCmd -> USignal -> Listener -> Class
button_pressed
Signal that the button was pressed
FakkInventory -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
mouse_moved( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with no buttons down
right_mouse_down( Float xpos, Float ypos, Integer buttons )
Right mouse button has been pressed down
FakkItemList -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
mouse_moved( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with no buttons down
right_mouse_down( Float xpos, Float ypos, Integer buttons )
Right mouse button has been pressed down
right_mouse_up( Float xpos, Float ypos, Integer buttons )
Right mouse button has been released
widget_destroyed
Specifies that the widget has been destroyed.
FakkMiniconsole -> UIWidget -> USignal -> Listener -> Class
size_changed
Specifies that the size of the widget has changed.
FilePickerClass -> USignal -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
invlistener -> Listener -> Class
ammo( String ammo_name )
The name of the current item's ammo
barheight( Integer barheight )
The height of the current item's ammo bar, or default width of all items bar's depending on context
baroffsetx( Integer width )
The x offset used to calculate ammo bar
baroffsety( Integer width )
The y offset used to calculate ammo bar
barshader( String shader )
Shader to draw on the background of the item widget to display ammo counts
barwidth( Integer width )
The width of the current item's ammo bar or default width of all items bar's depending on context
bg( String shader )
Shader for the background of the class submenu
bg_tile
Specifies to tile the background of the class submenu
bgshader( String shader )
Shader to draw on the background of the item widget
button_shader( String shader )
The shader for the class button
checkammo( Boolean bool )
Check if the weapon has ammo before using it
command( String command )
Command to execute
equip( String use, [ String use ], [ String use ], [ String use ], [ String use ], [ String use ], [ String use ], [ String use ], [ String use ], [ String use ] )
Which ways you can use this item
height( Integer height )
The height of the current item, or default width of all items depending on context
hover_shader( String shader )
The shader for the class button when hovering
hudangledeltas( Vector angles )
How to spin or bob the model
hudangles( Vector angles )
The orientation of the model
hudanim( String anim )
Which anim this item uses
hudcompassangles
Applies the special case compass angles to the model
hudcompassneedleangles
Applies the special case compass needle angles to the model
hudmodel( String name )
Which model this item is
hudmove( String movetype )
How to move the model when selected.
either bob or spin
hudoffset( Vector offset )
Offsets the origin of the model for moving
hudrotateoffset( Vector offset )
Offsets the origin of the model for rotation
hudscale( Float scale )
How much to scale the model
inv_align( String side )
Specifies the horizontal offset from the right of the screen for the inventory
inv_cascade( String side )
Specifies the side which to cascade inventory items
inv_changesound( String soundname )
Set the sound to play when the inventory changes items
inv_height( Integer height )
Specifies the height of each of the main inv buttons
inv_horiz_offset( Integer offset )
Specifies the horizontal offset from the right of the screen for the inventory
inv_rejectsound( String soundname )
Set the sound to play when an invalid inventory item is selected
inv_selectsound( String soundname )
Set the sound to play when an inventory item is selected
inv_vert_offset( Integer offset )
Specifies the vertical offset from the top of the screen for the inventory
inv_width( Integer width )
Specifies the width of each of the main inv buttons
invangledeltas( Vector angles )
How to spin or bob the model
invangles( Vector angles )
The orientation of the model
invanim( String anim )
Which anim this item uses
invmodel( String name )
Which model this item is
invmove( String movetype )
How to move the model when selected.
either bob or spin
invoffset( Vector offset )
Offsets the origin of the model for moving
invrotateoffset( Vector offset )
Offsets the origin of the model for rotation
invscale( Float scale )
How much to scale the model
item( String item_name )
The name of the current item
modelwindow( Float x, Float y, Float width, Float height )
Specifies the dimensions of the model window for the inventory in normalized coordinates
sel_shader( String shader )
The shader for the class button when selected
selitem_shader( String shader )
The shader for an item that is currently selected in the class submenu
selitem_shaderontop
Whether the sel shader should be rendered after the model
typedef( String type )
Specifies which class of item you're editing
width( Integer width )
The width of the current item, or default width of all items depending on context
{
Open brace, useless
}
Close brace, useless
Listener -> Class
commanddelay( Float delay, String command, [ String [arg1] ], [ String [arg2] ], [ String [arg3] ], [ String [arg4] ], [ String [arg5] ], [ String [arg6] ] )
executes a command after the given delay
delete
Removes this listener immediately.
immediateremove
Removes this listener immediately.
remove
Removes this listener the next time events are processed.
LODSpawnerClass -> FilePickerClass -> USignal -> Listener -> Class
MapRunnerClass -> FilePickerClass -> USignal -> Listener -> Class
Menu -> Listener -> Class
hidemenu
Hides the menu.
showmenu( [ Boolean activate ] )
Shows the menu.
MenuManager -> Listener -> Class
lock
Lock out the menu from receiving input
pushmenu( String menuname )
Pushes the menu on the stack
unlock
Unlock the menu from receiving input
MpMapPickerClass -> USignal -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
PlayerModelPickerClass -> USignal -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
floatingwindow_close_pressed
Signal that the window was closed
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
Script -> Class
SoundPickerClass -> FilePickerClass -> USignal -> Listener -> Class
StatsUpdater -> Listener -> Class
updatestats
Update the stats on the missionLog
ToggleCVar -> USignal -> Listener -> Class
button_pressed
Signal that the button was pressed
UIAddToRotationButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIBindButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
any_mouse_down( Float xpos, Float ypos, Integer buttons )
Any mouse button has been pressed
bindcommand( String cmd )
Command to bind
UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
UIButtonBase -> UIWidget -> USignal -> Listener -> Class
hovercommand( String string )
Set the command to execute when this button is hovered over
hoversound( String soundName )
Set the sound to play when this button is hovered over
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
mouseawaycommand( String string )
Set the command to execute when the mouse exits this buttong
UICheckBox -> UIWidget -> USignal -> Listener -> Class
checked_command( String command )
Command to execute when checkbox is checked
checked_shader( String shader )
Set the shader of the small button when it is checked
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
unchecked_command( String command )
Command to execute when checkbox is checked
unchecked_shader( String shader )
Set the shader of the small button when it is unchecked
UIChildSpaceWidget -> UIWidget -> USignal -> Listener -> Class
UIConsole -> UIWidget -> USignal -> Listener -> Class
print( String string )
Print the string to the console
size_changed
Specifies that the size of the widget has changed.
UIDialog -> UIFloatingWindow -> UIWidget -> USignal -> Listener -> Class
UIDMBox -> UIWidget -> USignal -> Listener -> Class
size_changed
Specifies that the size of the widget has changed.
UIDMConsole -> UIConsole -> UIWidget -> USignal -> Listener -> Class
UIFakkBindList -> UIWidget -> USignal -> Listener -> Class
filename( String filename )
Filename that holds bind definitions
stopbind
stops trying to bind a key to a command
UIFakkBindListLabel -> UILabel -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
UIFakkLabel -> UILabel -> UIWidget -> USignal -> Listener -> Class
clearinvitemref
used internally when the inventory is reset
invmodelhand( Integer handindex )
set the specified hand index to render a 3d model from
invmodelname( String name )
set the name of the 3d model to render
itemstat( Integer itemstatValue )
set itemstat for layout
maxplayerstat( Integer maxPlayerstatValue )
set the playerstat that holds the max value for that stat. Used for statbars
modelangles( Vector angles )
Render model angles
modelanim( String anim )
Render model anim
modeloffset( Vector offset )
Render model offset
modelrotateoffset( Vector offset )
Render model rotation offset
modelscale( Float scale )
Render model scale
playerstat( Integer playerstatValue )
set playerstat for layout
playerstatalpha( Integer playerstatValue )
set playerstat to control alpha for layout
playerstatconfigstring( Integer playerstatValue )
set playerstat for layout - will print out the corresponding configstring
rendermodel( Boolean bool )
Render the model specified by the cvar.
statbar( String orientation, [ Integer min ], [ Integer max ] )
make this label present the stat using a graphical bar. Optionally specify a min and max value
statbar_endangles( Float startang, Float endang )
Sets the start and end angles for a circular stat bar
statbar_needlewidth( Float width )
Sets the width of the needle for a needle statbar
statbar_rotatorsize( Float width )
Sets the width of the needle for a needle statbar
statbar_shader( String shader )
set the shader for this statbar
statbar_shader_flash( String shader )
set the flash shader for this statbar
statbar_shader_marker( String shader )
set the marker shader for this statbar
This is drawn at the end of the status bar
statbar_tileshader( String shader )
set the tile shader for this statbar
statbar_tileshader_flash( String shader )
set the flash tile shader for this statbar
UIFAKKLoadGameClass -> UIListCtrl -> UIListBase -> UIWidget -> USignal -> Listener -> Class
deletegame
Delete the currently selected game... for real
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
loadgame
Load the currently selected game
nodeletegame
Delete the currently selected game... for real
removegame
Delete the currently selected game
savegame
Save the currently selected game
UIFAKKServerList -> UIListCtrl -> UIListBase -> UIWidget -> USignal -> Listener -> Class
cancelrefresh
Cancel serverlist Refresh
connect
Connect to the specified server
lanlisting
Makes this server list to LAN stuff when there's a choice between Internet & LAN servers
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
refreshlanserverlist
Refresh the LAN serverlist
refreshserverlist
Refresh the serverlist
updateserver
Cancel serverlist Refresh
UIField -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
SetIPField
Set the field as an IP field.
SetMaxChars( Integer numChars )
Tells the field how many characters can be typed into the field.
SetNumeric
Signal the field that it should only take numeric input.
UIFloatingConsole -> UIFloatingWindow -> UIWidget -> USignal -> Listener -> Class
floatingwindow_close_pressed
Signal that the window was closed
UIFloatingDMConsole -> UIFloatingWindow -> UIWidget -> USignal -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
floatingwindow_close_pressed
Signal that the window was closed
UIFloatingWindow -> UIWidget -> USignal -> Listener -> Class
activated
Signals that the widget has been activated.
floatingwindow_close_pressed
Signal that the window was closed
floatingwindow_minimize_pressed
Signal that the window was minimized
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
size_changed
Specifies that the size of the widget has changed.
UIGlobalGameList -> UILanGameList -> UIWidget -> USignal -> Listener -> Class
UIGMBox -> UIWidget -> USignal -> Listener -> Class
size_changed
Specifies that the size of the widget has changed.
UIHorizScroll -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
UILabel -> UIWidget -> USignal -> Listener -> Class
linkcvartoshader
Links the label's cvar to its shader
linkstring( Integer value, String string )
Creates a link from the specified value to a string.Use this if you want the label to display a string different from the value of the cvar
loopingsound( String soundName, Float start_volume, Float hold_start_time, Float ending_volume, Float ramp_time )
Set the sound to play
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
oneshotsound( String soundName, Float soundTime )
Set the sound to play
outlinedtext( Integer outlined )
Set/clear outline text
shader( String shaderName )
Set the shader to draw on the background of the widget
tileshader( String shaderName )
Set the shader to draw tiled on the background of the widget
UILANGameClass -> UIListCtrl -> UIListBase -> UIWidget -> USignal -> Listener -> Class
joingame
Join the currently selected server
listbase_item_doubleclicked( Integer index )
Signaled when an item is double clicked
listbase_item_selected( Integer index )
Signaled when an item is selected
UILanGameList -> UIWidget -> USignal -> Listener -> Class
connecttoselected
Makes the lan game list connect to the selected server
UILanGameListLabel -> UILabel -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UILayout -> Listener -> Class
menu( String name, Float width, Float height, String direction, [ Float motion_time ] )
Sets up the layout of the menu.
UIList -> UIWidget -> USignal -> Listener -> Class
additem( String itemname, [ String command ] )
Add an item to the list
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIListBase -> UIWidget -> USignal -> Listener -> Class
UIListBox -> UIListBase -> UIWidget -> USignal -> Listener -> Class
addconfigstringitem( Integer index, [ String command ] )
Add an item to the list that uses a configstring
additem( String itemname, [ String command ] )
Add an item to the list
deleteallitems
Delete all the items from the widget
font( String title )
Set the font of the widget
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIListCtrl -> UIListBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
size_changed
Specifies that the size of the widget has changed.
UIMapListBox -> UIListBox -> UIListBase -> UIWidget -> USignal -> Listener -> Class
RefreshMapList
Refreshes the map list.
UIMapRotationListBox -> UIListBox -> UIListBase -> UIWidget -> USignal -> Listener -> Class
RefreshRotationList
Refreshed the map rotation list.
UIMultiLineEdit -> UIWidget -> USignal -> Listener -> Class
edit( Boolean bool )
Set whether or not the text is editable
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
size_changed
Specifies that the size of the widget has changed.
updatecvar
Causes text box to update itself using the assigned cvar
UINotepad -> UIFloatingWindow -> UIWidget -> USignal -> Listener -> Class
floatingwindow_close_pressed
Signal that the window was closed
openfile( String nameOfFile )
called to open a file in the notepad
UINotepadEdit -> UIMultiLineEdit -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
UIPickFileClass -> FilePickerClass -> USignal -> Listener -> Class
UIPopupMenu -> UIWidget -> USignal -> Listener -> Class
deactivated
Signals that the widget has been deactivated.
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
mouse_moved( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with no buttons down
UIPulldownMenu -> UIWidget -> USignal -> Listener -> Class
highlight_bgcolor( Float r, Float g, Float b )
Set the background color of the highlighted text when a pulldown is used
highlight_fgcolor( Float r, Float g, Float b )
Set the foreground color of the highlighted text when a pulldown is used
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
UIPulldownMenuContainer -> UIWidget -> USignal -> Listener -> Class
addpopup( String menuname, String title, String type, String string )
Adds a popup to the list box.
menuname - the name of the menu to add this to
title - the string to display
type - type of item this is (command,cvar,event_name)
string - the data that corresponds to the correct type
highlight_bgcolor( String menu, Float r, Float g, Float b, Float a )
Set the highlight foreground color of the pulldown menumenuname - the name of the popup menu to color
highlight_fgcolor( String menu, Float r, Float g, Float b, Float a )
Set the highlight background color of the pulldown menumenuname - the name of the popup menu to color
menushader( String menuname, String shader )
Adds a menu to the container and sets the shader.
menuname - the name of the menu to add this to
shader - the string to display
popup_bgcolor( String menu, Float r, Float g, Float b, Float a )
Set the foreground color of the popup menumenuname - the name of the popup menu to color
popup_fgcolor( String menu, Float r, Float g, Float b, Float a )
Set the background color of the popup menumenuname - the name of the popup menu to color
popup_highlight_bgcolor( String menu, Float r, Float g, Float b, Float a )
Set the highlight foreground color of the popup menumenuname - the name of the popup menu to color
popup_highlight_fgcolor( String menu, Float r, Float g, Float b, Float a )
Set the highlight background color of the popup menumenuname - the name of the popup menu to color
selmenushader( String menuname, String shader )
Adds a menu to the container and sets the shader when it's selected.
menuname - the name of the menu to add this to
shader - the string to display
virtualres( Integer usevirtualres )
Set the widget to be modified horizontally or vertically across the screen to account for resolutions != 640x480
UIRadar -> UIWidget -> USignal -> Listener -> Class
UIRemoveFromRotationButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIRotationApplyButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIRotationMoveItemDownButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UIRotationMoveItemUpButton -> UIButton -> UIButtonBase -> UIWidget -> USignal -> Listener -> Class
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
UISlider -> UIWidget -> USignal -> Listener -> Class
autodec
Used to auto decrement the slider
autoinc
Used to auto increment the slider
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
leftshader( String shader, [ String depressed_shader ] )
Set the shader of the slider's left arrow
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
rightshader( String shader, [ String depressed_shader ] )
Set the shader of the slider's right arrow
setrange( Float min, Float max )
Used to set the range of a slider
slidertype( String sliderType(float|integer) )
Set the slider type to be floating point or integral
stepsize( Float stepsize )
Set the step size of the slider
thumbshader( String shader, [ String depressed_shader ] )
Set the shader of the slider's thumb
UIStatusBar -> UIWidget -> USignal -> Listener -> Class
realign_widget
Specifies that the widget has been realigned.
size_changed
Specifies that the size of the widget has changed.
UIVertScroll -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
mouse_entered( Float xpos, Float ypos, Integer buttons )
Mouse entered a widget event
mouse_exited( Float xpos, Float ypos, Integer buttons )
Mouse exiting a widget event
UIWidget -> USignal -> Listener -> Class
activate
Activate this widget.
aliascache( String alias, String realPath, [ String arg1 ], [ String arg2 ], [ String arg3 ], [ String arg4 ], [ String arg5 ], [ String arg6 ] )
Create an alias to the specified path and cache the resource
align( String alignment )
Set the side of the screen to align the widget(left right top bottom centerx centery)
bgcolor( Float red, Float green, Float blue, Float alpha )
Set the background color of the widget
bordercolor( Float red, Float green, Float blue, Float alpha )
Set the border color of the widget
borderstyle( String style )
Set the borderstyle of the widget(NONE, 3D_BORDER, INDENT_BORDER)
clicksound( String soundName )
Set the sound to be played when the widget is clicked
direction( String direction, [ Float time ] )
Set the direction the widget will appear from on the screen
(from_top, from_bottom, from_left, or from_right)
Time is specified to determine how fast the widget will scroll in
disable
enable the widget.
dontlocalize
Disables localization for this widget
enable
enable the widget.
enabledcvar( String cvar_name )
Set the cvar to check to see if this button is enabled or not
fadein( Float fadetime )
Set the amount of time it takes for the widget to fade in
fadesequence( Float delay, Float fadein, Float hold, Float fadeout )
Set up for a delay/fadein/hold/fadeout
fgcolor( Float red, Float green, Float blue, Float alpha )
Set the foreground color of the widget
font( String title )
Set the font of the widget
hide
Hides the widget.
hidecommand( String command )
Set a command to be executed when the widget is hidden
hovershader( String shaderName )
Set the shader to on the background of the widget when the mouse is over the widget
initdata( String datastring )
Set the linkcvar to be initialized to this value
linkcvar( String cvarname )
Set the cvar that will be updated when the widget is changed
name( String name )
Set the name of the widget
noparentadjust
Set the widget to not be adjusted by the parent widget
noparentclip
Set the widget to not be clipped by the parent widget
ordernumber( Integer num )
Set the order the widget should be activated in
pressedshader( String shaderName )
Set the shader to on the background of the widget when it is pressed in
rect( Float x, Float y, Float width, Float height )
Set the rect of the widget
scalecvar( String cvar_name )
Set the cvar to check to scale this component
shader( String shaderName )
Set the shader to draw on the background of the widget
showcommand( String command )
Set a command to be executed when the widget is shown
size( Float x, Float y, Float width, Float height )
Set the size of the widget
stopsound( String soundName )
Set the sound to be played when the widget stops moving
stretch( String stretchdir )
Set the widget to be stretched horizontally or vertically across the screen
stuffcommand( String command )
Set the command to be stuffed when the widget is clicked
textalign( String alignment )
Sets the alignment of text for this widget
tileshader( String shaderName )
Set the shader to draw tiled on the background of the widget
title( String title )
Set the title of the widget to be displayed in the center of it
virtualres( Integer usevirtualres )
Set the widget to be modified horizontally or vertically across the screen to account for resolutions != 640x480
UIWidgetContainer -> UIWidget -> USignal -> Listener -> Class
bgfill( Float red, Float green, Float blue, Float alpha )
Set a color to fill the entire background
fullscreen( Boolean fullscreen )
Set container to be fullscreen. This will disable the game rendering if it's active
vidmode( Integer vidmode )
Set container's vidmode to change to when it's active
UIWindowManager -> UIWidget -> USignal -> Listener -> Class
UIWindowSizer -> UIWidget -> USignal -> Listener -> Class
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
left_mouse_up( Float xpos, Float ypos, Integer buttons )
Left mouse button has been released
left_mousedragged( Float xpos, Float ypos, Integer buttons )
Mouse was moved in a widget with the left button down
USignal -> Listener -> Class
View3D -> UIWidget -> USignal -> Listener -> Class
activated
Signals that the widget has been activated.
deactivated
Signals that the widget has been deactivated.
left_mouse_down( Float xpos, Float ypos, Integer buttons )
Left mouse button has been pressed down
ViewSpawnerClass -> FilePickerClass -> USignal -> Listener -> Class
78 Client Module Classes.
353 Client Module Events.
