mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a40b0d48f2
* HEMTT v10 Compatibility * Update addons/field_rations/CfgUIGrids.hpp Co-authored-by: PabstMirror <pabstmirror@gmail.com> * fix PabstMirror review * optionals * End empty macro definitions with semi-colon (HEMTT v0.10) * Adapt to HEMTT v0.10.0-a14 * Revert End empty macro definitions with semi-colon * Disable old HEMTT build step in CI * Add missing include and fix macro usage and include casings * End empty macro definitions with semi-colon (HEMTT v0.10) * Update addons/disarming/functions/fnc_showItemsInListbox.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com> * cleanup test code * arty - keep style same as before * fix fire screams * Update script_component.hpp * Keep old hemtt/workflow/sqfc * Update arma.yml * Update arma.yml * Update CfgUIGrids.hpp --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
23 lines
1.0 KiB
C++
23 lines
1.0 KiB
C++
#define SPEED_INDICATOR_W (IGUI_GRID_STANCE_WAbs / 2)
|
|
#define SPEED_INDICATOR_H (IGUI_GRID_STANCE_HAbs / 3.5)
|
|
#define SPEED_INDICATOR_Y_OFFSET (IGUI_GRID_STANCE_HAbs / 4.25)
|
|
|
|
#undef IGUI_GRID_STANCE_X
|
|
#undef IGUI_GRID_STANCE_Y
|
|
#define ace_IGUI_GRID_STANCE_X (profilenamespace getvariable ['IGUI_GRID_STANCE_X',IGUI_GRID_STANCE_XDef])
|
|
#define ace_IGUI_GRID_STANCE_Y (profilenamespace getvariable ['IGUI_GRID_STANCE_Y',IGUI_GRID_STANCE_YDef])
|
|
|
|
class RscPictureKeepAspect;
|
|
class RscInGameUI {
|
|
class RscStanceInfo {
|
|
controls[] += {QGVAR(speedIndicator)};
|
|
class GVAR(speedIndicator): RscPictureKeepAspect {
|
|
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(speedIndicator),_this select 0)]);
|
|
x = QUOTE(ace_IGUI_GRID_STANCE_X + IGUI_GRID_STANCE_WAbs / 2 - SPEED_INDICATOR_W / 2);
|
|
y = QUOTE(ace_IGUI_GRID_STANCE_Y + IGUI_GRID_STANCE_HAbs - SPEED_INDICATOR_Y_OFFSET);
|
|
w = QUOTE(SPEED_INDICATOR_W);
|
|
h = QUOTE(SPEED_INDICATOR_H);
|
|
};
|
|
};
|
|
};
|