Skip to content

Commit 247123e

Browse files
committed
Merge pull request #98 from fritogotlayed/DUWSR-97
DUWSR-97 Fixed wrong item being selected after purchasing the armory.
2 parents a37159a + bc01426 commit 247123e

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

source/dialog/request.sqf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ _index1 = lbAdd [2102, "SF SUV(2CP)"]; // 14
5656
lbSetCurSel [2102, 0];
5757

5858
// Supports !!! CHECK TO ADD AT INIT
59-
index_support_supply = lbAdd [2103, "Supply drop(5CP)"]; // 0
60-
index_support_arty = lbAdd [2103, "Artillery strike(20CP)"]; // 1
61-
index_support_mortar = lbAdd [2103, "Mortar strike(10CP)"]; // 2
62-
index_support_paradrop = lbAdd [2103, "Airborne troops(20CP)"]; // 3
63-
index_support_jdam = lbAdd [2103, "JDAM strike(15CP)"]; // 4
64-
index_support_armory = lbAdd [2103, "Armory(8CP)"]; // 5
65-
index_support_pFLIR = lbAdd [2103, "Personal FLIR display(20CP)"]; // 6
66-
index_support_uavrecon = lbAdd [2103, "UAV Recon(10CP)"]; // 7
67-
index_support_refit = lbAdd [2103, "Vehicle Refit(3CP)"]; // 8
68-
index_support_helotaxi = lbAdd [2103, "Helicopter Taxi(3CP)"]; // 9
69-
index_support_cluster = lbAdd [2103, "Mk.20 II CBU(25CP)"]; // 10
70-
index_support_training = lbAdd [2103, "Specialized Infantry training(20CP)"];//11
71-
index_support_boattaxi = lbAdd [2103, "Boat Taxi(2CP)"]; //12
59+
index_support_supply = lbAdd [2103, "Supply drop(5CP)"]; // 0
60+
index_support_arty = lbAdd [2103, "Artillery strike(20CP)"]; // 1
61+
index_support_mortar = lbAdd [2103, "Mortar strike(10CP)"]; // 2
62+
index_support_paradrop = lbAdd [2103, "Airborne troops(20CP)"]; // 3
63+
index_support_jdam = lbAdd [2103, "JDAM strike(15CP)"]; // 4
64+
index_support_armory = lbAdd [2103, "Armory(8CP)"]; // 5
65+
index_support_pFLIR = lbAdd [2103, "Personal FLIR display(20CP)"]; // 6
66+
index_support_uavrecon = lbAdd [2103, "UAV Recon(10CP)"]; // 7
67+
index_support_refit = lbAdd [2103, "Vehicle Refit(3CP)"]; // 8
68+
index_support_helotaxi = lbAdd [2103, "Helicopter Taxi(3CP)"]; // 9
69+
index_support_cluster = lbAdd [2103, "Mk.20 II CBU(25CP)"]; // 10
70+
index_support_training = lbAdd [2103, "Specialized Infantry training(20CP)"]; // 11
71+
index_support_boattaxi = lbAdd [2103, "Boat Taxi(2CP)"]; // 12
7272

7373
// lbSetCurSel [2103, 0];
7474
if (support_supplydrop_available) then {

source/dialog/request_support.sqf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ switch (_index2) do {
77
commandpointsblu1 = commandpointsblu1 - 5;
88
ctrlSetText [1000, format["%1",commandpointsblu1]];
99
_supplydrop = [player,"ammo"] call BIS_fnc_addCommMenuItem;
10-
lbSetColor [2103, 0, [0, 1, 0, 1]];
10+
lbSetColor [2103, index_support_supply, [0, 1, 0, 1]];
1111
playSound "boots";
1212
support_supplydrop_available = true;
1313
} else {
@@ -23,7 +23,7 @@ switch (_index2) do {
2323
commandpointsblu1 = commandpointsblu1 - 20;
2424
ctrlSetText [1000, format["%1",commandpointsblu1]];
2525
_supplydrop = [player,"artillery"] call BIS_fnc_addCommMenuItem;
26-
lbSetColor [2103, 1, [0, 1, 0, 1]];
26+
lbSetColor [2103, index_support_arty, [0, 1, 0, 1]];
2727
playSound "boots";
2828
support_arty_available = true;
2929
} else {
@@ -39,7 +39,7 @@ switch (_index2) do {
3939
commandpointsblu1 = commandpointsblu1 - 10;
4040
ctrlSetText [1000, format["%1",commandpointsblu1]];
4141
_supplydrop = [player,"mortar"] call BIS_fnc_addCommMenuItem;
42-
lbSetColor [2103, 2, [0, 1, 0, 1]];
42+
lbSetColor [2103, index_support_mortar, [0, 1, 0, 1]];
4343
playSound "boots";
4444
support_mortar_available = true;
4545
} else {
@@ -55,7 +55,7 @@ switch (_index2) do {
5555
commandpointsblu1 = commandpointsblu1 - 20;
5656
ctrlSetText [1000, format["%1",commandpointsblu1]];
5757
_supplydrop = [player,"paradrop"] call BIS_fnc_addCommMenuItem;
58-
lbSetColor [2103, 3, [0, 1, 0, 1]];
58+
lbSetColor [2103, index_support_paradrop, [0, 1, 0, 1]];
5959
playSound "boots";
6060
support_paradrop_available = true;
6161
} else {
@@ -71,7 +71,7 @@ switch (_index2) do {
7171
commandpointsblu1 = commandpointsblu1 - 15;
7272
ctrlSetText [1000, format["%1",commandpointsblu1]];
7373
_supplydrop = [player,"jdam"] call BIS_fnc_addCommMenuItem;
74-
lbSetColor [2103, 4, [0, 1, 0, 1]];
74+
lbSetColor [2103, index_support_jdam, [0, 1, 0, 1]];
7575
playSound "boots";
7676
support_jdam_available = true;
7777
} else {
@@ -86,7 +86,7 @@ switch (_index2) do {
8686
if (!support_armory_available) then {
8787
commandpointsblu1 = commandpointsblu1 - 8;
8888
ctrlSetText [1000, format["%1",commandpointsblu1]];
89-
lbSetColor [2103, 6, [0, 1, 0, 1]];
89+
lbSetColor [2103, index_support_armory, [0, 1, 0, 1]];
9090
support_armory_available = true;
9191
hq_blu1 addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
9292
hq_blu1 addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"];
@@ -111,7 +111,7 @@ switch (_index2) do {
111111
commandpointsblu1 = commandpointsblu1 - 20;
112112
ctrlSetText [1000, format["%1",commandpointsblu1]];
113113
pFLIRenable = player addaction ["<t color='#a9ff59'>Activate FLIR</t>","pflir\livefeed.sqf","", 0,false,true,"","_target == _this"];
114-
lbSetColor [2103, 6, [0, 1, 0, 1]];
114+
lbSetColor [2103, index_support_pFLIR, [0, 1, 0, 1]];
115115
support_pflir_available = true;
116116
playSound "loadgun";
117117
["pflir",["Personal FLIR display","Toggle you personal FLIR display using the action menu"]] call bis_fnc_showNotification;
@@ -128,7 +128,7 @@ switch (_index2) do {
128128
commandpointsblu1 = commandpointsblu1 - 10;
129129
ctrlSetText [1000, format["%1",commandpointsblu1]];
130130
_uav_recon = [player,"uav_recon"] call BIS_fnc_addCommMenuItem;
131-
lbSetColor [2103, 7, [0, 1, 0, 1]];
131+
lbSetColor [2103, index_support_uavrecon, [0, 1, 0, 1]];
132132
playSound "boots";
133133
support_uav_recon_available = true;
134134
} else {
@@ -144,7 +144,7 @@ switch (_index2) do {
144144
commandpointsblu1 = commandpointsblu1 - 3;
145145
ctrlSetText [1000, format["%1",commandpointsblu1]];
146146
_veh_refit = [player,"vehicle_refit"] call BIS_fnc_addCommMenuItem;
147-
lbSetColor [2103, 8, [0, 1, 0, 1]];
147+
lbSetColor [2103, index_support_refit, [0, 1, 0, 1]];
148148
playSound "loadgun";
149149
support_veh_refit_available = true;
150150
} else {
@@ -160,7 +160,7 @@ switch (_index2) do {
160160
commandpointsblu1 = commandpointsblu1 - 3;
161161
ctrlSetText [1000, format["%1",commandpointsblu1]];
162162
_veh_refit = [player,"helo_taxi"] call BIS_fnc_addCommMenuItem;
163-
lbSetColor [2103, 9, [0, 1, 0, 1]];
163+
lbSetColor [2103, index_support_helotaxi, [0, 1, 0, 1]];
164164
playSound "boots";
165165
support_helotaxi_available = true;
166166
} else {
@@ -176,7 +176,7 @@ switch (_index2) do {
176176
commandpointsblu1 = commandpointsblu1 - 25;
177177
ctrlSetText [1000, format["%1",commandpointsblu1]];
178178
_cluster = [player1,"cluster"] call BIS_fnc_addCommMenuItem;
179-
lbSetColor [2103, 10, [0, 1, 0, 1]];
179+
lbSetColor [2103, index_support_cluster, [0, 1, 0, 1]];
180180
playSound "boots";
181181
support_cluster_available = true;
182182
} else {
@@ -193,7 +193,7 @@ switch (_index2) do {
193193
ctrlSetText [1000, format["%1",commandpointsblu1]];
194194
["inf_training",["Specialized Infantry training","Our troops are now more skilled in battle"]] call bis_fnc_showNotification;
195195
blufor_ai_skill = [(blufor_ai_skill select 0)+0.3,(blufor_ai_skill select 1)+0.3];
196-
lbSetColor [2103, 11, [0, 1, 0, 1]];
196+
lbSetColor [2103, index_support_training, [0, 1, 0, 1]];
197197
support_specialized_training_available = true;
198198
publicVariable "support_specialized_training_available";
199199
playSound "boots";
@@ -210,7 +210,7 @@ switch (_index2) do {
210210
if (!support_boattaxi_available) then {
211211
commandpointsblu1 = commandpointsblu1 - 2;
212212
ctrlSetText [1000, format["%1",commandpointsblu1]];
213-
lbSetColor [2103, 12, [0, 1, 0, 1]];
213+
lbSetColor [2103, index_support_boattaxi, [0, 1, 0, 1]];
214214
support_boattaxi_available = true;
215215
_supplydrop = [player,"boat_taxi"] call BIS_fnc_addCommMenuItem;
216216
playSound "boots";

source/enterlocation.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ waitUntil {
99
count _trigger < 1;
1010
};
1111

12-
["location_leave",[_place]] call bis_fnc_showNotification;
12+
["location_leave",[_place]] call bis_fnc_showNotification;

0 commit comments

Comments
 (0)