mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Change License Plates
This commit is contained in:
parent
82fcd99c98
commit
1d3aaafc61
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
Author: He-Man - EpochMod.com
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
|
||||||
|
Description:
|
||||||
|
change license plates from Vehicles
|
||||||
|
|
||||||
|
Licence:
|
||||||
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
||||||
|
|
||||||
|
Github:
|
||||||
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_vehicle_ChangeLicensePlate.sqf
|
||||||
|
*/
|
||||||
|
|
||||||
|
private ["_display","_maintxt","_txt","_bottomtxt","_savebutton"];
|
||||||
|
params ['_vehicle',['_player',player]];
|
||||||
|
if (isnull _vehicle) exitwith {};
|
||||||
|
if (_player distance _vehicle > 10) exitwith {};
|
||||||
|
if (!alive _vehicle) exitwith {};
|
||||||
|
if (!local _vehicle) exitwith {
|
||||||
|
['Go in as driver first',5] call Epoch_Message;
|
||||||
|
};
|
||||||
|
Epoch_PlateVehicle = _vehicle;
|
||||||
|
createdialog 'EPOCH_SimpleInput';
|
||||||
|
waituntil {!isnull (finddisplay -1200)};
|
||||||
|
disableSerialization;
|
||||||
|
_display = (finddisplay -1200);
|
||||||
|
_maintxt = _display displayctrl 20;
|
||||||
|
_txt = _display displayctrl 23;
|
||||||
|
_bottomtxt = _display displayctrl 22;
|
||||||
|
_savebutton = _display displayctrl 30;
|
||||||
|
_maintxt ctrlSetText (format ['Change Licenseplate for %1',(typeof _vehicle) call Epoch_ItemDisplayName]);
|
||||||
|
_txt ctrlSetText 'New Plate:';
|
||||||
|
_savebutton buttonSetAction 'if (player distance Epoch_PlateVehicle > 10) exitwith {}; Epoch_PlateVehicle setPlateNumber (ctrlText (finddisplay -1200 displayctrl 21)); closedialog 0; Epoch_PlateVehicle call EPOCH_interact; Epoch_PlateVehicle = nil';
|
@ -530,6 +530,13 @@ class VehMaintanance
|
|||||||
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 4 select 2),(Ignatz_VehicleUpgradeArray select 4 select 3)]";
|
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 4 select 2),(Ignatz_VehicleUpgradeArray select 4 select 3)]";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
class ChangePlate
|
||||||
|
{
|
||||||
|
condition = "{dyna_cursorTarget iskindof _x} count ['Van_01_base_F','Van_02_base_F','SUV_01_base_F','Hatchback_01_base_F','Offroad_01_base_F','Offroad_02_base_F'] > 0";
|
||||||
|
action = "[dyna_cursorTarget,player] spawn EPOCH_vehicle_ChangeLicensePlate";
|
||||||
|
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Epoch_LicensePlate.paa";
|
||||||
|
tooltip = "Change License Plate";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
//Groups
|
//Groups
|
||||||
|
@ -192,6 +192,7 @@ class CfgClientFunctions
|
|||||||
class client_VehicleMaintananceDo {};
|
class client_VehicleMaintananceDo {};
|
||||||
class vehicle_checkTurretAmmo {};
|
class vehicle_checkTurretAmmo {};
|
||||||
class vehicle_removeTurretAmmo {};
|
class vehicle_removeTurretAmmo {};
|
||||||
|
class vehicle_ChangeLicensePlate {};
|
||||||
};
|
};
|
||||||
class missions
|
class missions
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user