DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ServerBrowserEntry.c
См. документацию.
1class ServerBrowserEntry extends ScriptedWidgetEventHandler
2{
3 protected Widget m_Root;
4 protected Widget m_Favorite;
5
6 //Basic info
11 protected ImageWidget m_ServerTime; // not currently displayed
12 protected ImageWidget m_ServerLock;
13 protected ImageWidget m_ServerModIcon;
14 protected ImageWidget m_ServerMaKIcon;
15
16 //Detailed info
22 protected TextWidget m_ServerIP;
26 protected ButtonWidget m_ServerModsExpand;
27 protected ref array<string> m_Mods;
28
30 protected bool m_IsExpanded;
31 protected bool m_IsFavorited;
32 protected bool m_IsOnline;
33
35 protected int m_Index;
36 protected ServerBrowserTab m_Tab;
37 protected bool m_Selected;
38 protected bool m_FirstExpand = true;
39
40 void ServerBrowserEntry(Widget parent, int index, ServerBrowserTab tab)
41 {
42 #ifdef PLATFORM_CONSOLE
43 m_Root = g_Game.GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser_list_entry.layout", parent);
44 #else
45 m_Root = g_Game.GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser_list_entry_pages.layout", parent);
46 #endif
47
48 m_Root.Enable(true);
49 m_Favorite = m_Root.FindAnyWidget("favorite_button");
50 m_ServerName = TextWidget.Cast(m_Root.FindAnyWidget("server_name"));
51 m_ServerPopulation = TextWidget.Cast( m_Root.FindAnyWidget("server_population"));
52 m_ServerSlots = TextWidget.Cast(m_Root.FindAnyWidget("server_slots"));
53 m_ServerPing = TextWidget.Cast(m_Root.FindAnyWidget("server_ping"));
54 m_ServerTime = ImageWidget.Cast(m_Root.FindAnyWidget("server_time"));
55 m_ServerLock = ImageWidget.Cast(m_Root.FindAnyWidget("lock_icon"));
56 m_ServerModIcon = ImageWidget.Cast(m_Root.FindAnyWidget("modded_icon"));
57 m_ServerMaKIcon = ImageWidget.Cast(m_Root.FindAnyWidget("mandk_icon"));
58
59 m_ServerShard = TextWidget.Cast(m_Root.FindAnyWidget("shard_text"));
60 m_ServerCharacterAlive = TextWidget.Cast(m_Root.FindAnyWidget("character_alive_text"));
61 m_ServerFriends = TextWidget.Cast(m_Root.FindAnyWidget("steam_friends_text"));
62 m_ServerMode = TextWidget.Cast(m_Root.FindAnyWidget("mode_text"));
63 m_ServerBattleye = TextWidget.Cast(m_Root.FindAnyWidget("battlleye_text"));
64 m_ServerIP = TextWidget.Cast(m_Root.FindAnyWidget("ip_text"));
65 m_ServerAcceleration = TextWidget.Cast(m_Root.FindAnyWidget("server_acceleration_text"));
66 m_ServerMap = TextWidget.Cast(m_Root.FindAnyWidget("server_map"));
67 m_ServerMods = TextWidget.Cast(m_Root.FindAnyWidget("mods_text"));
68 m_ServerModsExpand = ButtonWidget.Cast(m_Root.FindAnyWidget("mods_expand"));
69
70 m_DetailedInfo = m_Root.FindAnyWidget("detailed_info");
71
72 m_Root.FindAnyWidget("basic_info").Show(true);
73 m_Root.FindAnyWidget("favorite_image").Update();
74 m_Root.FindAnyWidget("unfavorite_image").Update();
75
76 m_Index = index;
77 m_Tab = tab;
78 m_IsOnline = true;
79
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");
84
85 m_Root.SetHandler(this);
86 }
87
89 {
90 delete m_Root;
91 }
92
94 {
95 return m_Root;
96 }
97
98 void Show(bool show)
99 {
100 m_Root.Show(show);
101 }
102
103 // Method never gets called on console!
104 override bool OnClick(Widget w, int x, int y, int button)
105 {
106 if (!IsOnline() || w == null)
107 {
108 return false;
109 }
110
111 switch (w)
112 {
113 #ifdef PLATFORM_CONSOLE
114 case m_Root:
115 {
116 m_Tab.Connect(this);
117 return true;
118 }
119 #endif
121 {
122 string mods_text;
123 if (m_Mods && m_Mods.Count() > 0)
124 {
125 mods_text = m_Mods[0];
126 for (int i = 1; i < m_Mods.Count(); i++)
127 {
128 mods_text += "\n" + m_Mods[i];
129 }
130 }
131
132 g_Game.GetUIManager().ShowDialog("#main_menu_mods", mods_text, 0, 0, 0, 0, g_Game.GetUIManager().GetMenu());
133 return true;
134 }
135 }
136
137 return false;
138 }
139
140 override bool OnDoubleClick(Widget w, int x, int y, int button)
141 {
142 if (!IsOnline())
143 {
144 return false;
145 }
146
147 if (button == MouseState.LEFT && w == m_Root)
148 {
149 m_Tab.Connect(this);
150 return true;
151 }
152
153 return false;
154 }
155
156 override bool OnMouseButtonUp(Widget w, int x, int y, int button)
157 {
158 if (button == MouseState.LEFT)
159 {
160 switch (w)
161 {
162 case m_Favorite:
163 {
165 return true;
166 }
167 case m_Root:
168 {
169 OnSelect();
170 return true;
171 }
172 }
173 }
174 return false;
175 }
176
177 void OnSelect()
178 {
179 Darken(m_Root, 0, 0);
180 Select();
182 m_Tab.SetServerDetails(m_ServerData, m_IsOnline);
183 }
184
185 override bool OnMouseEnter(Widget w, int x, int y)
186 {
187 if (IsFocusable(w))
188 {
189 Preview(w, x, y);
190 return true;
191 }
192
193 return false;
194 }
195
196 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
197 {
198 if (IsFocusable(w) && !IsFocusable(enterW))
199 {
200 Lighten(w, enterW, x, y);
201 return true;
202 }
203
204 return false;
205 }
206
207 void Focus()
208 {
210 }
211
212 void ServerListFocus(bool focus)
213 {
214 m_Tab.ServerListFocus(focus, m_IsFavorited);
215 }
216
217 override bool OnFocus(Widget w, int x, int y)
218 {
219 if (!m_Selected)
220 {
221 if (IsFocusable(w))
222 Darken(w, x, y);
223
224 #ifdef PLATFORM_CONSOLE
225 if (w == m_Root)
226 {
227 Select();
228 ServerListFocus(true);
229 m_Tab.SetServerDetails(m_ServerData, m_IsOnline);
230 }
231 #endif
232
233 return true;
234 }
235 return false;
236 }
237
238 override bool OnFocusLost(Widget w, int x, int y)
239 {
240 #ifdef PLATFORM_CONSOLE
241 if (w == m_Root)
242 {
243 Deselect();
244 ServerListFocus(false);
245 }
246 #endif
247
248 if (IsFocusable(w))
249 {
250 Lighten(w, null, x, y);
251 }
252
253 return true;
254 return false;
255 }
256
257 bool IsOnline()
258 {
259 return m_IsOnline;
260 }
261
263 {
264 if (w)
265 return (w == m_Root || w == m_Favorite || w == m_ServerModsExpand);
266
267 return false;
268 }
269
271 {
272 m_ServerData = server_info;
273 m_FirstExpand = true;
274
275 #ifndef PLATFORM_CONSOLE
276 m_DetailedInfo.Show(server_info.m_IsExpanded);
277 #endif
278
279 SetName(server_info.m_Name);
281 SetPopulationEx(server_info);
282 SetSlots(server_info.m_MaxPlayers);
283 SetPing(server_info.m_Ping);
284 SetFavorite(server_info.m_Favorite);
285 SetModded(server_info.m_Modded);
288
289 #ifdef PLATFORM_CONSOLE
291 #endif
292
293#ifdef PLATFORM_WINDOWS
294 #ifndef PLATFORM_CONSOLE
295 SetExpand(server_info.m_IsExpanded);
296
297 int pp = 0; // private
298 if (server_info.m_ShardId.Length() == 3 && server_info.m_ShardId.ToInt() < 200)
299 {
300 pp = 1; // official
301 }
302
303 SetShard(pp);
305 SetFriends(server_info.m_SteamFriends);
306 SetMode(server_info.m_Disable3rdPerson);
307 SetBattleye(server_info.m_AntiCheat);
308 SetIP(server_info.m_Id);
310 #endif
311#endif
312 }
313
315 {
316 if (m_ServerData.m_IsSelected)
317 {
318 Darken(m_Root, 0, 0);
319 Select();
321 }
322 else
323 {
324 Lighten(m_Root, null, 0, 0);
325 Deselect();
326 }
327 }
328
329 void SetName(string name)
330 {
331 m_ServerName.SetText(name);
332 }
333
334 void SetPasswordLocked(bool locked)
335 {
336 m_ServerLock.Show(locked);
337 }
338
339 private void SetPopulationEx(GetServersResultRow serverInfo)
340 {
341 string popText = "";
342 int population = serverInfo.m_CurrentNumberPlayers;
343 int maxPlayers = serverInfo.m_MaxPlayers;
344 int playersInQueue = serverInfo.m_PlayersInQueue;
345
346 if (IsOnline())
347 {
348 // sometimes servers report a queue size even though server isn't full,
349 // in which case we ignore queue size
350 if (playersInQueue > 0 && population == maxPlayers)
351 {
352 popText = population.ToString() + "+" + playersInQueue.ToString() + "/" + maxPlayers.ToString();
353 }
354 else
355 {
356 popText = population.ToString() + "/" + maxPlayers.ToString();
357 }
358 }
359
360 else
361 {
362 popText = "-";
363 }
364
365 m_ServerPopulation.SetText(popText);
366 }
367
368 void SetSlots(int slots)
369 {
370 if (IsOnline())
371 {
372 m_ServerSlots.SetText(slots.ToString());
373 }
374 else
375 {
376 m_ServerSlots.SetText("-");
377 }
378 }
379
380 void SetPing(int ping)
381 {
382 int color;
383 string displayValue;
384
385 if (ping < 50)
386 color = ARGBF(1, 0, 1, 0);
387 else if(ping < 100)
388 color = ARGBF(1, 0.8, 0.8, 0);
389 else if( ping < 200 )
390 color = ARGBF(1, 1, 0.5, 0);
391 else
392 color = ARGBF(1, 1, 0, 0);
393
394 if (IsOnline())
395 {
396 displayValue = ping.ToString();
397 }
398
399 else
400 {
401 displayValue = "-";
402 }
403
404 m_ServerPing.SetColor(color);
405 m_ServerPing.SetText(displayValue);
406 }
407
408 void SetTime(string time, float multiplier)
409 {
410 if (time != "")
411 {
412 TStringArray arr = new TStringArray;
413
414 time.Split(":", arr);
415
416 if (arr.Count() == 2)
417 {
418 int hour = arr.Get(0).ToInt();
419 int minute = arr.Get(1).ToInt();
420
421 if (hour >= 19 || hour <= 5) //Night
422 {
423 if (multiplier > 1)
424 m_ServerTime.SetImage(3);
425 else
426 m_ServerTime.SetImage(2);
427 }
428 else //Day
429 {
430 if (multiplier > 1)
431 m_ServerTime.SetImage(1);
432 else
433 m_ServerTime.SetImage(0);
434 }
435 }
436 }
437 }
438
439 void SetShard(int shard)
440 {
441 string text;
442 switch (shard)
443 {
444 case 0:
445 {
446 text = "#server_browser_entry_private";
447 break;
448 }
449 case 1:
450 {
451 text = "#server_browser_entry_official";
452 break;
453 }
454 }
455 m_ServerShard.SetText(text);
456 }
457
459 {
460 if (m_ServerData && m_ServerData.m_DLCs != EDLCId.UNKNOWN)
461 {
462 string mapNM = GetMapToRun();
463 ContentDLC contentDLC = g_Game.GetContentDLCService();
464 EDLCId dlcId = contentDLC.GetDLCFromWorld(mapNM);
465 bool own = contentDLC.IsDLCInstalled(dlcId);
466 m_ServerModIcon.Show(true);
467 m_ServerModIcon.FindWidget("Owned").Show(own);
468 m_ServerModIcon.FindWidget("Unowned").Show(!own);
469 }
470 else
471 {
472 m_ServerModIcon.FindWidget("Owned").Show(false);
473 m_ServerModIcon.FindWidget("Unowned").Show(false);
474 }
475 }
476
477 void SetCharacterAlive(string char_alive)
478 {
479 if (char_alive == "")
480 m_ServerCharacterAlive.SetText("#STR_server_browser_char_not_alive");
481 else
482 m_ServerCharacterAlive.SetText(char_alive);
483 }
484
485 void SetFriends(string friends_text)
486 {
487 m_ServerFriends.SetText(friends_text);
488 }
489
490 void SetMode(int mode)
491 {
492 string text;
493 switch (mode)
494 {
495 case 0:
496 {
497 text = "#server_browser_entry_person_both";
498 break;
499 }
500 case 1:
501 {
502 text = "#server_browser_entry_person_first";
503 break;
504 }
505 }
506 m_ServerMode.SetText(text);
507 }
508
509 void SetBattleye(bool battleye)
510 {
511 if (battleye)
512 {
513 m_ServerBattleye.SetText("#server_browser_entry_enabled");
514 m_ServerBattleye.SetColor(ARGBF(1, 0, 1, 0));
515 }
516 else
517 {
518 m_ServerBattleye.SetText("#server_browser_entry_disabled");
519 m_ServerBattleye.SetColor(ARGBF(1, 1, 0, 0));
520 }
521 }
522
523 void SetIP(string ip)
524 {
525 m_ServerIP.SetText(ip);
526 }
527
528 string GetIP()
529 {
530 return m_ServerData.GetIP();
531 }
532
534 {
535 return m_ServerData.m_HostPort;
536 }
537
539 {
540 return m_ServerData.m_SteamQueryPort;
541 }
542
543 string GetServerID()
544 {
545 return m_ServerData.m_Id;
546 }
547
548 string GetMapToRun()
549 {
550 return m_ServerData.m_MapNameToRun;
551 }
552
553 void SetFavorite(bool favorite)
554 {
555 m_IsFavorited = favorite;
556 m_Root.FindAnyWidget("favorite_image").Show(favorite);
557 m_Root.FindAnyWidget("unfavorite_image").Show(!favorite);
558 }
559
560 void SetAcceleration(float mult)
561 {
562 if (mult > 1)
563 {
564 m_ServerAcceleration.Show(true);
565 m_ServerAcceleration.SetText(mult.ToString() + "x");
566 }
567 else
568 {
569 m_ServerAcceleration.Show(false);
570 }
571 }
572
573 void SetModded(bool is_modded)
574 {
575 m_ServerModIcon.Show(is_modded);
576 }
577
579 {
580 string displayValue = "-";
581
582 if (IsOnline())
583 {
584 displayValue = ServerBrowserHelperFunctions.GetMapDisplayName(m_ServerData.m_MapNameToRun);
585 }
586
587 m_ServerMap.SetText(displayValue);
588 }
589
591 {
592 m_Mods = mods;
593
594 if (mods && mods.Count() > 0)
595 {
596 string mods_text = mods[0];
597 for (int i = 1; i < mods.Count(); i++)
598 mods_text += ", " + mods[i];
599
600 m_ServerMods.SetText(mods_text);
601 }
602
603 #ifdef PLATFORM_WINDOWS
604 m_ServerModsExpand.Show((mods && mods.Count() > 0));
605 #endif
606 }
607
608 void SetMouseAndKeyboard(bool is_mkenabled)
609 {
610 m_ServerMaKIcon.Show(is_mkenabled);
611 }
612
613 void SetIsOnline(bool isOnline)
614 {
615 m_IsOnline = isOnline;
616 }
617
619 {
621 string ip = m_ServerData.GetIP();
622#ifdef PLATFORM_WINDOWS
623 //Save Data PC
624 m_Tab.GetRootMenu().AddFavorite(ip, m_ServerData.m_HostPort, m_IsFavorited);
625
626 #ifdef PLATFORM_CONSOLE
628 #else
630 #endif
631#else
632 //Save Data Console
633 m_IsFavorited = m_Tab.GetRootMenu().SetFavoriteConsoles(ip, m_ServerData.m_HostPort, m_IsFavorited);
634#endif
635
636 m_Root.FindAnyWidget("unfavorite_image").Show(!m_IsFavorited);
637 m_Root.FindAnyWidget("favorite_image").Show(m_IsFavorited);
638
639 return m_IsFavorited;
640 }
641
643 {
644 return SetExpand(!m_IsExpanded);
645 }
646
647 bool SetExpand(bool expand)
648 {
649 m_IsExpanded = expand;
650 m_Root.FindAnyWidget("collapse_image").Show(m_IsExpanded);
651 m_Root.FindAnyWidget("expand_image").Show(!m_IsExpanded);
653
654 if (m_ServerData)
655 {
656 m_ServerData.m_IsExpanded = m_IsExpanded;
657 }
658
659 if (expand && m_FirstExpand)
660 {
661 if (m_ServerData.m_Modded)
662 {
664 }
665
666 m_FirstExpand = false;
667 }
668
669 return m_IsExpanded;
670 }
671
672 void Select(bool notify = true)
673 {
674 if (!m_Selected)
675 {
676 if (notify)
677 {
678 m_Tab.SelectServer(this);
679 }
680
681 m_ServerData.m_IsSelected = true;
682 m_Selected = true;
683 }
684 }
685
686 void Deselect()
687 {
688 if (m_Selected)
689 {
690 m_ServerData.m_IsSelected = false;
691 m_Selected = false;
692
693 Lighten(m_Root, null, 0, 0);
694 }
695 }
696
698 {
699 float alpha = 1;
700 int maxPlayers = m_ServerData.m_MaxPlayers;
701 int whiteColor = ARGBF(1, 1, 1, 1);
702 int populationColor = whiteColor;
703 int populationOutline = 1;
704
705 if (IsOnline())
706 {
707 if (maxPlayers > 0)
708 {
709 int population = m_ServerData.m_CurrentNumberPlayers;
710 float pop_percentage = population / maxPlayers;
711
712 if (pop_percentage >= 1)
713 {
714 populationColor = ARGBF(1, 1, 0, 0);
715 }
716 else if (pop_percentage >= 0.8)
717 {
718 populationColor = ARGBF(1, 1, 0.5, 0);
719 }
720 }
721 }
722 else
723 {
724 alpha = 0.5;
725 populationOutline = 0;
726
727 m_ServerPing.SetColor(whiteColor);
728 }
729
730 m_ServerTime.Show(IsOnline());
731 m_ServerName.SetColor(whiteColor);
732 m_ServerName.SetAlpha(alpha);
733 m_ServerPopulation.SetBold(IsOnline());
734 m_ServerPopulation.SetColor(populationColor);
735 m_ServerPopulation.SetOutline(populationOutline);
736 m_ServerPopulation.SetAlpha(alpha);
737 m_ServerSlots.SetAlpha(alpha);
738 m_ServerPing.SetAlpha(alpha);
739 m_Root.SetAlpha(alpha);
740 }
741
742 //Coloring functions (Until WidgetStyles are useful)
743 void Preview(Widget w, int x, int y)
744 {
745 if (m_Selected)
746 return;
747
748 switch (w)
749 {
750 case m_Root:
751 case m_Favorite:
752 {
753 m_Root.SetColor(ARGB(255, 0, 0, 0));
754 m_Root.SetAlpha(1);
755 UpdateColors();
756
757 m_ServerName.SetColor(ARGB(255, 255, 0, 0));
758 if (!IsOnline())
759 {
760 m_ServerName.SetAlpha(0.5);
761 }
762 break;
763 }
764 }
765 }
766
767 //Coloring functions (Until WidgetStyles are useful)
768 void Darken(Widget w, int x, int y)
769 {
770 if (m_Selected)
771 return;
772
773 switch (w)
774 {
775 case m_Root:
776 case m_Favorite:
777 {
778 m_Root.SetColor(ARGB(255, 200, 0, 0));
780 UpdateColors();
781 break;
782 }
783 }
784 }
785
786 void Lighten(Widget w, Widget enterW, int x, int y)
787 {
788 float alpha = 0.3;
789
790 if (GetFocus() == w || m_Selected)
791 {
792 return;
793 }
794
795 if (w == m_Root && (m_Favorite && enterW == m_Favorite))
796 {
797 return;
798 }
799
800 m_Root.SetColor(ARGB(255, 0, 0, 0));
802 UpdateColors();
803
804 if (m_Index % 2)
805 {
806 alpha = 0;
807 }
808
809 m_Root.SetAlpha(alpha);
810 }
811
816
817 // DEPRECATED
818 string GetMapName();
819
820 // DEPRECATED
821 void SetMapName(string mapName);
822
823 // DEPRECATED
824 void SetPopulation(int population, int slots);
825}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
EDLCId
Определения ContentDLC.c:4
DayZGame g_Game
Определения DayZGame.c:4074
Icon x
Icon y
Widget m_Root
Определения SizeToChild.c:91
proto bool IsDLCInstalled(EDLCId dlcId)
proto EDLCId GetDLCFromWorld(string world)
ContentDLC is for query installed DLC (only as entitlement keys, not content)
Определения ContentDLC.c:19
float m_EnvironmentTimeMul
time multiplier of environment
Определения BiosLobbyService.c:214
int m_MaxPlayers
Определения BiosLobbyService.c:186
bool m_AntiCheat
Определения BiosLobbyService.c:183
bool m_Modded
Определения BiosLobbyService.c:181
int m_Disable3rdPerson
disable3rdPerson servers for mode regular/hardcore
Определения BiosLobbyService.c:212
int m_CurrentNumberPlayers
Определения BiosLobbyService.c:188
string m_Name
Определения BiosLobbyService.c:174
string m_SteamFriends
Определения BiosLobbyService.c:207
string m_Id
Определения BiosLobbyService.c:172
bool m_MouseAndKeyboardEnabled
Определения BiosLobbyService.c:194
string m_ShardId
Определения BiosLobbyService.c:217
bool m_Favorite
Определения BiosLobbyService.c:220
int m_PlayersInQueue
Определения BiosLobbyService.c:189
bool m_IsExpanded
Определения BiosLobbyService.c:199
string m_CharactersAlive
Определения BiosLobbyService.c:205
int m_Ping
Определения BiosLobbyService.c:209
bool m_IsPasswordProtected
Определения BiosLobbyService.c:191
GetServersResultRow the output structure of the GetServers operation that represents one game server.
Определения BiosLobbyService.c:171
static void GetServerModList(string server_id)
Определения OnlineServices.c:687
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
Определения OnlineServices.c:119
Определения OnlineServices.c:2
void Select(bool notify=true)
Определения ServerBrowserEntry.c:672
void SetModded(bool is_modded)
Определения ServerBrowserEntry.c:573
void Show(bool show)
Определения ServerBrowserEntry.c:98
void SetFavorite(bool favorite)
Определения ServerBrowserEntry.c:553
void ~ServerBrowserEntry()
Определения ServerBrowserEntry.c:88
PlayerListScriptedWidget m_Tab
Определения PlayerListEntryScriptedWidget.c:15
void SetTime(string time, float multiplier)
Определения ServerBrowserEntry.c:408
ref array< string > m_Mods
Определения ServerBrowserEntry.c:27
TextWidget m_ServerPopulation
Определения ServerBrowserEntry.c:8
void SetPing(int ping)
Определения ServerBrowserEntry.c:380
bool ToggleFavorite()
Определения ServerBrowserEntry.c:618
override bool OnFocusLost(Widget w, int x, int y)
Определения ServerBrowserEntry.c:238
override bool OnMouseButtonUp(Widget w, int x, int y, int button)
Определения ServerBrowserEntry.c:156
override bool OnDoubleClick(Widget w, int x, int y, int button)
Определения ServerBrowserEntry.c:140
void Select()
Определения CTEvent.c:123
void SetAcceleration(float mult)
Определения ServerBrowserEntry.c:560
Widget m_Root
Определения SizeToChild.c:9
void SetShard(int shard)
Определения ServerBrowserEntry.c:439
void SetFriends(string friends_text)
Определения ServerBrowserEntry.c:485
TextWidget m_ServerBattleye
Определения ServerBrowserEntry.c:21
void SetMods(array< string > mods)
Определения ServerBrowserEntry.c:590
void SetIP(string ip)
Определения ServerBrowserEntry.c:523
TextWidget m_ServerMods
Определения ServerBrowserEntry.c:25
void RefreshDLCIcon()
Определения ServerBrowserEntry.c:458
Widget m_DetailedInfo
Определения ServerBrowserEntry.c:29
int GetSteamQueryPort()
Определения ServerBrowserEntry.c:538
string GetServerID()
Определения ServerBrowserEntry.c:543
Widget m_Favorite
Определения ServerBrowserEntry.c:4
void ServerListFocus(bool focus)
Определения ServerBrowserEntry.c:212
void SetPopulationEx(GetServersResultRow serverInfo)
Определения ServerBrowserEntry.c:339
void Lighten(Widget w, Widget enterW, int x, int y)
Определения ServerBrowserEntry.c:786
TextWidget m_ServerShard
Определения ServerBrowserEntry.c:17
ImageWidget m_ServerModIcon
Определения ServerBrowserEntry.c:13
TextWidget m_ServerSlots
Определения ServerBrowserEntry.c:9
void Preview(Widget w, int x, int y)
Определения ServerBrowserEntry.c:743
ImageWidget m_ServerTime
Определения ServerBrowserEntry.c:11
void SetSlots(int slots)
Определения ServerBrowserEntry.c:368
TextWidget m_ServerCharacterAlive
Определения ServerBrowserEntry.c:18
TextWidget m_ServerMode
Определения ServerBrowserEntry.c:20
void SetCharacterAlive(string char_alive)
Определения ServerBrowserEntry.c:477
ImageWidget m_ServerLock
Определения ServerBrowserEntry.c:12
TextWidget m_ServerName
Определения ServerBrowserEntry.c:7
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Определения ServerBrowserEntry.c:196
override bool OnClick(Widget w, int x, int y, int button)
Определения ServerBrowserEntry.c:104
void SetBattleye(bool battleye)
Определения ServerBrowserEntry.c:509
Widget GetRoot()
Определения ServerBrowserEntry.c:93
void SetMapName(string mapName)
bool m_IsExpanded
Определения DropdownPrefab.c:15
void Darken(Widget w, int x, int y)
Определения ServerBrowserEntry.c:768
void SetPasswordLocked(bool locked)
Определения ServerBrowserEntry.c:334
bool SetExpand(bool expand)
Определения ServerBrowserEntry.c:647
TextWidget m_ServerFriends
Определения ServerBrowserEntry.c:19
ImageWidget m_ServerMaKIcon
Определения ServerBrowserEntry.c:14
TextWidget m_ServerAcceleration
Определения ServerBrowserEntry.c:23
bool IsFocusable(Widget w)
Определения CTKeyframe.c:156
void SetMouseAndKeyboard(bool is_mkenabled)
Определения ServerBrowserEntry.c:608
void ServerBrowserEntry(Widget parent, int index, ServerBrowserTab tab)
Определения ServerBrowserEntry.c:40
void SetIsOnline(bool isOnline)
Определения ServerBrowserEntry.c:613
override bool OnFocus(Widget w, int x, int y)
Определения ServerBrowserEntry.c:217
void FillInfo(GetServersResultRow server_info)
Определения ServerBrowserEntry.c:270
void SetServerMapName()
Определения ServerBrowserEntry.c:578
override bool OnMouseEnter(Widget w, int x, int y)
Определения ServerBrowserEntry.c:185
TextWidget m_ServerPing
Определения ServerBrowserEntry.c:10
GetServersResultRow GetServerData()
Определения ServerBrowserEntry.c:812
void SetPopulation(int population, int slots)
ButtonWidget m_ServerModsExpand
Определения ServerBrowserEntry.c:26
void SetName(string name)
string GetMapToRun()
Определения ServerBrowserEntry.c:548
int m_Index
Определения CTEvent.c:3
TextWidget m_ServerMap
Определения ServerBrowserEntry.c:24
ref GetServersResultRow m_ServerData
Определения ServerBrowserEntry.c:34
Deprecated.
Определения EnWidgets.c:657
static string GetMapDisplayName(string mapName)
Определения BiosLobbyService.c:93
Определения EnWidgets.c:220
Определения EnWidgets.c:190
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
class array< Class T > TStringArray
MouseState
Определения EnSystem.c:311
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'.
Определения EnString.c:396
proto native Widget GetFocus()
proto native void SetFocus(Widget w)
WorkspaceWidget Widget
Defined in code.
int ARGB(int a, int r, int g, int b)
Определения proto.c:322
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Определения proto.c:332