Epoch/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp

133 lines
4.5 KiB
C++
Raw Normal View History

2015-12-07 16:24:52 +00:00
/*
Author: Raimonds Virtoss - EpochMod.com
Contributors: Aaron Clark
Description:
Action Menu Target Config
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/master/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp
*/
2015-10-28 15:16:00 +00:00
//Build mode enabled
class build_upgrade
{
condition = "dyna_buildMode select 0";
//action = "dyna_cursorTarget call EPOCH_QuickUpgrade;"; //TODO: scripted dyna menu
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_upgrade.paa";
tooltip = "Upgrade";
class special {}; //uses external config, hardcoded
};
class build_remove
{
condition = "dyna_buildMode select 1";
action = "dyna_cursorTarget call EPOCH_removeBUILD;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_remove.paa";
tooltip = "Remove";
};
class build_move
{
condition = "dyna_buildMode select 2";
action = "dyna_cursorTarget call EPOCH_fnc_SelectTargetBuild;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_move.paa";
tooltip = "Move";
};
//Vehicle interaction
class veh_gear
{
condition = "dyna_isVehicle && !dyna_locked";
action = "call Epoch_client_gearVehicle;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
tooltip = "Inspect";
};
class veh_lock
{
condition = "dyna_isVehicle && !dyna_locked";
2015-12-23 17:38:11 +00:00
action = "[dyna_cursorTarget, true, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
2015-10-28 15:16:00 +00:00
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock";
};
class veh_unLock
{
condition = "dyna_isVehicle && dyna_locked";
2015-12-23 17:38:11 +00:00
action = "[dyna_cursorTarget, false, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
2015-10-28 15:16:00 +00:00
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock";
};
//Trader interaction
class tra_talk
{
condition = "dyna_isTrader";
action = "dyna_cursorTarget call EPOCH_startInteractNPC;";
2015-11-20 14:39:59 +00:00
icon = "x\addons\a3_epoch_code\Data\UI\buttons\talk_blue.paa";
2015-10-28 15:16:00 +00:00
tooltip = "Talk";
};
class tra_shop
{
condition = "dyna_isTrader";
action = "call EPOCH_startNPCTraderMenu;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Shop";
};
//User action replacement
class maintain_jammer
{
condition = "dyna_cursorTargetType isEqualTo 'PlotPole_EPOCH' && (damage dyna_cursorTarget < 1)";
action = "dyna_cursorTarget call EPOCH_maintainIT;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa";
tooltip = "Maintain";
};
//lock unlock
class unlock_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock Lockbox";
};
class lock_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock Lockbox";
};
class unlock_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock Safe";
};
class lock_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock Safe";
};
//pack
class pack_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
2015-12-23 17:38:11 +00:00
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_lockStorage',2];";
2015-11-20 14:39:59 +00:00
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
2015-10-28 15:16:00 +00:00
tooltip = "Pack Lockbox";
};
class pack_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
2015-12-23 17:38:11 +00:00
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_packStorage',2];";
2015-11-20 14:39:59 +00:00
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
2015-10-28 15:16:00 +00:00
tooltip = "Pack Safe";
2015-11-20 14:39:59 +00:00
};