mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add custom CfgUIGrids for microDagr (#5014)
This commit is contained in:
parent
5d8cf43199
commit
15346d0919
21
addons/microdagr/CfgUIGrids.hpp
Normal file
21
addons/microdagr/CfgUIGrids.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
class CfgUIGrids {
|
||||
class IGUI {
|
||||
class Presets {
|
||||
class Arma3 {
|
||||
class Variables {
|
||||
grid_ACE_microDagr[] = {{"(safezoneX + safezoneW - 11 * (((safezoneW / safezoneH) min 1.2) / 40))","(safezoneY + safezoneH - 15 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))","(10 * (((safezoneW / safezoneH) min 1.2) / 40))","(10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))"},"(((safezoneW / safezoneH) min 1.2) / 40)","((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Variables {
|
||||
class grid_ACE_microDagr {
|
||||
displayName = COMPONENT_NAME;
|
||||
description = "ACE MicroDagr";
|
||||
preview = QPATHTOF(ui\IGUI_preview_ca.paa);
|
||||
saveToProfile[] = {0,1,2,3};
|
||||
canResize = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
BIN
addons/microdagr/UI/IGUI_preview_ca.paa
Normal file
BIN
addons/microdagr/UI/IGUI_preview_ca.paa
Normal file
Binary file not shown.
@ -18,4 +18,5 @@ class CfgPatches {
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "gui.hpp"
|
||||
#include "CfgUIGrids.hpp"
|
||||
#include "ACE_Settings.hpp"
|
||||
|
@ -59,10 +59,10 @@ class GVAR(TheDialog) {
|
||||
|
||||
|
||||
//Redfine Scaling for the RscTitle
|
||||
#define PROFILE_X (profilenamespace getVariable ['IGUI_GRID_GPS_X', 0])
|
||||
#define PROFILE_Y (profilenamespace getVariable ['IGUI_GRID_GPS_Y', 0])
|
||||
#define PROFILE_W (profilenamespace getVariable ['IGUI_GRID_GPS_W', 1])
|
||||
#define PROFILE_H ((16/9) * (profilenamespace getVariable ['IGUI_GRID_GPS_W', 1]))
|
||||
#define PROFILE_X (profilenamespace getVariable ['IGUI_grid_ACE_microDagr_X', 0])
|
||||
#define PROFILE_Y (profilenamespace getVariable ['IGUI_grid_ACE_microDagr_Y', 0])
|
||||
#define PROFILE_W (profilenamespace getVariable ['IGUI_grid_ACE_microDagr_W', 1])
|
||||
#define PROFILE_H ((16/9) * (profilenamespace getVariable ['IGUI_grid_ACE_microDagr_W', 1]))
|
||||
|
||||
//Need undef's for pboProject
|
||||
#undef X_PART
|
||||
|
Loading…
Reference in New Issue
Block a user