ACE3/addons/medical_feedback/RscInGameUI.hpp
10Dozen 3d9315529d
Medical Feedback - Add indication of Fractures and applied CATs/Splints (#8321)
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
Co-authored-by: jonpas <jonpas33@gmail.com>
2021-10-12 14:16:30 +02:00

35 lines
1.4 KiB
C++

class RscPictureKeepAspect;
class RscInGameUI {
class RscStanceInfo {
controls[] += {
QGVAR(bloodVolumeIndicator),
QGVAR(stateIndicator1),
QGVAR(stateIndicator2),
QGVAR(stateIndicator3)
};
class GVAR(bloodVolumeIndicator): RscPictureKeepAspect {
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(bloodVolumeIndicator),_this select 0)]);
x = IGUI_GRID_STANCE_X;
y = IGUI_GRID_STANCE_Y;
w = IGUI_GRID_STANCE_WAbs / 4;
h = IGUI_GRID_STANCE_HAbs / 4;
};
class GVAR(stateIndicator1): RscPictureKeepAspect {
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(stateIndicator1), _this select 0)]);
x = IGUI_GRID_STANCE_X + IGUI_GRID_STANCE_WAbs * 3 / 4;
y = IGUI_GRID_STANCE_Y;
w = IGUI_GRID_STANCE_WAbs / 4;
h = IGUI_GRID_STANCE_HAbs / 4;
};
class GVAR(stateIndicator2): GVAR(stateIndicator1) {
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(stateIndicator2), _this select 0)]);
y = IGUI_GRID_STANCE_Y + IGUI_GRID_STANCE_HAbs / 4;
};
class GVAR(stateIndicator3): GVAR(stateIndicator1) {
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(stateIndicator3), _this select 0)]);
y = IGUI_GRID_STANCE_Y + IGUI_GRID_STANCE_HAbs * 2 / 4;
};
};
};