mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3023 from acemod/disablestaminabar
add function to retrieve the control of the stamina bar
This commit is contained in:
commit
90387eaf5b
@ -107,6 +107,10 @@ class RscInGameUI {
|
|||||||
class RscOptics_LaserDesignator_02 {
|
class RscOptics_LaserDesignator_02 {
|
||||||
onLoad = QUOTE([ARR_2('infoDisplayChanged', [ARR_2(_this select 0, 'Any')])] call FUNC(localEvent););
|
onLoad = QUOTE([ARR_2('infoDisplayChanged', [ARR_2(_this select 0, 'Any')])] call FUNC(localEvent););
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class RscStaminaBar {
|
||||||
|
onLoad = QUOTE([ARR_4(""onLoad"",_this,""RscStaminaBar"",'IGUI')] call (uinamespace getvariable 'BIS_fnc_initDisplay'); uiNamespace setVariable [ARR_2(QUOTE(QGVAR(dlgStaminaBar)),_this select 0)]);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class RscDisplayInventory {
|
class RscDisplayInventory {
|
||||||
|
@ -74,6 +74,7 @@ PREP(getNumberFromMissionSQM);
|
|||||||
PREP(getNumberMagazinesIn);
|
PREP(getNumberMagazinesIn);
|
||||||
PREP(getPitchBankYaw);
|
PREP(getPitchBankYaw);
|
||||||
PREP(getSettingData);
|
PREP(getSettingData);
|
||||||
|
PREP(getStaminaBarControl);
|
||||||
PREP(getStringFromMissionSQM);
|
PREP(getStringFromMissionSQM);
|
||||||
PREP(getTargetAzimuthAndInclination);
|
PREP(getTargetAzimuthAndInclination);
|
||||||
PREP(getTargetDistance);
|
PREP(getTargetDistance);
|
||||||
|
15
addons/common/functions/fnc_getStaminaBarControl.sqf
Normal file
15
addons/common/functions/fnc_getStaminaBarControl.sqf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* Author: commy2
|
||||||
|
* Returns the control of the Stamina Bar from Arma 1.54.
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Return Value:
|
||||||
|
* Stamina Bar control <CONTROL>
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
(uiNamespace getVariable [QGVAR(dlgStaminaBar), displayNull]) displayCtrl IDC_STAMINA_BAR
|
@ -83,6 +83,8 @@
|
|||||||
|
|
||||||
#define ACE_isHC (!hasInterface && !isDedicated)
|
#define ACE_isHC (!hasInterface && !isDedicated)
|
||||||
|
|
||||||
|
#define IDC_STAMINA_BAR 193
|
||||||
|
|
||||||
//By default CBA's TRACE/LOG/WARNING spawn a buffer, which can cause messages to be logged out of order:
|
//By default CBA's TRACE/LOG/WARNING spawn a buffer, which can cause messages to be logged out of order:
|
||||||
#ifdef CBA_DEBUG_SYNCHRONOUS
|
#ifdef CBA_DEBUG_SYNCHRONOUS
|
||||||
#define CBA_fnc_log { params ["_file","_lineNum","_message"]; diag_log [diag_frameNo, diag_tickTime, time, _file + ":"+str(_lineNum + 1), _message]; }
|
#define CBA_fnc_log { params ["_file","_lineNum","_message"]; diag_log [diag_frameNo, diag_tickTime, time, _file + ":"+str(_lineNum + 1), _message]; }
|
||||||
|
Loading…
Reference in New Issue
Block a user