mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dynamic Inventory Size
This commit is contained in:
parent
9709fa17c0
commit
35f72e0fda
520
addons/inventory/RscDisplayInventory.hpp
Normal file
520
addons/inventory/RscDisplayInventory.hpp
Normal file
@ -0,0 +1,520 @@
|
|||||||
|
/*
|
||||||
|
Adjust the scaling of the inventory screen
|
||||||
|
- changes it from scaling based on user's interface size to a static size
|
||||||
|
- text size and row height size are uneffected
|
||||||
|
- also tweaks the height of the two ProgressBars which looked odd scaled up so much
|
||||||
|
|
||||||
|
regex:
|
||||||
|
x = "[-+]?(\d*[.]?\d+).*
|
||||||
|
x = X_PART\(\1\);
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
class RscText;
|
||||||
|
class RscPicture;
|
||||||
|
class RscListBox;
|
||||||
|
class RscProgress;
|
||||||
|
class RscStructuredText;
|
||||||
|
class RscActiveText;
|
||||||
|
class RscCombo;
|
||||||
|
|
||||||
|
#define X_BIS(num) (num * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2))
|
||||||
|
#define Y_BIS(num) (num * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2))
|
||||||
|
#define W_BIS(num) (num * (((safezoneW / safezoneH) min 1.2) / 40))
|
||||||
|
#define H_BIS(num) (num * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))
|
||||||
|
|
||||||
|
|
||||||
|
#define X_MAKEITBIGGA(num) (num * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2))
|
||||||
|
#define Y_MAKEITBIGGA(num) (num * (safeZoneH / 30) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2))
|
||||||
|
#define W_MAKEITBIGGA(num) (num * (safeZoneH / 40))
|
||||||
|
#define H_MAKEITBIGGA(num) (num * (safeZoneH / 30))
|
||||||
|
|
||||||
|
|
||||||
|
#define X_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(inventoryDisplaySize)), 0)]), X_BIS(num), X_MAKEITBIGGA(num))])
|
||||||
|
#define Y_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(inventoryDisplaySize)), 0)]), Y_BIS(num), Y_MAKEITBIGGA(num))])
|
||||||
|
#define W_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(inventoryDisplaySize)), 0)]), W_BIS(num), W_MAKEITBIGGA(num))])
|
||||||
|
#define H_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(inventoryDisplaySize)), 0)]), H_BIS(num), H_MAKEITBIGGA(num))])
|
||||||
|
|
||||||
|
class RscDisplayInventory {
|
||||||
|
class controls {
|
||||||
|
class CA_ContainerBackground: RscText {
|
||||||
|
//crate: GroundLoad adjust size
|
||||||
|
x = X_PART(1);
|
||||||
|
y = Y_PART(1);
|
||||||
|
w = W_PART(12);
|
||||||
|
h = H_PART(22.5);
|
||||||
|
};
|
||||||
|
class CA_PlayerBackground: RscText {
|
||||||
|
//center player's container: decrease height because of progressbar height decrease
|
||||||
|
x = X_PART(14.6);
|
||||||
|
y = Y_PART(2);
|
||||||
|
w = W_PART(24.4);
|
||||||
|
h = H_PART(21.5);
|
||||||
|
};
|
||||||
|
class TitleBackground: RscText {
|
||||||
|
x = X_PART(14.6);
|
||||||
|
y = Y_PART(1);
|
||||||
|
w = W_PART(24.4);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class PlayersName: RscText {
|
||||||
|
x = X_PART(15.6);
|
||||||
|
y = Y_PART(1);
|
||||||
|
w = W_PART(19.8);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class RankBackground: RscText {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(1.25);
|
||||||
|
w = W_PART(0.6);
|
||||||
|
h = H_PART(0.6);
|
||||||
|
};
|
||||||
|
class RankPicture: RscPicture {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(1.25);
|
||||||
|
w = W_PART(0.6);
|
||||||
|
h = H_PART(0.6);
|
||||||
|
};
|
||||||
|
class ButtonBack: RscActiveText {
|
||||||
|
x = X_PART(38);
|
||||||
|
y = Y_PART(1);
|
||||||
|
w = W_PART(1);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class BackgroundSlotPrimary: RscPicture {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(6);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class BackgroundSlotPrimaryMuzzle: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotPrimaryFlashlight: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotPrimaryOptics: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotPrimaryMagazine: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotSecondary: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(11.5);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class BackgroundSlotSecondaryMuzzle: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotSecondaryFlashlight: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotSecondaryOptics: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotSecondaryMagazine: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHandgun: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(17);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHandgunMuzzle: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHandgunFlashlight: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHandgunOptics: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHandgunMagazine: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHeadgear: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class BackgroundSlotGoggles: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class BackgroundSlotHMD: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class BackgroundSlotBinoculars: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class BackgroundSlotMap: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.12);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotGPS: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(17.32);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.12);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotCompass: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(21.76);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.12);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotRadio: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(19.54);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.12);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class BackgroundSlotWatch: BackgroundSlotPrimary {
|
||||||
|
x = X_PART(23.98);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.12);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class ExternalContainerBackground: RscPicture {
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(3.7);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(18.4);
|
||||||
|
};
|
||||||
|
class PlayerContainerBackground: ExternalContainerBackground {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(6);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(14);
|
||||||
|
};
|
||||||
|
class GroundTab: RscActiveText {
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(1.5);
|
||||||
|
w = W_PART(5.5);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class SoldierTab: GroundTab {
|
||||||
|
x = X_PART(7);
|
||||||
|
y = Y_PART(1.5);
|
||||||
|
w = W_PART(5.5);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class GroundContainer: RscListBox {
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(3.7);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(18.4);
|
||||||
|
};
|
||||||
|
class GroundFilter: RscCombo {
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(2.6);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class GroundLoad: RscProgress {
|
||||||
|
//crate: GroundLoad adjust size
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(22.5);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(0.5);
|
||||||
|
};
|
||||||
|
class SlotPrimary: GroundTab {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(6);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class SlotPrimaryMuzzle: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotPrimaryGrip: SlotPrimary {
|
||||||
|
w = 0;
|
||||||
|
h = 0;
|
||||||
|
x = X_PART(39);
|
||||||
|
y = Y_PART(9);
|
||||||
|
};
|
||||||
|
class SlotPrimaryFlashlight: SlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotPrimaryOptics: SlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotPrimaryMagazine: SlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(9.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotSecondary: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(11.5);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class SlotSecondaryMuzzle: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotSecondaryGrip: SlotPrimary {
|
||||||
|
w = 0;
|
||||||
|
h = 0;
|
||||||
|
x = X_PART(39);
|
||||||
|
y = Y_PART(14.5);
|
||||||
|
};
|
||||||
|
class SlotSecondaryFlashlight: SlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotSecondaryOptics: SlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotSecondaryMagazine: SlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(14.6);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotHandgun: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(17);
|
||||||
|
w = W_PART(11.9);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class SlotHandgunMuzzle: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotHandgunGrip: SlotPrimary {
|
||||||
|
w = 0;
|
||||||
|
h = 0;
|
||||||
|
x = X_PART(39);
|
||||||
|
y = Y_PART(20);
|
||||||
|
};
|
||||||
|
class SlotHandgunFlashlight: SlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotHandgunOptics: SlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotHandgunMagazine: SlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotHeadgear: SlotPrimary {
|
||||||
|
x = X_PART(26.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class SlotGoggles: SlotPrimary {
|
||||||
|
x = X_PART(29.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class SlotHMD: SlotPrimary {
|
||||||
|
x = X_PART(32.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class SlotBinoculars: SlotPrimary {
|
||||||
|
x = X_PART(35.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(2.9);
|
||||||
|
h = H_PART(2.9);
|
||||||
|
};
|
||||||
|
class SlotMap: SlotPrimary {
|
||||||
|
x = X_PART(15.16);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotGPS: SlotPrimary {
|
||||||
|
x = X_PART(17.38);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotCompass: SlotPrimary {
|
||||||
|
x = X_PART(21.82);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotRadio: SlotPrimary {
|
||||||
|
x = X_PART(19.6);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class SlotWatch: SlotPrimary {
|
||||||
|
x = X_PART(24.04);
|
||||||
|
y = Y_PART(20.1);
|
||||||
|
w = W_PART(2);
|
||||||
|
h = H_PART(2);
|
||||||
|
};
|
||||||
|
class UniformTab: GroundTab {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class UniformSlot: SlotPrimary {
|
||||||
|
x = X_PART(15.35);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class UniformLoad: GroundLoad {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(5.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(0.5);
|
||||||
|
};
|
||||||
|
class UniformContainer: GroundContainer {
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(6);
|
||||||
|
w = W_PART(11);
|
||||||
|
h = H_PART(14);
|
||||||
|
};
|
||||||
|
class VestTab: UniformTab {
|
||||||
|
x = X_PART(18.85);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class VestSlot: SlotPrimary {
|
||||||
|
x = X_PART(19.1);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class VestLoad: GroundLoad {
|
||||||
|
x = X_PART(18.85);
|
||||||
|
y = Y_PART(5.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(0.5);
|
||||||
|
};
|
||||||
|
class BackpackTab: UniformTab {
|
||||||
|
x = X_PART(22.6);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class BackpackSlot: SlotPrimary {
|
||||||
|
x = X_PART(22.85);
|
||||||
|
y = Y_PART(2.5);
|
||||||
|
w = W_PART(3);
|
||||||
|
h = H_PART(3);
|
||||||
|
};
|
||||||
|
class BackpackLoad: GroundLoad {
|
||||||
|
x = X_PART(22.6);
|
||||||
|
y = Y_PART(5.5);
|
||||||
|
w = W_PART(3.5);
|
||||||
|
h = H_PART(0.5);
|
||||||
|
};
|
||||||
|
class TotalLoad: GroundLoad {
|
||||||
|
//center: progressbar height decrease
|
||||||
|
x = X_PART(15.1);
|
||||||
|
y = Y_PART(22.5);
|
||||||
|
w = W_PART(23.4);
|
||||||
|
h = H_PART(0.5);
|
||||||
|
};
|
||||||
|
class ContainerMarker: GroundTab {
|
||||||
|
x = X_PART(0);
|
||||||
|
y = Y_PART(24);
|
||||||
|
w = W_PART(1);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class GroundMarker: ContainerMarker {
|
||||||
|
x = X_PART(1.5);
|
||||||
|
y = Y_PART(24);
|
||||||
|
w = W_PART(1);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
class SoldierMarker: ContainerMarker {
|
||||||
|
x = X_PART(3);
|
||||||
|
y = Y_PART(24);
|
||||||
|
w = W_PART(1);
|
||||||
|
h = H_PART(1);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@ -12,503 +12,16 @@ class CfgPatches {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "RscDisplayInventory.hpp"
|
||||||
|
|
||||||
class RscText;
|
class ACE_Settings {
|
||||||
class RscPicture;
|
class GVAR(inventoryDisplaySize) {
|
||||||
class RscListBox;
|
value = 0;
|
||||||
class RscProgress;
|
typeName = "SCALAR";
|
||||||
class RscStructuredText;
|
isClientSetable = 1;
|
||||||
class RscActiveText;
|
displayName = "$STR_ACE_Inventory_SettingName";
|
||||||
class RscCombo;
|
description = "$STR_ACE_Inventory_SettingDescription";
|
||||||
class RscControlsGroupNoScrollbars;
|
values[] = {"Normal (User Interface Size)", "Medium", "Biggah"};
|
||||||
|
|
||||||
/*
|
|
||||||
Adjust the scaling of the inventory screen
|
|
||||||
- changes it from scaling based on user's interface size to a static size
|
|
||||||
- text size and row height size are uneffected
|
|
||||||
- also tweaks the height of the two ProgressBars which looked odd scaled up so much
|
|
||||||
*/
|
|
||||||
|
|
||||||
class RscDisplayInventory {
|
|
||||||
class controls {
|
|
||||||
class CA_ContainerBackground: RscText {
|
|
||||||
//crate: GroundLoad adjust size
|
|
||||||
x = "1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "12 * (safeZoneH / 40)";
|
|
||||||
h = "22.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class CA_PlayerBackground: RscText {
|
|
||||||
//center player's container: decrease height because of progressbar height decrease
|
|
||||||
x = "14.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "24.4 * (safeZoneH / 40)";
|
|
||||||
h = "21.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class TitleBackground: RscText {
|
|
||||||
x = "14.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "24.4 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class PlayersName: RscText {
|
|
||||||
text = "Player name:";
|
|
||||||
x = "15.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "19.8 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class RankBackground: RscText {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1.25 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "0.6 * (safeZoneH / 40)";
|
|
||||||
h = "0.6 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class RankPicture: RscPicture {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1.25 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "0.6 * (safeZoneH / 40)";
|
|
||||||
h = "0.6 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class ButtonBack: RscActiveText {
|
|
||||||
x = "38 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "1 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotPrimary: RscPicture {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotPrimaryMuzzle: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotPrimaryFlashlight: BackgroundSlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotPrimaryOptics: BackgroundSlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotPrimaryMagazine: BackgroundSlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotSecondary: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "11.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotSecondaryMuzzle: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotSecondaryFlashlight: BackgroundSlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotSecondaryOptics: BackgroundSlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotSecondaryMagazine: BackgroundSlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHandgun: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "17 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHandgunMuzzle: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHandgunFlashlight: BackgroundSlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHandgunOptics: BackgroundSlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHandgunMagazine: BackgroundSlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHeadgear: BackgroundSlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotGoggles: BackgroundSlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotHMD: BackgroundSlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotBinoculars: BackgroundSlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotMap: BackgroundSlotPrimary {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.12 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotGPS: BackgroundSlotPrimary {
|
|
||||||
x = "17.32 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.12 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotCompass: BackgroundSlotPrimary {
|
|
||||||
x = "21.76 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.12 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotRadio: BackgroundSlotPrimary {
|
|
||||||
x = "19.54 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.12 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackgroundSlotWatch: BackgroundSlotPrimary {
|
|
||||||
x = "23.98 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.12 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class ExternalContainerBackground: RscPicture {
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "3.7 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "18.4 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class PlayerContainerBackground: ExternalContainerBackground {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "14 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class GroundTab: RscActiveText {
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "5.5 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SoldierTab: GroundTab {
|
|
||||||
x = "7 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "1.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "5.5 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class GroundContainer: RscListBox {
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "3.7 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "18.4 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class GroundFilter: RscCombo {
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class GroundLoad: RscProgress {
|
|
||||||
//crate: GroundLoad adjust size
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "22.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "0.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotPrimary: GroundTab {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotPrimaryMuzzle: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotPrimaryGrip: SlotPrimary {
|
|
||||||
w = 0;
|
|
||||||
h = 0;
|
|
||||||
x = "39 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
};
|
|
||||||
class SlotPrimaryFlashlight: SlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotPrimaryOptics: SlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotPrimaryMagazine: SlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "9.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotSecondary: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "11.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotSecondaryMuzzle: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotSecondaryGrip: SlotPrimary {
|
|
||||||
w = 0;
|
|
||||||
h = 0;
|
|
||||||
x = "39 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
};
|
|
||||||
class SlotSecondaryFlashlight: SlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotSecondaryOptics: SlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotSecondaryMagazine: SlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "14.6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHandgun: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "17 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11.9 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHandgunMuzzle: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHandgunGrip: SlotPrimary {
|
|
||||||
w = 0;
|
|
||||||
h = 0;
|
|
||||||
x = "39 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
};
|
|
||||||
class SlotHandgunFlashlight: SlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHandgunOptics: SlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHandgunMagazine: SlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHeadgear: SlotPrimary {
|
|
||||||
x = "26.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotGoggles: SlotPrimary {
|
|
||||||
x = "29.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotHMD: SlotPrimary {
|
|
||||||
x = "32.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotBinoculars: SlotPrimary {
|
|
||||||
x = "35.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2.9 * (safeZoneH / 40)";
|
|
||||||
h = "2.9 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotMap: SlotPrimary {
|
|
||||||
x = "15.16 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotGPS: SlotPrimary {
|
|
||||||
x = "17.38 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotCompass: SlotPrimary {
|
|
||||||
x = "21.82 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotRadio: SlotPrimary {
|
|
||||||
x = "19.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SlotWatch: SlotPrimary {
|
|
||||||
x = "24.04 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "20.1 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "2 * (safeZoneH / 40)";
|
|
||||||
h = "2 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class UniformTab: GroundTab {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class UniformSlot: SlotPrimary {
|
|
||||||
x = "15.35 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class UniformLoad: GroundLoad {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "5.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "0.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class UniformContainer: GroundContainer {
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "6 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "11 * (safeZoneH / 40)";
|
|
||||||
h = "14 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class VestTab: UniformTab {
|
|
||||||
x = "18.85 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class VestSlot: SlotPrimary {
|
|
||||||
x = "19.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class VestLoad: GroundLoad {
|
|
||||||
x = "18.85 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "5.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "0.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackpackTab: UniformTab {
|
|
||||||
x = "22.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackpackSlot: SlotPrimary {
|
|
||||||
x = "22.85 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "2.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3 * (safeZoneH / 40)";
|
|
||||||
h = "3 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class BackpackLoad: GroundLoad {
|
|
||||||
x = "22.6 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "5.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "3.5 * (safeZoneH / 40)";
|
|
||||||
h = "0.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class TotalLoad: GroundLoad {
|
|
||||||
//center: progressbar height decrease
|
|
||||||
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "22.5 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "23.4 * (safeZoneH / 40)";
|
|
||||||
h = "0.5 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class ContainerMarker: GroundTab {
|
|
||||||
x = "0 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "24 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "1 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class GroundMarker: ContainerMarker {
|
|
||||||
x = "1.5 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "24 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "1 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
class SoldierMarker: ContainerMarker {
|
|
||||||
x = "3 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
|
|
||||||
y = "24 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
|
|
||||||
w = "1 * (safeZoneH / 40)";
|
|
||||||
h = "1 * ((safeZoneH / 1.2) / 25)";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
12
addons/inventory/stringtable.xml
Normal file
12
addons/inventory/stringtable.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Edited with tabler - 2015-02-13 -->
|
||||||
|
<Project name="ACE">
|
||||||
|
<Package name="Inventory">
|
||||||
|
<Key ID="STR_ACE_Inventory_SettingName">
|
||||||
|
<English>Make Inventory Display Bigger</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Inventory_SettingDescription">
|
||||||
|
<English>Normally inventory display is scaled by UI size. This allows scaling the Inventory UI size up, but doesn't increase font size allowing more rows displayed.</English>
|
||||||
|
</Key>
|
||||||
|
</Package>
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user