|
|
Line 2: |
Line 2: |
| <includeonly> | | <includeonly> |
| {{#switch: {{lc:{{{1}}}}} | | {{#switch: {{lc:{{{1}}}}} |
|
| |
| |intro = {{#ifeq:{{uc:{{FULLPAGENAME}}}}|TEMPLATE:CT||{{DISPLAYTITLE:{{{macro}}}}}}}{{Navbox/CT}}
| |
| {{ConfigPage|start}}
| |
| == Introduction ==
| |
| {{{description}}}
| |
| {{#if: {{{gallery|}}}|
| |
| {{#tag:gallery|{{{gallery}}}|mode="slideshow"|heights=240px|widths=240px}}
| |
| }}
| |
|
| |
| === Related commands & functions ===
| |
| * [[:Category:Command_Group:_GUI_Control|Commands: General]]
| |
| * [[:Category:Command_Group:_GUI_Control_-_Event_Handlers|Commands: UI Eventhandlers]]<!--
| |
| -->{{#if: {{{commands|}}} |
| |
| {{{commands}}}
| |
| }}
| |
|
| |
| === Related User Interface Eventhandlers ===
| |
| * [[User_Interface_Event_Handlers#Generic_events|Events: General]]<!--
| |
| -->{{#if: {{{events|}}} |
| |
| {{{events}}}
| |
| }}
| |
|
| |
| == Alphabetical Order ==
| |
| {{Feature|Informative|TokenNames common to most controls, such as x, y, w, h, text, idc... can be found [[Arma:_GUI_Configuration#Common_Properties|'''here''']].}}
| |
| {{Feature|Warning|Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with [https://github.com/7erra/BIKI.VR/blob/master/fnc/generateCTPage.sqf this] config crawler.}}
| |
| {{#tag:syntaxhighlight|#define {{{macro}}} {{{value}}}|lang=cpp}}
| |
|
| |
| |abc start = {{ConfigPage|abc}}
| |
|
| |
| |attribute =<nowiki/> | | |attribute =<nowiki/> |
| ==== {{{name}}} ==== | | ==== {{{name}}} ==== |
Line 62: |
Line 33: |
| | {{{name}}} {{=}} {{{value4}}}; | | | {{{name}}} {{=}} {{{value4}}}; |
| }}|lang=cpp}}}} | | }}|lang=cpp}}}} |
| | | }} |
| |abc end = {{ConfigPage|end}}
| |
| | |
| |examples = == Default Classes ==
| |
| {{Feature|arma3|'''AddOns:''' Classes need to be initialised first with {{ic|class SomeClass;}}
| |
| ----
| |
| '''Missions:''' Since {{arma3}} v2.02 one can use {{ic|[[import]] SomeClass;}} to initialise a class. In older versions, use {{ic|"Default" [[call]] [[BIS_fnc_exportGUIBaseClasses]];}} and paste the result into the [[Description.ext|description.ext]].}}}}
| |
| </includeonly><noinclude> | | </includeonly><noinclude> |
| == Usage ==
| |
| <pre>{{User:Lou Montana/Sandbox|mode|arg1=value|arg2=value2|...}}</pre>
| |
| {| class="wikitable"
| |
| ! Mode !! Arguments !! Description !! Example
| |
| |-
| |
| | rowspan="6" | '''intro''' || macro || Control type macro from [[BIS_fnc_exportGUIBaseClasses]]. || <pre>CT_STATIC</pre>
| |
| |-
| |
| | value || Value of the macro. || <pre>0</pre>
| |
| |-
| |
| | description || Some text to give info about the CT. || <pre>This is CT_MAP. It is a map.</pre>
| |
| |-
| |
| | gallery || List of images to display in a gallery below the description. || <pre>File:Image.jpg{{!}}This is an image of the control.</pre>
| |
| |-
| |
| | commands || List of commands associated with the control. ||<pre>* [[:Category:Command_Group:_GUI_Control_-_Controls_Table|Commands: Controls Table]]</pre>
| |
| |-
| |
| | events || List of UIEH that work on the control. || <pre>* [[User_Interface_Event_Handlers|Events: All]]</pre>
| |
| |-
| |
| | colspan="4" |
| |
| |-
| |
| | '''abc start''' || no arguments || Marks the beggining of the config reference part with the use of the '''attribute''' mode. ||
| |
| |-
| |
| | colspan="4" |
| |
| |-
| |
| | rowspan="5" | '''attribute''' || name || Name of the attribute. || <pre>text</pre>
| |
| |-
| |
| | value1-4 || Possible values of the config entry. Has to match the type given by type1-4. || <pre>"This is a string"</pre>
| |
| |-
| |
| | type1-4 || Type of the respective value. Possible values: Number, String, Array, Class. Each type/value pair gets an example.|| <pre>String</pre>
| |
| |-
| |
| | description || What does the attribute do? || <pre>This string displays text.</pre>
| |
| |-
| |
| | mandatory || If defined a yellow warning box will be displayed at the attributes position. Mandatory attributes throw an error in RPT when omitted. || <pre>1</pre>
| |
| |-
| |
| | colspan="4" |
| |
| |-
| |
| | '''abc end''' || no arguments || Marks the end of the config reference. ||
| |
| |-
| |
| | colspan="4" |
| |
| |-
| |
| | '''examples''' || no arguments || Inserts the header and a disclaimer at this position. ||
| |
| |}
| |
|
| |
| You can inspect the generator code for this page by clicking EDIT on the top right. The code starts below this line:<br>
| |
| ------------------------------------------------------------------------------------------------------------------------
| |
|
| |
| {{User:Lou Montana/Sandbox|intro
| |
| |macro = CT_TREE
| |
| |value = 1234
| |
| |description = Informative text about this control type.
| |
| |gallery = File:CT COMBO.jpg {{!}}Example image 1.
| |
| File:BIS fnc 3DENDiagFonts example.jpg{{!}}Image 2.
| |
| |commands = * command group CT
| |
| |events =
| |
| * event1
| |
| * event2
| |
| }}
| |
|
| |
| {{User:Lou Montana/Sandbox|abc start}}
| |
| === T ===
| |
| {{User:Lou Montana/Sandbox|attribute
| |
| | name=testArray
| |
| | value1={1,0,0,1}
| |
| | type1=Array
| |
| | description=This is a test array to test arrays. {{Feature|important|Notice Me!}}
| |
| }}
| |
| {{User:Lou Montana/Sandbox|attribute
| |
| | name=testAttribute
| |
| | value1="test"
| |
| | type1=String
| |
| | mandatory=1
| |
| }}
| |
|
| |
|
| {{User:Lou Montana/Sandbox|attribute | | {{User:Lou Montana/Sandbox|attribute |
Line 168: |
Line 62: |
| }} | | }} |
| {{User:Lou Montana/Sandbox|abc end}} | | {{User:Lou Montana/Sandbox|abc end}} |
|
| |
| {{User:Lou Montana/Sandbox|examples}}
| |
| === RscExample ===
| |
| <syntaxhighlight lang="cpp">
| |
| class RscExample
| |
| {
| |
| deletable = 0;
| |
| fade = 0;
| |
| access = 0;
| |
| type = CT_TYPEMACRO;
| |
| style = SL_HORZ;
| |
| color[] = {1,1,1,0.8};
| |
| colorActive[] = {1,1,1,1};
| |
| shadow = 0;
| |
| x = 0;
| |
| y = 0;
| |
| w = 0.3;
| |
| h = 0.025;
| |
| };
| |
| </syntaxhighlight>
| |
|
| |
|
| [[Category:Templates|{{uc:{{PAGENAME}}}}]] | | [[Category:Templates|{{uc:{{PAGENAME}}}}]] |
| </noinclude> | | </noinclude> |