Add custom CfgUIGrids for microDagr (#5014)

This commit is contained in:
PabstMirror 2017-03-23 11:15:42 -05:00 committed by GitHub
parent 5d8cf43199
commit 15346d0919
4 changed files with 26 additions and 4 deletions

View 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;
};
};
};
};

Binary file not shown.

View File

@ -18,4 +18,5 @@ class CfgPatches {
#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
#include "gui.hpp"
#include "CfgUIGrids.hpp"
#include "ACE_Settings.hpp"

View File

@ -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