<li><aclass="backlink"title="Click to do a full-text search for this title"href="./Def_Flags?action=fullsearch&value=linkto%3A%22Def+Flags%22&context=180">Def Flags</a></li>
<spanclass="anchor"id="line-1"></span><pclass="line862">Most flags can be used by all <ahref="./Def_Types.html">*Def Types</a>, but some are used only by certain <ahref="./Def_Types.html">*Def elements</a>. The following is an example of a <ahref="./Def_Types.html#choicedef">choiceDef</a> and some of its flags to show the general set up: <spanclass="anchor"id="line-2"></span><spanclass="anchor"id="line-3"></span><pclass="line867"><spanclass="anchor"id="line-4"></span><pre> choiceDef gametype_selection
<spanclass="anchor"id="line-19"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the background color of the <ahref="./Def_Types.html">windowDef</a>. Colors are normalized RGB and alpha values. A backcolor set to 1,1,0,1 would be yellow with no transparency. This flag can also reference the individual R,G,B and alpha values in the following way: backcolor_x, backcolor_y, backcolor_z, backcolor_w. <spanclass="anchor"id="line-20"></span><spanclass="anchor"id="line-21"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-22"></span><ul><listyle="list-style-type:none"><pclass="line862">The path to the image to be displayed in the <ahref="./Def_Types.html">windowDef</a>. Paths are referenced from q4base, so a typical path would be gfx/guis/mapname/imagename . <spanclass="anchor"id="line-23"></span><spanclass="anchor"id="line-24"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-25"></span><ul><listyle="list-style-type:none"><pclass="line862">Used in <ahref="./Def_Types.html#binddef">bindDefs</a>. Sets the bind that will be changed when the player edits their key bindings. <spanclass="anchor"id="line-26"></span><spanclass="anchor"id="line-27"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-28"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the color of the border on a <ahref="./Def_Types.html">windowDef</a>. Colors are normalized RGB and alpha values. A bordercolor set to 1,1,0,1 would be yellow with no transparency. The bordersize flag must be set for a bordercolor to show. This flag can also reference the individual R,G,B and alpha values in the following way: bordercolor_x, bordercolor_y, bordercolor_z, bordercolor_w. <spanclass="anchor"id="line-29"></span><spanclass="anchor"id="line-30"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-31"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the size in pixels of the <ahref="./Def_Types.html">windowDef's</a> border. <spanclass="anchor"id="line-32"></span><spanclass="anchor"id="line-33"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-34"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the choices to be shown in a <ahref="./Def_Types.html#choicedef">choiceDef</a>. Each choice is separated by a semicolon. <spanclass="anchor"id="line-35"></span><spanclass="anchor"id="line-36"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-37"></span><ul><listyle="list-style-type:none">Takes values of 0 and 1. Choicetype 0 is a boolean value. Choicetype 1 is a multiple choice value. <spanclass="anchor"id="line-38"></span><spanclass="anchor"id="line-39"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-40"></span><ul><listyle="list-style-type:none">Used to mark a comment. This is often used in the Desktop to refer to gui parms that may be used by the GUI to operate on scripts. <spanclass="anchor"id="line-41"></span><spanclass="anchor"id="line-42"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-43"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the cvar that the <ahref="./Def_Types.html">windowDef</a> is bound to. This can be used for <ahref="./Def_Types.html#editdef">editDef</a>, <ahref="./Def_Types.html#choicedef">choiceDef</a>, and <ahref="./Def_Types.html#sliderdef">sliderDef</a>. <spanclass="anchor"id="line-44"></span><spanclass="anchor"id="line-45"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-46"></span><ul><listyle="list-style-type:none"><pclass="line862">Sets the text to be displayed alongside each choice in a <ahref="./Def_Types.html#popupdef">popupDef</a>. Descriptions are separated by semicolons. <spanclass="anchor"id="line-47"></span><spanclass="anchor"id="line-48"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-49"></span><ul><listyle="list-style-type:none">When set to 1 on a world GUI, this marks it as having navigable elements via the D-pad. <spanclass="anchor"id="line-50"></span><spanclass="anchor"id="line-51"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-52"></span><ul><listyle="list-style-type:none"><pclass="line862">Sets the font to be used for the text in that <ahref="./Def_Types.html">windowDef</a>. <spanclass="anchor"id="line-53"></span><spanclass="anchor"id="line-54"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-55"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the color of the text in a <ahref="./Def_Types.html">windowDef</a>. Colors are normalized RGB and alpha values. A forecolor set to 1,1,0,1 would be yellow with no transparency. This flag can also reference the individual R,G,B and alpha values in the following way: forecolor_x, forecolor_y, forecolor_z, forecolor_w. <spanclass="anchor"id="line-56"></span><spanclass="anchor"id="line-57"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-58"></span><ul><listyle="list-style-type:none"><pclass="line862">Used in <ahref="./Def_Types.html#sliderdef">sliderDefs</a> as the upper boundary for a slider cvar value. <spanclass="anchor"id="line-59"></span><spanclass="anchor"id="line-60"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-61"></span><ul><listyle="list-style-type:none"><pclass="line862">Used in <ahref="./Def_Types.html#listdef">listDefs</a> only. Sets the name of the list to be displayed in the <ahref="./Def_Types.html#listdef">listDef</a>. This listname value is referenced by the code and may or may not be different from the <ahref="./Def_Types.html#listdef">listDef's</a> actual name. <spanclass="anchor"id="line-62"></span><spanclass="anchor"id="line-63"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-64"></span><ul><listyle="list-style-type:none"><pclass="line862">Used in <ahref="./Def_Types.html#sliderdef">sliderDefs</a> as the lower boundary for a slider cvar value. <spanclass="anchor"id="line-65"></span><spanclass="anchor"id="line-66"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-67"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the color of the image displayed in the “background” flag for a <ahref="./Def_Types.html">windowDef</a>. This flag can also reference only the R, G, B, and alpha values of a <ahref="./Def_Types.html">windowDef</a> accordingly: matcolor_x, matcolor_y, matcolor_z, matcolor_w. <spanclass="anchor"id="line-68"></span><spanclass="anchor"id="line-69"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-70"></span><ul><listyle="list-style-type:none">Used in the Desktop. A value of 1 marks the gui as a menu gui. This adjusts the cursor pointer size. Without this flag, menus will have giant cursors similar to world guis. <spanclass="anchor"id="line-71"></span><spanclass="anchor"id="line-72"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-73"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the name of the <ahref="./Def_Types.html">windowDef</a>. Each <ahref="./Def_Types.html">windowDef</a> in a GUI must have a unique name. <spanclass="anchor"id="line-74"></span><spanclass="anchor"id="line-75"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-76"></span><ul><listyle="list-style-type:none">Used in the Desktop. A value of 1 will display no cursor over the gui. This can be used for noninteractive GUIs such as monitors. <spanclass="anchor"id="line-77"></span><spanclass="anchor"id="line-78"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-79"></span><ul><listyle="list-style-type:none"><pclass="line862">A value of 1 disables any <ahref="./Scripting_Actions_and_Animations.html#onaction">onAction</a> scripts in the <ahref="./Def_Types.html">windowDef</a>. <spanclass="anchor"id="line-80"></span><spanclass="anchor"id="line-81"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-82"></span><ul><listyle="list-style-type:none"><pclass="line862">Used for <ahref="./Def_Types.html">windowDefs</a> holding <ahref="./Scripting_Actions_and_Animations.html#animations">animation</a> scripts. A value of 1 stops the <ahref="./Def_Types.html">windowDefs</a> onTime scripts from running. <spanclass="anchor"id="line-83"></span><spanclass="anchor"id="line-84"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-85"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the location, width and height of a <ahref="./Def_Types.html">windowDef</a> as x1,y1,width,height. 0,0,640,480 would be a <aclass="nonexistent"href="./Def_types.html">windowDef</a> of 640 by 480 pixels whose top left corner is at coordinate 0,0. The first two values always represent the upper left corner of a <ahref="./Def_Types.html">windowDef</a>. <spanclass="anchor"id="line-86"></span><spanclass="anchor"id="line-87"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-88"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the angle that the image refenced by the <ahref="./Def_Types.html">windowDef</a> will be rotated. This property can also be used in a <ahref="./Scripting_Actions_and_Animations.html#animations">transition</a> statement to rotate an image in a <ahref="./Def_Types.html">windowDef</a> over time. <spanclass="anchor"id="line-89"></span><spanclass="anchor"id="line-90"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-91"></span><ul><listyle="list-style-type:none"><pclass="line862">A value of 1 enables scrollbars in a <ahref="./Def_Types.html#listdef">listDef</a>. <spanclass="anchor"id="line-92"></span><spanclass="anchor"id="line-93"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-94"></span><ul><listyle="list-style-type:none"><pclass="line862">Used in <ahref="./Def_Types.html#sliderdef">sliderDefs</a> to define the interval that a slider will move. <spanclass="anchor"id="line-95"></span><spanclass="anchor"id="line-96"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-97"></span><ul><listyle="list-style-type:none"><pclass="line862">The text to be displayed in the <ahref="./Def_Types.html">windowDef</a>. The character limit is 1024. <spanclass="anchor"id="line-98"></span><spanclass="anchor"id="line-99"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-100"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the alignment within the <ahref="./Def_Types.html">windowDef</a> of the text. A value of 0 left-aligns the text. A value of 1 center-aligns the text. A value of 2 right-aligns the text. When this flag is not set, the text defaults to left-aligned. <spanclass="anchor"id="line-101"></span><spanclass="anchor"id="line-102"></span></li></ul><pclass="line867"><spanclass="anchor"id="textscale"></span><spanclass="anchor"id="line-103"></span>
<spanclass="anchor"id="line-104"></span><ul><listyle="list-style-type:none"><pclass="line862">Defines the font size of the text in the <ahref="./Def_Types.html">windowDef</a>. The range is general from 0.0 to 1.0 but can exceed 1.0. <spanclass="anchor"id="line-105"></span><spanclass="anchor"id="line-106"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-107"></span><ul><listyle="list-style-type:none"><pclass="line862">Used only for <ahref="./Def_Types.html#sliderdef">sliderDefs</a>. This references an image to be used as the slider element. <spanclass="anchor"id="line-108"></span><spanclass="anchor"id="line-109"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-110"></span><ul><listyle="list-style-type:none"><pclass="line862">Takes values of 0 or 1. Defines whether or not the <ahref="./Def_Types.html">windowDef</a> is visible. <ahref="./Def_Types.html">windowDefs</a> have a visible set to 1 by default. <spanclass="anchor"id="line-111"></span><spanclass="anchor"id="line-112"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-113"></span><ul><listyle="list-style-type:none"><pclass="line862">When set to -1, this will flip the texture in the <ahref="./Def_Types.html">windowDef</a> along the horizontal axis. <spanclass="anchor"id="line-114"></span><spanclass="anchor"id="line-115"></span></li></ul><pclass="line867">
<spanclass="anchor"id="line-116"></span><ul><listyle="list-style-type:none"><pclass="line862">When set to -1, this will flip the texture in the <ahref="./Def_Types.html">windowDef</a> along the vertical axis. <spanclass="anchor"id="line-117"></span></li></ul><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">Def Flags (last edited 2005-11-07 19:41:06 by <spantitle="MattVainio @ 67.129.250.254[67.129.250.254]"><aclass="nonexistent"href="./MattVainio.html"title="MattVainio @ 67.129.250.254[67.129.250.254]">MattVainio</a></span>)</p>
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>