-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18d739b
commit 755c85e
Showing
14 changed files
with
204 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
class btc_combatSupport_dialog { | ||
idd = -1; | ||
movingEnable = 1; | ||
objects[] = {}; | ||
class controlsBackground {}; | ||
class controls { | ||
class IGUIBack_2200: IGUIBack | ||
{ | ||
x = 0.314375 * safezoneW + safezoneX; | ||
y = 0.324 * safezoneH + safezoneY; | ||
w = 0.134062 * safezoneW; | ||
h = 0.407 * safezoneH; | ||
}; | ||
class RscCombo_2100: RscCombo | ||
{ | ||
idc = 70; | ||
x = 0.324687 * safezoneW + safezoneX; | ||
y = 0.346 * safezoneH + safezoneY; | ||
w = 0.113437 * safezoneW; | ||
h = 0.022 * safezoneH; | ||
onLBSelChanged = "3 call btc_fnc_cs_handle;"; | ||
}; | ||
class RscListbox_1500: RscListbox | ||
{ | ||
idc = 71; | ||
x = 0.324687 * safezoneW + safezoneX; | ||
y = 0.379 * safezoneH + safezoneY; | ||
w = 0.113437 * safezoneW; | ||
h = 0.22 * safezoneH; | ||
onLBSelChanged = "4 call btc_fnc_cs_handle;"; | ||
}; | ||
class RscText_1000: RscText | ||
{ | ||
idc = 72; | ||
text = "Your money:"; //--- ToDo: Localize; | ||
x = 0.324687 * safezoneW + safezoneX; | ||
y = 0.61 * safezoneH + safezoneY; | ||
w = 0.113437 * safezoneW; | ||
h = 0.022 * safezoneH; | ||
}; | ||
class RscText_1001: RscText | ||
{ | ||
idc = 73; | ||
text = "Cost"; //--- ToDo: Localize; | ||
x = 0.324687 * safezoneW + safezoneX; | ||
y = 0.643 * safezoneH + safezoneY; | ||
w = 0.103125 * safezoneW; | ||
h = 0.022 * safezoneH; | ||
}; | ||
class RscButton_1600: RscButton | ||
{ | ||
x = 0.335 * safezoneW + safezoneX; | ||
y = 0.676 * safezoneH + safezoneY; | ||
w = 0.0876563 * safezoneW; | ||
h = 0.033 * safezoneH; | ||
text = "Confirm"; | ||
action = "1 call btc_fnc_cs_handle;"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(_this select 0) addAction ["<t color='#ff1111'>Request vehicles</t>", "0 spawn btc_fnc_cs_handle;"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,13 @@ | ||
|
||
closeDialog 0; | ||
|
||
btc_log_create_obj = _this select 0; | ||
|
||
if (count (nearestObjects [getpos btc_log_create_obj,["All"],5]) > 1) exitWith {hint "Clear the area before create another object!"}; | ||
|
||
disableSerialization; | ||
closeDialog 0; | ||
createDialog "btc_log_dlg_create"; | ||
|
||
waitUntil {dialog}; | ||
|
||
call btc_fnc_log_create_load; | ||
|
||
//_class = lbText [72,lbCurSel 72]; | ||
_class = lbData [72, lbCurSel 72]; | ||
_selected = _class; | ||
_new = _class createVehicleLocal [getpos btc_log_create_obj select 0,getpos btc_log_create_obj select 1,0]; | ||
while {dialog} do | ||
{ | ||
//if (_class != lbData [72, 1]) then | ||
if (_class != lbData [72, lbCurSel 72]) then | ||
{ | ||
deleteVehicle _new; sleep 0.1; | ||
_class = lbData [72, lbCurSel 72]; | ||
//_class = lbText [72,lbCurSel 72]; | ||
_selected = _class; | ||
_new = _class createVehicleLocal [getpos btc_log_create_obj select 0,getpos btc_log_create_obj select 1,0]; | ||
_new setDir (getDir btc_log_create_obj); | ||
_new setPos [getpos btc_log_create_obj select 0,getpos btc_log_create_obj select 1,0]; | ||
}; | ||
sleep 0.1; | ||
}; | ||
deleteVehicle _new; | ||
private ["_type","_pos","_dir","_cost"]; | ||
|
||
_type = _this select 0; | ||
_pos = _this select 1; | ||
_dir = _this select 2; | ||
_cost = _this select 3; | ||
|
||
if (btc_money >= _cost) then { | ||
private "_obj"; | ||
btc_money = btc_money - _cost;publicVariable "btc_money"; | ||
_obj = _type createVehicle _pos; | ||
_obj setDir _dir; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.