Skip to content

Commit

Permalink
fix zeus modules
Browse files Browse the repository at this point in the history
  • Loading branch information
MiszczuZPolski committed Oct 27, 2023
1 parent 0a0a600 commit 587dfca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 0 additions & 4 deletions addons/gui/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

#include "\x\kat\addons\main\script_macros.hpp"

#include "\a3\ui_f\hpp\defineDIKCodes.inc"
#include "\a3\ui_f\hpp\defineCommonGrids.inc"
#include "\a3\ui_f\hpp\defineCommonColors.inc"

#define POS_X(N) ((N) * GUI_GRID_W + GUI_GRID_CENTER_X)
#define POS_Y(N) ((N) * GUI_GRID_H + GUI_GRID_CENTER_Y)
#define POS_W(N) ((N) * GUI_GRID_W)
Expand Down
3 changes: 3 additions & 0 deletions addons/main/script_macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "\x\cba\addons\main\script_macros_common.hpp"
#include "\x\cba\addons\xeh\script_xeh.hpp"
#include "\z\ace\addons\medical_engine\script_macros_medical.hpp"
#include "\a3\ui_f\hpp\defineDIKCodes.inc"
#include "\a3\ui_f\hpp\defineCommonGrids.inc"
#include "\a3\ui_f\hpp\defineCommonColors.inc"

// Default versioning level
#define DEFAULT_VERSIONING_LEVEL 2
Expand Down
2 changes: 0 additions & 2 deletions addons/zeus/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;



ADDON = true;
8 changes: 8 additions & 0 deletions addons/zeus/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
#endif

#include "\x\kat\addons\main\script_macros.hpp"

// UI grid
#define SIZEX ((safeZoneW / safeZoneH) min 1.2)
#define SIZEY (SIZEX / 1.2)
#define W_PART(num) (num * (SIZEX / 40))
#define H_PART(num) (num * (SIZEY / 25))
#define X_PART(num) (W_PART(num) + (safeZoneX + (safeZoneW - SIZEX) / 2))
#define Y_PART(num) (H_PART(num) + (safeZoneY + (safeZoneH - SIZEY) / 2))

0 comments on commit 587dfca

Please sign in to comment.