diff --git a/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp b/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp index f9272048..04a990a2 100644 --- a/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp +++ b/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp @@ -14,6 +14,27 @@ */ //Build mode enabled +class base_mode_enable +{ + condition = "EPOCH_buildMode in [0,2] && !dyna_inVehicle"; + action = "if (EPOCH_playerEnergy > 0) then {EPOCH_stabilityTarget = objNull;EPOCH_buildMode = 1;['Build Mode: Enabled Snap alignment', 5] call Epoch_message;EPOCH_buildDirection = 0} else {['Need Energy!', 5] call Epoch_message};"; + icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa"; + tooltip = "Build Mode: Snap alignment"; +}; +class base_mode_enable_free +{ + condition = "EPOCH_buildMode == 1 && EPOCH_playerEnergy > 0"; + action = "EPOCH_stabilityTarget = objNull;EPOCH_buildMode = 2;['Build Mode: Enabled Free alignment', 5] call Epoch_message;EPOCH_buildDirection = 0;"; + icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa"; + tooltip = "Build Mode: Free alignment"; +}; +class base_mode_disable +{ + condition = "EPOCH_buildMode > 0"; + action = "EPOCH_buildMode = 0;EPOCH_snapDirection = 0;['Build Mode: Disabled', 5] call Epoch_message;EPOCH_Target = objNull;EPOCH_Z_OFFSET = 0;EPOCH_X_OFFSET = 0;EPOCH_Y_OFFSET = 5;"; + icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_remove.paa"; + tooltip = "Build Mode: Disable"; +}; class build_upgrade { condition = "dyna_buildMode select 0";