CBAify inventory

This commit is contained in:
KoffeinFlummi 2015-01-14 09:45:20 +01:00
parent 4f4c9ab1b4
commit 250050129b
2 changed files with 510 additions and 504 deletions

View File

@ -1,12 +1,14 @@
#include "script_component.hpp"
class CfgPatches {
class AGM_Inventory {
class ADDON {
units[] = {};
weapons[] = {};
requiredVersion = 0.6;
requiredAddons[] = {"AGM_Core"};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
requiredAddons[] = {ace_common};
version = VERSION;
versionStr = VERSION;
versionAr[] = {VERSIONAR};
author[] = {"Pabst Mirror"};
authorUrl = "https://github.com/PabstMirror/";
};
@ -36,7 +38,6 @@ class RscDisplayInventory {
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 = "23 * ((safeZoneH / 1.2) / 25)";
h = "22.5 * ((safeZoneH / 1.2) / 25)";
};
class CA_PlayerBackground: RscText {
@ -44,7 +45,6 @@ class RscDisplayInventory {
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 = "22 * ((safeZoneH / 1.2) / 25)";
h = "21.5 * ((safeZoneH / 1.2) / 25)";
};
class TitleBackground: RscText {
@ -227,7 +227,6 @@ class RscDisplayInventory {
y = "3.7 * ((safeZoneH / 1.2) / 25) + (safezoneY + (safezoneH - (safeZoneH / 1.2))/2)";
w = "11 * (safeZoneH / 40)";
h = "18.4 * ((safeZoneH / 1.2) / 25)";
// h = "15.4 * ((safeZoneH / 1.2) / 25)";
};
class PlayerContainerBackground: ExternalContainerBackground {
x = "15.1 * (safeZoneH / 40) + (safezoneX + (safezoneW - safeZoneH)/2)";
@ -253,7 +252,6 @@ class RscDisplayInventory {
w = "11 * (safeZoneH / 40)";
h = "18.4 * ((safeZoneH / 1.2) / 25)";
};
// class SoldierContainer: GroundContainer {};
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)";
@ -265,7 +263,6 @@ class RscDisplayInventory {
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 = "1 * ((safeZoneH / 1.2) / 25)";
h = "0.5 * ((safeZoneH / 1.2) / 25)";
};
class SlotPrimary: GroundTab {
@ -472,7 +469,6 @@ class RscDisplayInventory {
w = "3.5 * (safeZoneH / 40)";
h = "0.5 * ((safeZoneH / 1.2) / 25)";
};
// class VestContainer: UniformContainer{};
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)";
@ -491,13 +487,11 @@ class RscDisplayInventory {
w = "3.5 * (safeZoneH / 40)";
h = "0.5 * ((safeZoneH / 1.2) / 25)";
};
// class BackpackContainer: UniformContainer{};
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 = "1 * ((safeZoneH / 1.2) / 25)";
h = "0.5 * ((safeZoneH / 1.2) / 25)";
};
class ContainerMarker: GroundTab {

View File

@ -0,0 +1,12 @@
#define COMPONENT inventory
#include "\z\ace\Addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_INVENTORY
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_INVENTORY
#define DEBUG_SETTINGS DEBUG_SETTINGS_INVENTORY
#endif
#include "\z\ace\Addons\main\script_macros.hpp"