7erra/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{wip}} =GUI coordinates= Creating dialogs makes understanding the way Arma 3 handles the screen coordinates mandatory. This page is supposed to give an overview and explanati...")
 
(bis_fnc_arsenal variables)
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wip}}
=== Variables ===
=GUI coordinates=
This is a list of all the variables that are used by the Virtual Arsenal.
Creating dialogs makes understanding the way Arma 3 handles the screen coordinates mandatory. This page is supposed to give an overview and explanation of this topic.
==Considerations==
There are three important things to keep in mind:
===1) Keeping the dialog on screen===
For this purpose the safeZone grid was introduced. Here is a quick rundown of all six commands:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Command !! Explanation
! colspan=3 | [[missionNamespace]]
|-
|-
| safeZoneX || The left edge of the screen on SINGLE monitor settings.
! Variable !! Data Type !! Explanation
|-
|-
| safeZoneXAbs || The left edge of the screen on MULTIPLE monitors (Triple Head, three screens).
| BIS_fnc_arsenal_data || [[Array]] of arrays of [[String|strings]] || All available items that can be accessed in the Arsenal (not the actual content!). Format:<br>
 
{| class="wikitable"
|-
! Index !! Content
|-
| 0 || Primary Weapons
|-
| 1 || Secondary Weapons
|-
| 2 || Handguns
|-
| 3 || Uniforms
|-
| 4 || Vests
|-
| 5 || Backpacks
|-
| 6 || Headgear
|-
| 7 || Goggles
|-
| 8 || NVGs
|-
| 9 || Binoculars
|-
| 10 || Maps
|-
| 11 || GPS
|-
| 12 || Radio
|-
| 13 || Compass
|-
| 14 || Watch
|-
| 15 || Face (empty)
|-
| 16 || Voice (empty)
|-
| 17 || Insignia (empty)
|-
| 18 || Optic attachments (empty)
|-
| 19 || Side attachments (empty)
|-
| 20 || Muzzle attachments (empty)
|-
|-
| safeZoneY|| The top edge of the screen.
| 21 || Compatible magazines (empty)
|-
|-
| safeZoneW|| The width of of the screen in a SINGLE monitor setup (or the center one in case of triple head).
| 22 || Grenades
|-
|-
| safeZoneWAbs|| The width of a triple head setup. In case of a single monitor this is equal to safeZoneW.
| 23 || Placeables
|-
|-
| safeZoneH|| The height of the screen
| 24 || Miscellaneous
|-
| 25 || Bipod attachments (empty)
|-
| 26 || All magazines
|}
|}


===2) Considering different settings===
|}
These are the settings that can be changed and will influence your dialog:
* Screen resolution and aspect ratio: 1920x1080 (16:9), 1366x768 (16:9), 1024x768 (4:3), etc.)
* UI scale: Ranges from Very Small to Very Large
* Triple Head setups
 
For this purpose the GUI_GRID was introduced. It's purpose is to keep a uniform style on all dialogs and is the grid system used across nearly all Arma 3 dialogs.

Latest revision as of 01:11, 6 September 2021

Variables

This is a list of all the variables that are used by the Virtual Arsenal.

missionNamespace
Variable Data Type Explanation
BIS_fnc_arsenal_data Array of arrays of strings All available items that can be accessed in the Arsenal (not the actual content!). Format:
Index Content
0 Primary Weapons
1 Secondary Weapons
2 Handguns
3 Uniforms
4 Vests
5 Backpacks
6 Headgear
7 Goggles
8 NVGs
9 Binoculars
10 Maps
11 GPS
12 Radio
13 Compass
14 Watch
15 Face (empty)
16 Voice (empty)
17 Insignia (empty)
18 Optic attachments (empty)
19 Side attachments (empty)
20 Muzzle attachments (empty)
21 Compatible magazines (empty)
22 Grenades
23 Placeables
24 Miscellaneous
25 Bipod attachments (empty)
26 All magazines