mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
E-Pad tweaks
This commit is contained in:
parent
3d1ac6f019
commit
3c531741f3
36
Sources/epoch_code/customs/E_Pad/ServerInfos.html
Normal file
36
Sources/epoch_code/customs/E_Pad/ServerInfos.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>E_Pad</title>
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<style type="text/css">
|
||||||
|
a {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
.auto-style1 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.auto-style2 {
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
|
.auto-style3 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: large;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body style="color: #FFFF00)">
|
||||||
|
<p>
|
||||||
|
<span class="auto-style2"><b>Server Infos:</b></span><br>
|
||||||
|
Homepage: <a href="http://epochmod.com" target="_blank">EpochMod.com</a><br>
|
||||||
|
Discord: <a href="https://discord.gg/0k4ynDDCsnMzkxk7" target="_blank">EpochMod Discord</a><br>
|
||||||
|
FaceBook: <a href="https://www.facebook.com/EpochMod/" target="_blank">https://www.facebook.com/EpochMod/</a><br>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
Sources/epoch_code/customs/E_Pad/ServerRules.html
Normal file
37
Sources/epoch_code/customs/E_Pad/ServerRules.html
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>E_Pad</title>
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<style type="text/css">
|
||||||
|
a {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
.auto-style1 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.auto-style2 {
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
|
.auto-style3 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: large;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body style="color: #FFFF00)">
|
||||||
|
<p>
|
||||||
|
<span class="auto-style2"><b>Server Rules</b></span><br>
|
||||||
|
- Play fair!<br>
|
||||||
|
- Do not glitch<br>
|
||||||
|
- Do not use bugs<br>
|
||||||
|
- Do not flame other players<br>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
35
Sources/epoch_code/customs/E_Pad/ServerSettings.html
Normal file
35
Sources/epoch_code/customs/E_Pad/ServerSettings.html
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>E_Pad</title>
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<style type="text/css">
|
||||||
|
a {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #FFCC00;
|
||||||
|
}
|
||||||
|
.auto-style1 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.auto-style2 {
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
|
.auto-style3 {
|
||||||
|
color: #FF0000;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: large;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body style="color: #FFFF00)">
|
||||||
|
<p>
|
||||||
|
<span class="auto-style2"><b>Server Settings:</b></span><br>
|
||||||
|
Ask an Admin to change this file:<br>
|
||||||
|
epoch_code\customs\E_Pad\ServerSettings.html<br>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -2,4 +2,4 @@ disableSerialization;
|
|||||||
_display = finddisplay 9898;
|
_display = finddisplay 9898;
|
||||||
{
|
{
|
||||||
(_display displayctrl _x) ctrlshow false;
|
(_display displayctrl _x) ctrlshow false;
|
||||||
} foreach [1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1814,1901,1902,1903];
|
} foreach [1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1814,1900,1902,1903];
|
||||||
|
@ -30,15 +30,21 @@ for "_i" from ((Epoch_E_Pad_Page-1)*13) to (((count _configs)-1) min (((Epoch_E_
|
|||||||
_subclasses = configProperties [_configx, "isClass _x",true];
|
_subclasses = configProperties [_configx, "isClass _x",true];
|
||||||
_action = format ["%1;",getText(_configx >> "action")];
|
_action = format ["%1;",getText(_configx >> "action")];
|
||||||
_togglevar = getText(_configx >> "ToggleVar");
|
_togglevar = getText(_configx >> "ToggleVar");
|
||||||
if !(_subclasses isEqualTo []) then {
|
_html = getText (_configx >> "html");
|
||||||
_action = _action + format ["Epoch_E_Pad_Page = 1; [%1] call EPOCH_EPad_dialog", _arr + [(configName _configx)]];
|
if (_html isequalto "") then {
|
||||||
}
|
if !(_subclasses isEqualTo []) then {
|
||||||
else {
|
_action = _action + format ["Epoch_E_Pad_Page = 1; [%1] call EPOCH_EPad_dialog", _arr + [(configName _configx)]];
|
||||||
if (tolower (getText(_configx >> "ToggleAble")) isequalto "true") then {
|
}
|
||||||
if !(_togglevar isequalto "") then {
|
else {
|
||||||
_action = _action + format ["%1 = %2; ['Epoch_ToggleVars','%1',%2] call Epoch_SaveVarsToProfile; [%3] call EPOCH_EPad_dialog",_togglevar,!(missionnamespace getvariable [format ["%1",_togglevar],false]),_arr];
|
if (tolower (getText(_configx >> "ToggleAble")) isequalto "true") then {
|
||||||
|
if !(_togglevar isequalto "") then {
|
||||||
|
_action = _action + format ["%1 = %2; ['Epoch_ToggleVars','%1',%2] call Epoch_SaveVarsToProfile; [%3] call EPOCH_EPad_dialog",_togglevar,!(missionnamespace getvariable [format ["%1",_togglevar],false]),_arr];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_action = format ["disableserialization;call EPOCH_EPad_clearscreen;_htmlctrlsgrp = ((finddisplay 9898) displayctrl 1900); _htmlctrlsgrp ctrlshow true; _htmlctrl = _htmlctrlsgrp controlsGroupCtrl 1901;_htmlctrl htmlLoad %1;",str _html];
|
||||||
};
|
};
|
||||||
|
|
||||||
_ButtonText = "";
|
_ButtonText = "";
|
||||||
|
@ -20,15 +20,28 @@ class e_pad_config
|
|||||||
IconCode = "if (true) then {'addons\MyIcon.paa'} else {''}"; // Variable Icon - will overwrite static Icon, if defined
|
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
|
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)
|
colortoggled[] = {0,1,0,1}; // Icon / Button color if toggleable and variable is toggled (true)
|
||||||
|
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)
|
||||||
action = ""; // code to run on button click
|
action = ""; // code to run on button click
|
||||||
Tooltip = "PLACE-HOLDER"; // Static Tooltip
|
Tooltip = "PLACE-HOLDER"; // Static Tooltip
|
||||||
TooltipCode = "if (true) then {'My ToolTip'} else {''}"; // Variable Tooltip - will overwrite static Tooltip, if defined
|
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"
|
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
|
ToggleAble = "false"; // if "true", the defined variable will be toggled (and saved to profile) on buttonclick
|
||||||
class SubMenu { // On Buttonclick, a new submenu will be opened with defined classes here
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
class settings
|
class settings
|
||||||
@ -53,17 +66,6 @@ class e_pad_config
|
|||||||
ToggleVar = "EPOCH_EpadButtonOn";
|
ToggleVar = "EPOCH_EpadButtonOn";
|
||||||
ToggleAble = "true";
|
ToggleAble = "true";
|
||||||
};
|
};
|
||||||
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";
|
|
||||||
};
|
|
||||||
class playerMarker
|
class playerMarker
|
||||||
{
|
{
|
||||||
ButtonText = "";
|
ButtonText = "";
|
||||||
@ -99,6 +101,18 @@ class e_pad_config
|
|||||||
ToggleVar = "EPOCH_AutoEarplug";
|
ToggleVar = "EPOCH_AutoEarplug";
|
||||||
ToggleAble = "true";
|
ToggleAble = "true";
|
||||||
};
|
};
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
/*
|
||||||
class SubSub {
|
class SubSub {
|
||||||
ButtonText = "SubMenu";
|
ButtonText = "SubMenu";
|
||||||
Description = "Sub Menu";
|
Description = "Sub Menu";
|
||||||
@ -121,18 +135,58 @@ class e_pad_config
|
|||||||
ToggleAble = "false";
|
ToggleAble = "false";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
class info
|
class infos
|
||||||
{
|
{
|
||||||
ButtonText = "";
|
ButtonText = "";
|
||||||
Description = "Server Info";
|
Description = "Infos";
|
||||||
icon = "x\addons\a3_epoch_code\Data\UI\epad\server_info_icon_ca.paa";
|
icon = "x\addons\a3_epoch_code\Data\UI\epad\server_info_icon_ca.paa";
|
||||||
color[] = {1,1,1,1};
|
color[] = {1,1,1,1};
|
||||||
colortoggled[] = {0,1,0,1};
|
colortoggled[] = {0,1,0,1};
|
||||||
action = "createDialog 'server_info_picture'";
|
action = "";
|
||||||
Tooltip = "Display server Info";
|
Tooltip = "Info-Menu";
|
||||||
ToggleVar = "";
|
ToggleVar = "";
|
||||||
ToggleAble = "false";
|
ToggleAble = "false";
|
||||||
|
class serverinfo
|
||||||
|
{
|
||||||
|
ButtonText = "";
|
||||||
|
Description = "Server Info";
|
||||||
|
icon = "x\addons\a3_epoch_code\Data\UI\epad\server_info_icon_ca.paa";
|
||||||
|
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 = "";
|
||||||
|
Description = "Server Rules";
|
||||||
|
icon = "x\addons\a3_epoch_code\Data\UI\epad\server_info_icon_ca.paa";
|
||||||
|
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";
|
||||||
|
icon = "x\addons\a3_epoch_code\Data\UI\epad\server_info_icon_ca.paa";
|
||||||
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
class debug
|
class debug
|
||||||
{
|
{
|
||||||
@ -165,23 +219,11 @@ class e_pad_config
|
|||||||
Icon = "";
|
Icon = "";
|
||||||
color[] = {1,1,1,1};
|
color[] = {1,1,1,1};
|
||||||
colortoggled[] = {0,1,0,1};
|
colortoggled[] = {0,1,0,1};
|
||||||
action = "call compile preprocessfilelinenumbers ""epoch_code\gui\scripts\e_pad\Apps\traderDiag_news.sqf""";
|
action = "call compile preprocessfilelinenumbers 'epoch_code\customs\E_Pad\traderDiag_news.sqf'";
|
||||||
Tooltip = "News";
|
Tooltip = "News";
|
||||||
ToggleVar = "";
|
ToggleVar = "";
|
||||||
ToggleAble = "false";
|
ToggleAble = "false";
|
||||||
};
|
};
|
||||||
class web
|
|
||||||
{
|
|
||||||
ButtonText = "WEB";
|
|
||||||
Description = "Web links";
|
|
||||||
Icon = "";
|
|
||||||
color[] = {1,1,1,1};
|
|
||||||
colortoggled[] = {0,1,0,1};
|
|
||||||
action = "call compile preprocessfilelinenumbers ""epoch_code\gui\scripts\e_pad\Apps\web.sqf""";
|
|
||||||
Tooltip = "WEB LINK";
|
|
||||||
ToggleVar = "";
|
|
||||||
ToggleAble = "false";
|
|
||||||
};
|
|
||||||
class vehs
|
class vehs
|
||||||
{
|
{
|
||||||
ButtonText = "Vehicle";
|
ButtonText = "Vehicle";
|
||||||
@ -189,7 +231,7 @@ class e_pad_config
|
|||||||
Icon = "";
|
Icon = "";
|
||||||
color[] = {1,1,1,1};
|
color[] = {1,1,1,1};
|
||||||
colortoggled[] = {0,1,0,1};
|
colortoggled[] = {0,1,0,1};
|
||||||
action = "[250,1000] call compile preprocessfilelinenumbers ""epoch_code\gui\scripts\e_pad\Apps\traderDiag_nearVehicles.sqf""";
|
action = "[250,1000] call compile preprocessfilelinenumbers 'epoch_code\customs\E_Pad\traderDiag_nearVehicles.sqf'";
|
||||||
Tooltip = "Scan for near Vehicles (costs 250 energy)";
|
Tooltip = "Scan for near Vehicles (costs 250 energy)";
|
||||||
ToggleVar = "";
|
ToggleVar = "";
|
||||||
ToggleAble = "false";
|
ToggleAble = "false";
|
||||||
@ -201,10 +243,22 @@ class e_pad_config
|
|||||||
Icon = "";
|
Icon = "";
|
||||||
color[] = {1,1,1,1};
|
color[] = {1,1,1,1};
|
||||||
colortoggled[] = {0,1,0,1};
|
colortoggled[] = {0,1,0,1};
|
||||||
action = "[250,250] call compile preprocessfilelinenumbers ""epoch_code\gui\scripts\e_pad\Apps\traderDiag_nearPlayers.sqf""";
|
action = "[250,250] call compile preprocessfilelinenumbers 'epoch_code\customs\E_Pad\traderDiag_nearPlayers.sqf'";
|
||||||
Tooltip = "Scan for near Players (costs 250 energy)";
|
Tooltip = "Scan for near Players (costs 250 energy)";
|
||||||
ToggleVar = "";
|
ToggleVar = "";
|
||||||
ToggleAble = "false";
|
ToggleAble = "false";
|
||||||
};
|
};
|
||||||
|
class suicide
|
||||||
|
{
|
||||||
|
ButtonText = "KILL";
|
||||||
|
Description = "Kill yourself";
|
||||||
|
Icon = "";
|
||||||
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user