ACE3/addons/ui/script_component.hpp
jonpas 4c995d4c5c Improve selective UI API (#3805)
* Improve selective UI API, Disable ammo count when reload component is loaded, Fix stance UI

* Upgrade Selective UI framework for controls that share IDCs for gunner and soldier

* Separate more soldier and gunner settings sharing same IDCs, Remove vehicle gunner weapon which has no effect anymore

* Separate more soldier and gunner IDC sharing elements, Fix typo, Fix API setting not being respected in case where selective type is not the same on load

* Rework Selective UI using ACE_UI config, Cleanup, Add ACE_UI to FCS component to mark it (is already disabled due to other necessary settings for FCS to function)

* Do location check in function, Rename condition to location, change to number

* Use macros in ACE_UI location
2016-06-02 14:32:39 +02:00

69 lines
1.7 KiB
C++

#define COMPONENT ui
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_UI
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_UI
#define DEBUG_SETTINGS DEBUG_SETTINGS_UI
#endif
#include "\z\ace\addons\main\script_macros.hpp"
// Basic Elements
#define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar)]
/*
RscUnitInfo = 300
--------------------
118 (Weapon Name / Gunner Weapon Name)
+ 1001 (Weapon Name Background 1/2 / Gunner Weapon Name Background 1/2)
+ 1008 (Weapon Name Background 2/2 / Gunner Weapon Name Background 2/2)
187 (Firing Mode / Gunner Firing Mode)
+ 1203 (Firing Mode Background / Gunner Firing Mode Background)
155 (Ammo Type / Gunner Ammo Type)
184 (Ammo Count / Gunner Ammo Count)
185 (Magazine Count / Gunner Magazine Count)
152 (Grenade/Flare Type / Launchable Type)
151 (Grenade/Flare Count / Launchable Count)
1202 (Lower Weapon Info Background / Gunner Lower Weapon Info Background)
168 (Zeroing / Gunner Zeroing)
120 (Vehicle Name)
1000 (Vehicle Name Background 1/2)
+ 1013 (Vehicle Name Background 2/2)
113 (Vehicle Fuel Bar)
+ 1202 (Vehicle Fuel Bar Background)
121 (Vehicle Speed Number)
+ 1004 (Vehicle Speed Unit)
+ 1006 (Vehicle Speed Background)
122 (Vehicle Altitude Number)
+ 1005 (Vehicle Altitude Units)
+ 1014 (Vehicle Altitude Background)
111 (Vehicle Damage)
1200 (Vehicle Info Background)
RscStanceInfo = 303
--------------------
188 (Stance)
+ 1201 (Stance Background)
RscStaminaBar = 305
--------------------
193 (Stamina Bar)
*/