LoadVarsFromProfile[]={// Variables, that will be loaded from profile on connect
{"EPOCH_AutoEarplug","true"},
{"EPOCH_debugMode","false"},
{"EPOCH_PlayerMarkerOn","false"},
{"EPOCH_DeathMarkerOn","false"}
};
classApps
{
/*
classFullExample
{
ButtonText="app10";// Static Button Text
ButtonTextCode="if (true) then {'Text'} else {''}";// Variable Button Text - will overwrite static Button Text, if defined
Description="";// Static Description Text
DescriptionCode="if (true) then {'Desctription'} else {''}";// Variable Description Text - will overwrite static Description Text, if defined
Icon="";// Static Icon on Button
IconCode="if (true) then {'addons\MyIcon.paa'} else {''}";// Variable Icon - will overwrite static Icon, if defined
color[]={1,1,1,1};// default color for Icon / Button text
colortoggled[]={0,1,0,1};// Icon / Button color if toggleable and variable is toggled (true)
action="";// code to run on button click
Tooltip="PLACE-HOLDER";// Static Tooltip
TooltipCode="if (true) then {'My ToolTip'} else {''}";// Variable Tooltip - will overwrite static Tooltip, if defined
ToggleVar="";// Script will check this variable. If true, Button is toggled and color change to "colortoggled"
ToggleAble="false";// if "true", the defined variable will be toggled (and saved to profile) on buttonclick
classSubMenu{// On Buttonclick, a new submenu will be opened with defined classes here
...
...
}
};
*/
classsettings
{
ButtonText="";
Description="Settings";
Icon="epoch_code\customs\images\settings_ca.paa";
color[]={1,1,0,1};
colortoggled[]={0,1,0,1};
action="";
Tooltip="Settings";
ToggleVar="";
ToggleAble="false";
classReset{
ButtonText="Reset";
Description="Reset Settings";
Icon="";
color[]={1,1,0,1};
colortoggled[]={0,1,0,1};
action="[] spawn {_confirm = ['Reset all E-Pad Settings? Sure?','WARNING!',true,true] call BIS_fnc_guiMessage; if (_confirm) then {call Epoch_EPad_Reset; [] call EPOCH_EPad_dialog}}";
Tooltip="Reset all settings";
ToggleVar="";
ToggleAble="false";
};
classplayerMarker
{
ButtonText="";
Description="Playermarker";
icon="epoch_code\customs\images\gps.paa";
color[]={1,0,0,1};
colortoggled[]={0,1,0,1};
action="if (!EPOCH_PlayerMarkerOn) then {if !('ItemGPS' in (assignedItems player)) then {['You need a GPS to see your Position',5] call epoch_message}}";
tooltip="Toggle player marker";
ToggleVar="EPOCH_PlayerMarkerOn";
ToggleAble="true";
};
classdeathMarker
{
ButtonText="";
Description="DeathMarker";
icon="epoch_code\customs\images\skull.paa";
color[]={1,0,0,1};
colortoggled[]={0,1,0,1};
action="if (!EPOCH_DeathMarkerOn) then {if ((profileNameSpace getVariable ['EPOCHLastKnownDeath',[]]) isequalto []) then {['You had no GPS on last death',5] call epoch_message}}";