mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
327 lines
10 KiB
C++
327 lines
10 KiB
C++
class RscDisplayMultiplayerSetup: RscStandardDisplay
|
|
{
|
|
west = "ca\ui\data\flag_none_ca.paa";
|
|
east = "ca\ui\data\flag_none_ca.paa";
|
|
guer = "ca\ui\data\flag_none_ca.paa";
|
|
civl = "ca\ui\data\flag_none_ca.paa";
|
|
none = "ca\ui\data\flag_none_ca.paa";
|
|
westUnlocked = "ca\ui\data\flag_none_ca.paa";
|
|
westLocked = "ca\ui\data\flag_none_ca.paa";
|
|
eastUnlocked = "ca\ui\data\flag_none_ca.paa";
|
|
eastLocked = "ca\ui\data\flag_none_ca.paa";
|
|
guerUnlocked = "ca\ui\data\flag_none_ca.paa";
|
|
guerLocked = "ca\ui\data\flag_none_ca.paa";
|
|
civlUnlocked = "ca\ui\data\flag_none_ca.paa";
|
|
civlLocked = "ca\ui\data\flag_none_ca.paa";
|
|
colorNotAssigned[] = {0, 1, 0, 1};
|
|
colorAssigned[] = {0, 1, 0, 1};
|
|
colorConfirmed[] = {0, 1, 0, 1};
|
|
|
|
onload = "with uiNameSpace do{RscDisplayMultiplayerSetup=_this select 0}; [_this] execVM 'z\addons\dayz_code\init\lobbyAutoJoin.sqf'"; //#70
|
|
onMouseHolding = "with uiNameSpace do { switch (1 == 1) do { case(isNil 'RscDMSLoad'): { RscDMSLoad = diag_tickTime; }; case(RscDMSLoad == -1): {}; case(RscDMSLoad == -2): {}; case(diag_tickTime - RscDMSLoad > 7): { RscDMSLoad = diag_tickTime; }; case(diag_tickTime - RscDMSLoad > 5): { }; }; };";
|
|
/*
|
|
with uiNameSpace do
|
|
{
|
|
switch (1 == 1) do
|
|
{
|
|
case(isNil 'RscDMSLoad'): { RscDMSLoad = diag_tickTime; };
|
|
case(RscDMSLoad == -1): {};
|
|
case(RscDMSLoad == -2): {};
|
|
case(diag_tickTime - RscDMSLoad > 7): { RscDMSLoad = diag_tickTime; };
|
|
case(diag_tickTime - RscDMSLoad > 5): { ctrlActivate ((_this select 0) displayCtrl 1); RscDMSLoad = -1; };
|
|
};
|
|
};
|
|
*/
|
|
onButtonClick = "with uiNameSpace do{RscDMSLoad=-1};false";
|
|
onButtonDblClick = "with uiNameSpace do{RscDMSLoad=-1};false";
|
|
onKeyDown = "with uiNameSpace do{RscDMSLoad=-1};false";
|
|
|
|
class controlsbackground
|
|
{
|
|
class dayz_black: RscText
|
|
{
|
|
idc=1017;
|
|
colorBackground[] = {0,0,0,1};
|
|
x = "SafeZoneX";
|
|
y = "SafeZoneY";
|
|
w = "SafeZoneW";
|
|
h = "SafeZoneH";
|
|
};
|
|
class MP_roles_TitleBorder: RscText
|
|
{
|
|
idc=1008;
|
|
};
|
|
class TextBack: RscText
|
|
{
|
|
idc=1009;
|
|
};
|
|
class TextBorder: RscText
|
|
{
|
|
idc=1010;
|
|
};
|
|
class SidesBack: RscText
|
|
{
|
|
idc=1011;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
class SidesBorder: RscText
|
|
{
|
|
idc=1012;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
class ValueRolesBack: RscText
|
|
{
|
|
idc=1013;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
class ValueRolesBorder: RscText
|
|
{
|
|
idc=1014;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
class ValuePoolBack: RscText
|
|
{
|
|
idc=1015;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
class ValuePoolBorder: RscText
|
|
{
|
|
idc=1016;
|
|
y = "(120/100) * SafeZoneH + SafeZoneY";
|
|
};
|
|
};
|
|
class controls
|
|
{
|
|
class CA_MP_roles_Title : CA_Title {
|
|
idc = 1001;
|
|
style = 2;
|
|
x = "(02/100) * SafeZoneW + SafeZoneX";
|
|
y = "(02/100) * SafeZoneH + SafeZoneY";
|
|
w = "(96/100) * SafeZoneW";
|
|
h = "(06/100) * SafeZoneH";
|
|
colorBackground[] = {0.1, 0.1, 0.1, 0.68};
|
|
text = $STR_UI_LOBBY;
|
|
};
|
|
class TextMission : RscText {
|
|
idc = 1002;
|
|
x = "(02/100) * SafeZoneW + SafeZoneX";
|
|
y = "(9.5/100) * SafeZoneH + SafeZoneY";
|
|
w = "(18/100) * SafeZoneW";
|
|
h = "(3/100) * SafeZoneH";
|
|
SizeEx = 0.03;
|
|
text = $STR_DISP_SRVSETUP_NAME;
|
|
colorText[] = {0.95, 0.95, 0.95, 1};
|
|
};
|
|
class ValueMission : RscText {
|
|
idc = 101;
|
|
x = "(20/100) * SafeZoneW + SafeZoneX";
|
|
y = "(9.5/100) * SafeZoneH + SafeZoneY";
|
|
w = "(40/100) * SafeZoneW";
|
|
h = "(3/100) * SafeZoneH";
|
|
SizeEx = 0.03;
|
|
colorText[] = {0.95, 0.95, 0.95, 1};
|
|
};
|
|
class CA_TextDescription : RscText {
|
|
idc = 1004;
|
|
x = "(02/100) * SafeZoneW + SafeZoneX";
|
|
y = "(12.5/100) * SafeZoneH + SafeZoneY";
|
|
w = "(18/100) * SafeZoneW";
|
|
h = "(3/100) * SafeZoneH";
|
|
SizeEx = 0.03;
|
|
text = $STR_DISP_SRVSETUP_DESC;
|
|
colorText[] = {0.95, 0.95, 0.95, 1};
|
|
};
|
|
class CA_ValueDescription : RscText {
|
|
idc = 103;
|
|
x = "(20/100) * SafeZoneW + SafeZoneX";
|
|
y = "(12.5/100) * SafeZoneH + SafeZoneY";
|
|
w = "(78/100) * SafeZoneW";
|
|
h = "(3/100) * SafeZoneH";
|
|
SizeEx = 0.03;
|
|
colorText[] = {0.95, 0.95, 0.95, 1};
|
|
};
|
|
class TextIsland: RscText
|
|
{
|
|
idc = 1003;
|
|
y = "(109.5/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class ValueIsland: RscText
|
|
{
|
|
idc = 102;
|
|
y = "(109.5/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class TextSide: RscText
|
|
{
|
|
idc = 1005;
|
|
y = "(116.5/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class TextRoles: RscText
|
|
{
|
|
idc = 1007; // new, idc was missed by BI
|
|
y = "(116.5/100) * SafeZoneH + SafeZoneY"; // hide
|
|
};
|
|
class CA_B_West: RscActiveText
|
|
{
|
|
idc = 104;
|
|
y = "(121/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class CA_B_East: CA_B_West
|
|
{
|
|
idc = 105;
|
|
y = "(131/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class CA_B_Guerrila: CA_B_West
|
|
{
|
|
idc = 106;
|
|
y = "(141/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class CA_B_Civilian: CA_B_West
|
|
{
|
|
idc = 107;
|
|
y = "(151/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class CA_ValueRoles: RscIGUIListBox
|
|
{
|
|
idc = 109;
|
|
style = 16;
|
|
y = "(120.5/100) * SafeZoneH + SafeZoneY"; //hide
|
|
};
|
|
class TextPool: RscText
|
|
{
|
|
idc = 1006;
|
|
x = "(2/100) * SafeZoneW + SafeZoneX"; // to left
|
|
w = "(96/100) * SafeZoneW"; //wide (was: 38/100)
|
|
text = "";
|
|
};
|
|
class CA_ValuePool: RscIGUIListBox
|
|
{
|
|
idc = 114;
|
|
text = $STR_MP_PLAYERS;
|
|
x = "(2/100) * SafeZoneW + SafeZoneX"; // to left
|
|
w = "(96/100) * SafeZoneW"; // wide
|
|
colorText[] = {0.95, 0.95, 0.95, 1};
|
|
class ScrollBar {
|
|
color[] = {1, 1, 1, 0.6};
|
|
colorActive[] = {0.5, 0.5, 0.5, 1};
|
|
colorDisabled[] = {1, 1, 1, 0.3};
|
|
thumb = "\z\addons\dayz_code\gui\grey\igui_scrollbar_thumb_ca.paa";
|
|
arrowFull = "\z\addons\dayz_code\gui\grey\igui_arrow_top_active_ca.paa";
|
|
arrowEmpty = "\z\addons\dayz_code\gui\grey\igui_arrow_top_ca.paa";
|
|
border = "\z\addons\dayz_code\gui\grey\igui_border_scroll_ca.paa";
|
|
};
|
|
};
|
|
class CA_B_Lock : RscShortcutButton {
|
|
idc = 118;
|
|
x = "(39/100) * SafeZoneW + SafeZoneX";
|
|
y = "(93/100) * SafeZoneH + SafeZoneY";
|
|
w = 0.183825;
|
|
color[] = {0.95, 0.95, 0.95, 1.0};
|
|
animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa";
|
|
animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa";
|
|
animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa";
|
|
animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa";
|
|
animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa";
|
|
animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa";
|
|
};
|
|
class CA_B_DSinterface : RscShortcutButton {
|
|
idc = 1012;
|
|
default = 0;
|
|
onButtonClick = "openDSInterface;";
|
|
shortcuts[] = {};
|
|
x = "(2.75/100) * SafeZoneW + SafeZoneX";
|
|
y = "(93/100) * SafeZoneH + SafeZoneY";
|
|
w = 0.26;
|
|
text = $STR_DISP_SERVER_CONTROL;
|
|
color[] = {0.95, 0.95, 0.95, 1.0};
|
|
animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa";
|
|
animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa";
|
|
animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa";
|
|
animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa";
|
|
animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa";
|
|
animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa";
|
|
};
|
|
class CA_B_Kick : RscShortcutButton {
|
|
idc = 116;
|
|
default = 0;
|
|
shortcuts[] = {0x00050000 + 2};
|
|
x = "(83/100) * SafeZoneW + SafeZoneX";
|
|
y = "(14/100) * SafeZoneH + SafeZoneY";
|
|
text = $STR_DISP_MP_KICKOFF;
|
|
color[] = {0.95, 0.95, 0.95, 1.0};
|
|
animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa";
|
|
animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa";
|
|
animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa";
|
|
animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa";
|
|
animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa";
|
|
animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa";
|
|
};
|
|
class CA_ButtonContinue : RscShortcutButton {
|
|
idc = 1;
|
|
default = 1;
|
|
shortcuts[] = {0x00050000 + 0, 28, 57, 156};
|
|
x = "(83/100) * SafeZoneW + SafeZoneX";
|
|
y = "(93/100) * SafeZoneH + SafeZoneY";
|
|
text = $STR_DISP_OK;
|
|
onButtonClick = "((findDisplay 70) displayCtrl 300) ctrlShow false;";
|
|
color[] = {0.95, 0.95, 0.95, 1.0};
|
|
animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa";
|
|
animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa";
|
|
animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa";
|
|
animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa";
|
|
animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa";
|
|
animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa";
|
|
};
|
|
class CA_ButtonCancel : RscShortcutButton {
|
|
idc = 2;
|
|
default = 0;
|
|
shortcuts[] = {0x00050000 + 1};
|
|
x = "(68/100) * SafeZoneW + SafeZoneX";
|
|
y = "(93/100) * SafeZoneH + SafeZoneY";
|
|
w = 0.203825;
|
|
text = $STR_DISP_BACK;
|
|
onButtonClick = "with uiNameSpace do {RscDMSLoad=nil;};"; // autologon at logon on next server
|
|
color[] = {0.95, 0.95, 0.95, 1.0};
|
|
animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa";
|
|
animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa";
|
|
animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa";
|
|
animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa";
|
|
animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa";
|
|
animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa";
|
|
};
|
|
class Y_GamerCard: RscActiveText
|
|
{
|
|
idc = 125;
|
|
text = "Gamer card";
|
|
x = 0.25;
|
|
y = 0.9;
|
|
w = 0.15;
|
|
};
|
|
class PartyGUI: RscActiveText
|
|
{
|
|
idc = 126;
|
|
text = "Show party";
|
|
x = 0.4;
|
|
y = 0.9;
|
|
w = 0.15;
|
|
};
|
|
class AssignRole: RscActiveText
|
|
{
|
|
idc = 127;
|
|
text = "Assign role";
|
|
x = 0.55;
|
|
y = 0.9;
|
|
w = 0.15;
|
|
};
|
|
class infoText: RscText
|
|
{
|
|
idc = 300;
|
|
x = 0.224 * safezoneW + safezoneX;
|
|
y = 0.94 * safezoneH + safezoneY;
|
|
w = 0.333 * safezoneW;
|
|
h = 0.045 * safezoneH;
|
|
sizeEx = 0.03;
|
|
colorText[] = {0,0,0,0};
|
|
colorBackground[] = {0,0,0,0};
|
|
};
|
|
};
|
|
}; |