12 #ifdef PLATFORM_WINDOWS
13 #ifndef PLATFORM_CONSOLE
14 protected GridSpacerWidget m_FriendsContainer;
49 #ifdef PLATFORM_WINDOWS
50 #ifndef PLATFORM_CONSOLE
51 m_FriendsContainer = GridSpacerWidget.Cast(root.FindAnyWidget(
"details_friends_container"));
52 m_FriendsResult =
TextWidget.Cast(root.FindAnyWidget(
"details_friends_result_label"));
57 m_TimeIcon = ImageWidget.Cast(root.FindAnyWidget(
"detail_time_img"));
61 m_VersionContainer = WrapSpacerWidget.Cast(root.FindAnyWidget(
"details_version_container"));
64 m_ServerDecContainer = GridSpacerWidget.Cast(root.FindAnyWidget(
"details_description_container"));
65 m_ServerDesc = MultilineTextWidget.Cast(root.FindAnyWidget(
"details_description_label"));
68 m_MapImage = ImageWidget.Cast(root.FindAnyWidget(
"map_image"));
70 m_TimeIcon.LoadImageFile(0,
"set:dayz_gui image:icon_sun");
71 m_TimeIcon.LoadImageFile(1,
"set:dayz_gui image:icon_sun_accel");
72 m_TimeIcon.LoadImageFile(2,
"set:dayz_gui image:icon_moon");
73 m_TimeIcon.LoadImageFile(3,
"set:dayz_gui image:icon_moon_accel");
75 m_BtnShowFilters = ButtonWidget.Cast(parent.GetDetailsRoot().FindAnyWidget(
"show_filters_button"));
76 m_RefreshList = ButtonWidget.Cast(parent.GetFilterRoot().FindAnyWidget(
"refresh_list_button"));
90 #ifdef PLATFORM_WINDOWS
91 #ifndef PLATFORM_CONSOLE
96 #ifdef PLATFORM_CONSOLE
108 #ifdef PLATFORM_WINDOWS
109 #ifndef PLATFORM_CONSOLE
152 string result =
"#server_browser_tab_community";
153 if (shardId.
Length() == 3 && shardId.
ToInt() < 200)
154 result =
"#server_browser_entry_official";
159 #ifdef PLATFORM_CONSOLE
160 protected void SetConsoleType(
bool offical)
162 string result =
"#server_browser_tab_community";
164 result =
"#server_browser_entry_official";
166 m_ServerTypeResult.SetText(result);
172 string result =
"#STR_server_browser_no_server_selected";
177 result =
"#STR_server_browser_details_third_person";
182 result =
"#STR_server_browser_details_first_person";
195#ifdef PLATFORM_WINDOWS
196 #ifndef PLATFORM_CONSOLE
197 protected void SetCharacter(
string characterName)
199 string result =
"#STR_server_browser_char_not_alive";
200 if (characterName !=
"")
201 result = characterName;
203 m_LastCharacterResult.SetText(result);
206 protected void SetFriends(
string steamFriends =
"")
209 if (steamFriends !=
"")
210 result = steamFriends;
212 m_FriendsResult.SetText(result);
213 m_FriendsResult.Update();
228 time.
Split(
":", arr);
230 if (arr.Count() == 2)
232 int hour = arr.Get(0).ToInt();
233 int minute = arr.Get(1).ToInt();
235 if (hour >= 19 || hour <= 5)
264 string result =
"#STR_server_browser_no_server_selected";
265 int color =
ARGB(255, 255, 255, 255);
271 result =
"#server_browser_entry_disabled";
272 color =
ARGB(255, 255, 0, 0);
277 result =
"#server_browser_entry_enabled";
278 color =
ARGB(255, 0, 255, 0);
307 #ifdef PLATFORM_CONSOLE
321 m_Tab.OnDetailsFocus(w);
327 return m_Tab.OnMouseEnter(w,
x,
y);
332 return m_Tab.OnMouseLeave(w, enterW,
x,
y);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
float m_EnvironmentTimeMul
time multiplier of environment
int m_Disable3rdPerson
disable3rdPerson servers for mode regular/hardcore
GetServersResultRow the output structure of the GetServers operation that represents one game server.
static string GetServerMapImagePath(string mapName)
proto string ToString(bool simple=true)
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)