Skip to content

Commit

Permalink
Add vehicle counter
Browse files Browse the repository at this point in the history
  • Loading branch information
oiad committed Jul 19, 2017
1 parent f99d1a0 commit 27a6431
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions scripts/virtualGarage/virtualGarage.hpp
Expand Up @@ -247,15 +247,6 @@ class virtualGarage {
h = (1 / 25);
};

class VehicleTitleBox : vg_RscText {
idc = -1;
text = $STR_VG_YOUR_VEHICLES;
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
x = 0.11; y = 0.26;
w = 0.35;
h = (1 / 25);
};

class VehicleInfoHeader : vg_RscText {
idc = 2830;
text = $STR_VG_VEHICLE_INFO;
Expand Down Expand Up @@ -287,6 +278,15 @@ class virtualGarage {
w = 0.35; h = 0.49;
};

class VehicleTitleBox : vg_RscText {
idc = 2804;
text = "";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
x = 0.11; y = 0.26;
w = 0.35;
h = (1 / 25);
};

class storeVehicle : vg_RscButtonMenu {
idc = 2850;
text = $STR_VG_STORE_VEHICLE;
Expand Down
4 changes: 3 additions & 1 deletion scripts/virtualGarage/virtualGarage.sqf
Expand Up @@ -57,4 +57,6 @@ vg_vehicleList = [];
} count _localVehicles;

ctrlShow[2810,false];
ctrlShow[2811,false];
ctrlShow[2811,false];

ctrlSetText [2804, format ["%1 (%2 %3)",localize "STR_VG_YOUR_VEHICLES",count (_storedVehicles),localize "str_lib_cat_vehicles"]];

0 comments on commit 27a6431

Please sign in to comment.