42 #ifdef PLATFORM_CONSOLE
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];
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)
352 popText = population.ToString() +
"+" + playersInQueue.ToString() +
"/" + maxPlayers.ToString();
356 popText = population.ToString() +
"/" + maxPlayers.ToString();
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);
396 displayValue = ping.ToString();
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";
476 if (char_alive ==
"")
494 text =
"#server_browser_entry_person_both";
499 text =
"#server_browser_entry_person_first";
553 m_Root.FindAnyWidget(
"favorite_image").Show(favorite);
554 m_Root.FindAnyWidget(
"unfavorite_image").Show(!favorite);
577 string displayValue =
"-";
591 if (mods && mods.Count() > 0)
593 string mods_text = mods[0];
594 for (
int i = 1; i < mods.Count(); i++)
595 mods_text +=
", " + mods[i];
600 #ifdef PLATFORM_WINDOWS
619#ifdef PLATFORM_WINDOWS
623 #ifdef PLATFORM_CONSOLE
632 ServerBrowserFavoritesTabConsolePages sbf = ServerBrowserFavoritesTabConsolePages.Cast(
m_Tab);
635 sbf.SetFavoriteChanged(
true);
636 sbf.RefreshServerList();
682 m_Tab.SelectServer(
this);
705 int whiteColor =
ARGBF(1, 1, 1, 1);
706 int populationColor = whiteColor;
707 int populationOutline = 1;
714 float pop_percentage = population / maxPlayers;
716 if (pop_percentage >= 1)
718 populationColor =
ARGBF(1, 1, 0, 0);
720 else if (pop_percentage >= 0.8)
722 populationColor =
ARGBF(1, 1, 0.5, 0);
729 populationOutline = 0;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native UIManager GetUIManager()
proto native bool VerifyWorldOwnership(string sWorldName)
proto native WorkspaceWidget GetWorkspace()
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)
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
proto native CGame GetGame()
array< string > TStringArray
proto native int Length()
Returns length of string.
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.