Skip to content

Commit

Permalink
per #mfd kann die Farbe der Oberfläche zB in Helis geändert werden au…
Browse files Browse the repository at this point in the history
…s den Ticket #568
  • Loading branch information
shukari committed Aug 31, 2022
1 parent b5c949b commit 926f783
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion addons/main/functions/fnc_chatCommands.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
["help", {
systemChat ("TB-Mod Version: "+ getText (configfile >> "CfgPatches" >> "TBMod_main" >> "versionStr"));
systemChat "#tasten, #rechte, #zeus, #fps, #safe, #hideGroup, #setGroup, #kompass, #clearCache, #hideGUI, #spectator(s), #sniper";
systemChat "#tasten, #rechte, #zeus, #mfd, #fps, #safe, #hideGroup, #setGroup, #clearCache, #hideGUI, #spectator(s), #sniper";
}, "all"] call CBA_fnc_registerChatCommand;

["tasten", {
Expand Down Expand Up @@ -246,6 +246,39 @@
] call zen_dialog_fnc_create;
}, "all"] call CBA_fnc_registerChatCommand;

["mfd", {
private _vehicle = vehicle player;
if (_vehicle == player) exitWith {systemChat "Du sitzt in keinem Fahrzeug"};

private _mfd = (getUserMFDValue _vehicle) select {_x != -1};
if (count _mfd < 3) exitWith {systemChat "Das Fahrzeug unterstützt keine MFD Anpassungen!"};

[
"MFD anpassen",
[
[
"COLOR",
["Farbe", "Wähle die Farbe und den Alphawert!"],
_mfd,
true
]
],
{
params ["_values", "_args"];
_values params ["_color"];

{
_args setUserMFDValue [_forEachIndex, _x];
}
forEach _color;

systemChat "Neuer Wert für das MFD wurde gesetzt!";
},
{},
_vehicle
] call zen_dialog_fnc_create;
}, "all"] call CBA_fnc_registerChatCommand;

if !(getPlayerUID player in (call TB_lvl2)) exitWith {};

["spectator", {
Expand Down

0 comments on commit 926f783

Please sign in to comment.