Default Properties
For all widgetson_mouse_down (string) default = (empty string)String which is executed when a button is pressed. $arg1=x $arg2=y $arg3=buttonon_mouse_up (string) default = (empty string)String which is executed when a button is released. $arg1=x $arg2=y $arg3=buttonon_mouse_move (string) default = (empty string)String which is executed when the mouse is moved over the window. $arg1=x $arg2=y $arg3=buttonon_mouse_in (string) default = (empty string)String which is executed when the mouse has moved into the window. $arg1=x $arg2=y $arg3=buttonon_mouse_out (string) default = (empty string)String which is executed when the mouse has moved out of the window. $arg1=x $arg2=y $arg3=buttonon_show (string) default = (empty string)String which is executed before the widget is shown.x (int) default = 0Horizontal positiony (int) default = 0Vertical positionwidth (int) default = 0Width of the widget.height (int) default = 0Height of the widget.alignment (string) default = (empty string)Alignment of the widget. Combinations of: left, right, top, bottom, hcenter, vcenter, rel_width, rel_height, rel_x, rel_y (default top left)visible (int) default = 1Whether the widget is visible or not.sticky (int) default = 0Always show the widget, even if the GUI is off.frametype (int) default = 1Type of frame and title bar. (currently 0=none, 1=normal titlebar, 2=frame only)color (int) default = 0Color of the widgetlabelA label displaying some text. Auto-scales its width to the text.Properties:
text (string) default = "Label"The label captionpixmapDisplay any image file which can be loaded via SDL_image (jpg, png, etc)Properties:
filename (string) default = (empty string)The name of the image file to display.blendfunc (int) default = 0OpenGL Blending mode (0=alpha 1=additive)scaling_x (int) default = 0X Scaling: 1000 = 100% relative to on-screen size. 0 = off (relative to widget size)scaling_y (int) default = 0Y Scaling: 1000 = 100% relative to on-screen size. 0 = off (relative to widget size)sliderA 1D Slider controlProperties:
on_change (string) default = (empty string)String which is executed when the slider changed. $arg1=new slider value.value (int) default = 12The current slider value.min (int) default = 0Minimum slider valuemax (int) default = 100Maximum slider valuebgpixmap (string) default = (empty string)Filename of background image, or empty string for none.vertical (int) default = 0Slider moves vertically if non-zero, else horizontally.knobsize (int) default = 12Size of the slider knob in pixels.md2modelDisplay an MD2 3D Model in the GUI. (btw: this and the pixmap are currently the only Flex/EDM widgets that do their painting themselves. All others only create objects which are automatically painted by Flex.)Properties:
filename (string) default = (empty string)Model Path relative to the models directory, without the md2 filename. E. g. "monster/ogro" displays the Ogro model.dropdownA dropdown list with items which the user can selectProperties:
add_item (string) default = (empty string)Append an item at the end of the list. First word of item text is displayed in the list, the other words are passed as arguments to "on_change".clear_items (int) default = 0Set this to any value to clear all list items.on_change (string) default = (empty string)String which is executed when an item is selected. $arg1=first word of item text, $arg2=second word, etc.select_by_index (int) default = 0Select an item by numberselect_by_name (string) default = (empty string)Select an item by namecheckboxA checkboxProperties:
text (string) default = "Checkbox"Text to displayon_change (string) default = (empty string)String which is executed when clicked. $arg1=state (1=checked, 0=unchecked)checked (int) default = 0Whether it is checkedcolorwheelColor Selector (Hue/Saturation/Value)Properties:
hue (int) default = 0Hue of current color (0..3600)sat (int) default = 0Saturation of current color (0..1000)val (int) default = 1000Value of current color (0..1000)red (int) default = 2550..255green (int) default = 00..255blue (int) default = 00..255on_change (string) default = (empty string)String which is executed when the color changesbuttonStandard Button.Properties:
text (string) default = "Button"Button Captionon_click (string) default = (empty string)String which is executed when the button is clicked. $arg1=which mouse buttonpanesTwo panes with a handle in between which can be dragged. Create 2 child widgets (e. g. rects) to be used as first and second pane.Properties:
vertical (int) default = 0Handle moves vertically if non-zero, else horizontally.position (int) default = 20Size of the first pane in pixels.textinputA box where the user can key in text.Properties:
text (string) default = (empty string)Current textconsole (int) default = 0Whether it acts like a console input, with tab completion etc.on_gainfocus (string) default = (empty string)String which is executed when the widget gets the keyboard focuson_losefocus (string) default = (empty string)String which is executed when the widget loses the keyboard focuson_change (string) default = (empty string)String which is executed whenever the input's text changeson_enter (string) default = (empty string)String which is executed when the enter key is pressedhaskeyboardfocus (int) default = 0Set or query whether the widget has the keyboard focus.multilineA multiline text display with line wrapProperties:
text (string) default = (empty string)Current texttextinputtest (user dialog)Properties:
dialog_title (string) default = "textinputtest"The dialog's captiondialog_width (int) default = 150The dialog's default widthdialog_height (int) default = 64The dialog's default heightvarcheckbox (user widget)A check box that is tied to a game variable.
Automatically loads its checked state when shown
and toggles the variable when clicked.Properties:
var (string) default = "novar"Name of the variable to toggletext (string) default = "notext"Text to displaySelect a Team (user dialog)Properties:
dialog_title (string) default = "Select a Team"The dialog's captiondialog_width (int) default = 300The dialog's default widthdialog_height (int) default = 80The dialog's default heightgui_wasvis (int) default = 0New Sticky Note (user dialog)Properties:
dialog_title (string) default = "New Sticky Note"The dialog's captiondialog_width (int) default = 200The dialog's default widthdialog_height (int) default = 32The dialog's default heightwasvis (int) default = 0Input (user dialog)Properties:
dialog_title (string) default = "Input"The dialog's captiondialog_width (int) default = 230The dialog's default widthdialog_height (int) default = 32The dialog's default heightdesc (string) default = (empty string)text (string) default = (empty string)System Request (user dialog)A Message Box with an OK buttonProperties:
dialog_title (string) default = "System Request"The dialog's captiondialog_width (int) default = 250The dialog's default widthdialog_height (int) default = 130The dialog's default heightguiwasactive (int) default = 0Graphics Settings (user dialog)Set Screen Resolution and GFX optionsProperties:
dialog_title (string) default = "Graphics Settings"The dialog's captiondialog_width (int) default = 300The dialog's default widthdialog_height (int) default = 150The dialog's default heightSound Settings (user dialog)Set sound options.Properties:
dialog_title (string) default = "Sound Settings"The dialog's captiondialog_width (int) default = 300The dialog's default widthdialog_height (int) default = 200The dialog's default heightInput Settings (user dialog)Set Mouse Input options, etc.Properties:
dialog_title (string) default = "Input Settings"The dialog's captiondialog_width (int) default = 300The dialog's default widthdialog_height (int) default = 130The dialog's default heightPlayer Setup (user dialog)Select player model and teamProperties:
dialog_title (string) default = "Player Setup"The dialog's captiondialog_width (int) default = 450The dialog's default widthdialog_height (int) default = 260The dialog's default heightLighting (user dialog)Options used with relightingProperties:
dialog_title (string) default = "Lighting"The dialog's captiondialog_width (int) default = 320The dialog's default widthdialog_height (int) default = 200The dialog's default heightProfiling Stats (user dialog)Properties:
dialog_title (string) default = "Profiling Stats"The dialog's captiondialog_width (int) default = 400The dialog's default widthdialog_height (int) default = 185The dialog's default heightsidebarsketch (user dialog)Properties:
dialog_title (string) default = "sidebarsketch"The dialog's captiondialog_width (int) default = 100The dialog's default widthdialog_height (int) default = 0The dialog's default heightmapvote (user dialog)Properties:
dialog_title (string) default = "mapvote"The dialog's captiondialog_width (int) default = 300The dialog's default widthdialog_height (int) default = 64The dialog's default height