42 #ifdef PLATFORM_CONSOLE
43 m_Root =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/server_browser/xbox/server_browser_list_entry.layout", parent);
45 m_Root =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/server_browser/pc/server_browser_list_entry_pages.layout", parent);
72 m_Root.FindAnyWidget(
"basic_info").Show(
true);
73 m_Root.FindAnyWidget(
"favorite_image").Update();
74 m_Root.FindAnyWidget(
"unfavorite_image").Update();
80 m_ServerTime.LoadImageFile(0,
"set:dayz_gui image:icon_sun");
81 m_ServerTime.LoadImageFile(1,
"set:dayz_gui image:icon_sun_accel");
82 m_ServerTime.LoadImageFile(2,
"set:dayz_gui image:icon_moon");
83 m_ServerTime.LoadImageFile(3,
"set:dayz_gui image:icon_moon_accel");
113 #ifdef PLATFORM_CONSOLE
126 for (
int i = 1; i <
m_Mods.Count(); i++)
128 mods_text +=
"\n" +
m_Mods[i];
132 g_Game.GetUIManager().ShowDialog(
"#main_menu_mods", mods_text, 0, 0, 0, 0,
g_Game.GetUIManager().GetMenu());
224 #ifdef PLATFORM_CONSOLE
240 #ifdef PLATFORM_CONSOLE
275 #ifndef PLATFORM_CONSOLE
289 #ifdef PLATFORM_CONSOLE
293#ifdef PLATFORM_WINDOWS
294 #ifndef PLATFORM_CONSOLE
350 if (playersInQueue > 0 && population == maxPlayers)
386 color =
ARGBF(1, 0, 1, 0);
388 color =
ARGBF(1, 0.8, 0.8, 0);
389 else if( ping < 200 )
390 color =
ARGBF(1, 1, 0.5, 0);
392 color =
ARGBF(1, 1, 0, 0);
414 time.
Split(
":", arr);
416 if (arr.Count() == 2)
418 int hour = arr.Get(0).ToInt();
419 int minute = arr.Get(1).ToInt();
421 if (hour >= 19 || hour <= 5)
446 text =
"#server_browser_entry_private";
451 text =
"#server_browser_entry_official";
479 if (char_alive ==
"")
497 text =
"#server_browser_entry_person_both";
502 text =
"#server_browser_entry_person_first";
556 m_Root.FindAnyWidget(
"favorite_image").Show(favorite);
557 m_Root.FindAnyWidget(
"unfavorite_image").Show(!favorite);
580 string displayValue =
"-";
594 if (mods && mods.Count() > 0)
596 string mods_text = mods[0];
597 for (
int i = 1; i < mods.Count(); i++)
598 mods_text +=
", " + mods[i];
603 #ifdef PLATFORM_WINDOWS
622#ifdef PLATFORM_WINDOWS
626 #ifdef PLATFORM_CONSOLE
678 m_Tab.SelectServer(
this);
701 int whiteColor =
ARGBF(1, 1, 1, 1);
702 int populationColor = whiteColor;
703 int populationOutline = 1;
710 float pop_percentage = population / maxPlayers;
712 if (pop_percentage >= 1)
714 populationColor =
ARGBF(1, 1, 0, 0);
716 else if (pop_percentage >= 0.8)
718 populationColor =
ARGBF(1, 1, 0.5, 0);
725 populationOutline = 0;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto bool IsDLCInstalled(EDLCId dlcId)
proto EDLCId GetDLCFromWorld(string world)
ContentDLC is for query installed DLC (only as entitlement keys, not content)
float m_EnvironmentTimeMul
time multiplier of environment
int m_Disable3rdPerson
disable3rdPerson servers for mode regular/hardcore
int m_CurrentNumberPlayers
bool m_MouseAndKeyboardEnabled
bool m_IsPasswordProtected
GetServersResultRow the output structure of the GetServers operation that represents one game server.
static void GetServerModList(string server_id)
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
static string GetMapDisplayName(string mapName)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
class array< Class T > TStringArray
proto native int Length()
Returns length of string.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.
proto native int ToInt()
Converts string to integer.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
int ARGB(int a, int r, int g, int b)
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.