allDisplays: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(53 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.38


| 1.38 |= Game version
|gr1= GUI Control
____________________________________________________________________________________________


| Returns a list of all opened displays (excluding InGameUI displays for now)|= Description
|descr= Returns a list of all opened GUI displays.
____________________________________________________________________________________________


{{Feature | informative | Other displays could be accessed via [[uiNamespace]] variable which is updated every time a display is opened or closed.
For example, to access IGUI displays:
<sqf>private _iguiDisplays = uiNamespace getVariable ["IGUI_displays", []];</sqf>


| '''allDisplays''' |= Syntax
Other display variables:
{{Columns|4|
* {{hl|"3DENDisplaysTemp_displays"}}
* {{hl|"3DENDisplays_displays"}}
* {{hl|"BootcampDisplays_displays"}}
* {{hl|"BootcampTitles_displays"}}
* {{hl|"CuratorDisplays_displays"}}
* {{hl|"CuratorTitles_displays"}}
* {{hl|"GUI_displays"}}
* {{hl|"IGUI_displays"}}
* {{hl|"KartDisplays_displays"}}
* {{hl|"Loading_displays"}}
}}
}}


|p1= |=


| [[Array]] of [[Display]]s |= RETURNVALUE
|s1= [[allDisplays]]
____________________________________________________________________________________________


| x1= <code>_allDisps = [[allDisplays]];</code>|= EXAMPLE1
|r1= [[Array]] of GUI [[Display]]s
____________________________________________________________________________________________


| [[allControls]], [[controlsGroupCtrl]], [[ctrlCreate]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] |= SEEALSO
|x1= <sqf>private _allDisps = allDisplays;</sqf>


| |= MPBEHAVIOUR
|seealso= [[allControls]] [[findDisplay]] [[controlsGroupCtrl]] [[ctrlCreate]] [[allVariables]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 15, 2016 - 18:30 (UTC)</dd>
<dt class="note">[[User:Molaron|Molaron]]</dt>
<dd class="note">If you want to get a list of all inGame-UI-Displays just do: <code>uiNamespace getVariable "igui_displays"</code></dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 12:02, 14 May 2022

Hover & click on the images for description

Description

Description:
Returns a list of all opened GUI displays.
Other displays could be accessed via uiNamespace variable which is updated every time a display is opened or closed.

For example, to access IGUI displays:

private _iguiDisplays = uiNamespace getVariable ["IGUI_displays", []];

Other display variables:

  • "3DENDisplaysTemp_displays"
  • "3DENDisplays_displays"
  • "BootcampDisplays_displays"
  • "BootcampTitles_displays"
  • "CuratorDisplays_displays"
  • "CuratorTitles_displays"
  • "GUI_displays"
  • "IGUI_displays"
  • "KartDisplays_displays"
  • "Loading_displays"
Groups:
GUI Control

Syntax

Syntax:
allDisplays
Return Value:
Array of GUI Displays

Examples

Example 1:
private _allDisps = allDisplays;

Additional Information

See also:
allControls findDisplay controlsGroupCtrl ctrlCreate allVariables allCurators allGroups allDead allDeadMen

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note