2018-06-21 19:59:37 +00:00
class e_pad_config
{
LoadVarsFromProfile [ ] = { // Variables, that will be loaded from profile on connect
{ " EPOCH_AutoEarplug " , " true " } ,
{ " EPOCH_debugMode " , " false " } ,
{ " EPOCH_PlayerMarkerOn " , " false " } ,
2018-08-20 17:19:20 +00:00
{ " EPOCH_DeathMarkerOn " , " false " } ,
{ " EPOCH_EpadButtonOn " , " true " }
2018-06-21 19:59:37 +00:00
} ;
class Apps
{
/*
class FullExample
{
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)
2019-01-14 19:58:16 +00:00
html = " epoch_code \ customs \ E_Pad \ ServerInfos.html " ; // Path to a html-file (if defined or not "", the action will only load this web site into the e-pad)
2018-06-21 19:59:37 +00:00
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
2019-01-14 19:58:16 +00:00
class SubMenu { // If a Sub-Menu is defined, on Buttonclick, a new submenu will be opened with defined classes here
ButtonText = " app10 " ;
ButtonTextCode = " if (true) then {'Text'} else {''} " ;
Description = " " ;
DescriptionCode = " if (true) then {'Desctription'} else {''} " ;
Icon = " " ;
IconCode = " if (true) then {'addons \ MyIcon.paa'} else {''} " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
html = " epoch_code \ customs \ E_Pad \ ServerInfos.html " ;
action = " " ;
Tooltip = " PLACE-HOLDER " ;
TooltipCode = " if (true) then {'My ToolTip'} else {''} " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2018-06-21 19:59:37 +00:00
} ;
*/
class settings
{
ButtonText = " " ;
Description = " Settings " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ settings_ca.paa " ;
2018-06-21 19:59:37 +00:00
color [ ] = { 1 , 1 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltip = " Settings " ;
ToggleVar = " " ;
ToggleAble = " false " ;
2018-08-20 17:19:20 +00:00
class EpadButton {
ButtonText = " " ;
Description = " Epad Dyna " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ epoch_tablet_back.paa " ;
2018-08-20 17:19:20 +00:00
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltip = " Add / Remove E-Pad Button from DynaMenu (you can still open it with F10) " ;
ToggleVar = " EPOCH_EpadButtonOn " ;
ToggleAble = " true " ;
} ;
2018-06-21 19:59:37 +00:00
class playerMarker
{
ButtonText = " " ;
Description = " Playermarker " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ gps.paa " ;
2018-06-21 19:59:37 +00:00
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 " ;
} ;
class deathMarker
{
ButtonText = " " ;
Description = " DeathMarker " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ skull.paa " ;
2018-06-21 19:59:37 +00:00
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}} " ;
tooltip = " Toggle death marker " ;
ToggleVar = " EPOCH_DeathMarkerOn " ;
ToggleAble = " true " ;
} ;
2019-01-25 22:15:27 +00:00
class blockedMarker
{
ButtonText = " " ;
Description = " Blocked Areas " ;
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \b locked.paa " ;
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " call compile preprocessfilelinenumbers 'epoch_code \ customs \ E_Pad \ BlockedAreas.sqf' " ;
tooltip = " Show / Hide blocked areas on the map " ;
ToggleVar = " Epoch_BlockedMarkeron " ;
ToggleAble = " true " ;
} ;
2018-06-21 19:59:37 +00:00
class Earplug {
ButtonText = " " ;
Description = " Auto-Earplugs " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ Earplugs.paa " ;
2018-06-21 19:59:37 +00:00
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltip = " Toggle Auto-Earplugs " ;
ToggleVar = " EPOCH_AutoEarplug " ;
ToggleAble = " true " ;
} ;
2019-05-15 19:35:24 +00:00
class PublicStats {
ButtonText = " " ;
Description = " Public Stats " ;
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ ServerStats.paa " ;
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " EPOCH_totalPublicStats = if (EPOCH_MyStatsPublic) then {0} else {1};EPOCH_forceUpdateNow = true " ;
Tooltip = " Enable / Disable your Stats in Server Stats " ;
ToggleVar = " EPOCH_MyStatsPublic " ;
ToggleAble = " true " ;
} ;
2019-01-14 19:58:16 +00:00
class Reset {
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 " ;
} ;
/*
2018-06-21 19:59:37 +00:00
class SubSub {
ButtonText = " SubMenu " ;
Description = " Sub Menu " ;
Icon = " " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltip = " Open Sub-Sub Menu " ;
ToggleVar = " " ;
ToggleAble = " false " ;
class SubSub1 {
ButtonText = " SubSub1 " ;
Description = " Sub Sub Menu " ;
Icon = " " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltip = " App in SubSub Menu " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
} ;
2019-01-14 19:58:16 +00:00
*/
2018-06-21 19:59:37 +00:00
} ;
2019-01-14 19:58:16 +00:00
class infos
2018-06-21 19:59:37 +00:00
{
ButtonText = " " ;
2019-01-14 19:58:16 +00:00
Description = " Infos " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ server_info_icon_ca.paa " ;
2018-06-21 19:59:37 +00:00
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
2019-01-14 19:58:16 +00:00
action = " " ;
Tooltip = " Info-Menu " ;
2018-06-21 19:59:37 +00:00
ToggleVar = " " ;
ToggleAble = " false " ;
2019-01-15 16:19:03 +00:00
class contact
{
ButtonText = " " ;
Description = " Contact " ;
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ Contact1.paa " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
html = " epoch_code \ customs \ E_Pad \ ServerContacts.html " ;
action = " " ;
Tooltip = " COntact us " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2019-01-14 19:58:16 +00:00
class serverinfo
{
ButtonText = " " ;
Description = " Server Info " ;
2019-01-15 16:19:03 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ info.paa " ;
2019-01-14 19:58:16 +00:00
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
html = " epoch_code \ customs \ E_Pad \ ServerInfos.html " ;
action = " " ;
Tooltip = " Display Server Infos " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
class serversettings
{
ButtonText = " " ;
2019-01-15 16:19:03 +00:00
Description = " Server Settings " ;
2019-01-25 22:15:27 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ seversettings.paa " ;
2019-01-14 19:58:16 +00:00
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
html = " epoch_code \ customs \ E_Pad \ ServerSettings.html " ;
action = " " ;
Tooltip = " Display Server Settings " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
class serverrules
{
ButtonText = " " ;
Description = " Server Rules " ;
2019-01-15 16:19:03 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ Rules.paa " ;
2019-01-14 19:58:16 +00:00
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
html = " epoch_code \ customs \ E_Pad \ ServerRules.html " ;
action = " createDialog 'server_info_picture' " ;
Tooltip = " Display Server Rules " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2018-06-21 19:59:37 +00:00
} ;
class debug
{
ButtonText = " " ;
Description = " Debug " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ debug_ca.paa " ;
2018-06-21 19:59:37 +00:00
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " if !(EPOCH_debugMode) then {['Debug Mode Enabled', 5,[[0,0,0,0.5],[1,1,0,1]]] call Epoch_message;} else {['Debug Mode Disabled', 5,[[0,0,0,0.5],[1,1,0,1]]] call Epoch_message;hintSilent ''}; " ;
Tooltip = " DebugMonitor " ;
ToggleVar = " EPOCH_debugMode " ;
ToggleAble = " true " ;
} ;
class reviveable
{
ButtonText = " " ;
Description = " Reviveable? " ;
2018-12-22 20:49:45 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ Reviveable.paa " ;
2018-06-21 19:59:37 +00:00
color [ ] = { 1 , 0 , 0 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " " ;
Tooltipcode = " if (Epoch_canBeRevived) then {'Reviveable: true'} else {'Reviveable: false'} " ;
ToggleVar = " Epoch_canBeRevived " ;
ToggleAble = " false " ;
} ;
class news
{
ButtonText = " News " ;
Description = " Tips " ;
Icon = " " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
2019-01-14 19:58:16 +00:00
action = " call compile preprocessfilelinenumbers 'epoch_code \ customs \ E_Pad \t raderDiag_news.sqf' " ;
2018-06-21 19:59:37 +00:00
Tooltip = " News " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
class vehs
{
ButtonText = " Vehicle " ;
Description = " Near Vehicle " ;
Icon = " " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
2019-01-14 19:58:16 +00:00
action = " [250,1000] call compile preprocessfilelinenumbers 'epoch_code \ customs \ E_Pad \t raderDiag_nearVehicles.sqf' " ;
2018-07-11 11:10:03 +00:00
Tooltip = " Scan for near Vehicles (costs 250 energy) " ;
2018-06-21 19:59:37 +00:00
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
class players
{
ButtonText = " Player " ;
Description = " Near Player " ;
Icon = " " ;
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
2019-01-14 19:58:16 +00:00
action = " [250,250] call compile preprocessfilelinenumbers 'epoch_code \ customs \ E_Pad \t raderDiag_nearPlayers.sqf' " ;
2018-07-11 11:10:03 +00:00
Tooltip = " Scan for near Players (costs 250 energy) " ;
2018-06-21 19:59:37 +00:00
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2019-01-14 19:58:16 +00:00
class suicide
{
2019-01-15 16:19:03 +00:00
ButtonText = " " ;
2019-01-14 19:58:16 +00:00
Description = " Kill yourself " ;
2019-01-15 16:19:03 +00:00
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ suicide.paa " ;
2019-01-14 19:58:16 +00:00
color [ ] = { 1 , 1 , 1 , 1 } ;
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " [] spawn {_confirm = ['Are you sure to kill yourself?','Suicide!',true,true] call BIS_fnc_guiMessage;if (_confirm) then {while {dialog} do {closedialog 0};disableUserInput true;Player playAction 'GestureSuicide';uisleep 3;Player setdamage 1;disableUserInput false;};}; " ;
Tooltip = " Kill yourself to respawn " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2019-05-11 22:58:33 +00:00
class PlayerStats
{
ButtonText = " " ;
Description = " Player Statistic " ;
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ PlayerStats.paa " ;
2019-05-16 18:23:21 +00:00
color [ ] = { 0 , 0 , 1 , 1 } ;
2019-05-11 22:58:33 +00:00
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " if (isnull (finddisplay -1200)) then {createdialog 'PlayerStatsDialog'}; " ;
Tooltip = " Player Statistic " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2019-05-15 19:35:24 +00:00
class ServerStats
{
ButtonText = " " ;
Description = " Server Statistic " ;
icon = " x \a ddons \a 3_epoch_code \ Data \ UI \ epad \ ServerStats.paa " ;
2019-05-16 18:23:21 +00:00
color [ ] = { 0 , 0 , 1 , 1 } ;
2019-05-15 19:35:24 +00:00
colortoggled [ ] = { 0 , 1 , 0 , 1 } ;
action = " if (isnull (finddisplay -1200)) then {createdialog 'ServerStatsDialog'}; " ;
Tooltip = " Server Statistic " ;
ToggleVar = " " ;
ToggleAble = " false " ;
} ;
2018-06-21 19:59:37 +00:00
} ;
} ;