102 SCR_HorizontalScrollAnimationComponent scrollComp;
106 scrollComp = SCR_HorizontalScrollAnimationComponent.Cast(frameName.FindHandler(SCR_HorizontalScrollAnimationComponent));
115 scrollComp = SCR_HorizontalScrollAnimationComponent.Cast(frameScenario.FindHandler(SCR_HorizontalScrollAnimationComponent));
124 foreach (ServerBrowserEntryProperty pingState :
m_aPingStates)
126 int ping = pingState.m_sValue.ToInt();
134 super.HandlerAttached(w);
140 super.OnTooltipShow(tooltip);
146 string message =
content.GetDefaultMessage();
175 super.UpdateModularButtons();
181 bool result = super.OnFocus(w, x, y);
191 bool result = super.OnFocusLost(w, x, y);
219 protected void SetCellText(
string cellName,
string str,
string widgetName =
"Content")
238 ServerBrowserEntryProperty displayState;
250 foreach (ServerBrowserEntryProperty pingState :
m_aPingStates)
252 float pingFromStr = pingState.m_sValue.ToFloat();
255 if (ping < pingFromStr && pingFromStr < lastHighest)
257 displayState = pingState;
258 lastHighest = pingFromStr;
263 string strPing =
Math.Floor(ping).ToString();
270 strPing =
m_iPingLimit.ToString() +
"#ENF-ComboModifier";
293 queue =
string.Format(
"(%1)",
UIConstants.FormatUnitShortPlus(queueSize));
338 if (wrongVersion || restrictedUGC)
404 array<ref SCR_WorkshopItem> toUpdateMods =
m_ModsManager.GetRoomItemsToUpdate();
405 if (!toUpdateMods.IsEmpty())
511 return !versionMismatch && !unjoinable;
516class ServerBrowserEntryProperty
class RestAPIHelper< JsonApiStruct T > content
ArmaReforgerScripted GetGame()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ServerBrowserEntryComponent SCR_BrowserListMenuEntryComponent BaseContainerProps()] class ServerBrowserEntryProperty
bool GetUgcPrivilege()
Returns immediate value of UserPrivilege.USER_GEN_CONTENT.
static SCR_AddonManager GetInstance()
This component handles server entry and visiualization of server data.
const string TOOLTIP_JOIN
const string TOOLTIP_VERSION_MISMATCH
string GetDownloadSizeMessage()
void UpdateTooltipJoinDownloadSizeMessage()
void DisplayPing(int ping)
Widget m_wHorizontalContent
const string BUTTON_PASSWORD
override bool OnFocusLost(Widget w, int x, int y)
string m_sTooltipDownloadIcon
const string FRAME_SCENARIO
void SetCellText(string cellName, string str, string widgetName="Content")
const string ICON_WARNING
override void OnTooltipShow(SCR_ScriptedWidgetTooltip tooltip)
const string TEXT_WIDGET_QUEUE
const string LAYOUT_LOADING
const string LAYOUT_CONTENT
void OnServerDetailModsLoaded(Room room)
SCR_ModularButtonComponent m_JoinButton
SCR_ModularButtonComponent m_PasswordButton
SCR_RoomModsManager m_ModsManager
void EmptyVisuals(bool enable)
override void HandlerAttached(Widget w)
float m_fTooltipDownloadIconScale
const string ICON_UNJOINABLE
void DisplayServerProperties()
Create property images based on room setup.
bool m_bIsPatchSizeLoaded
void CheckRoomProperties()
Check properties and assign state of room.
bool GetIsEnabled(out bool versionMismatch, out bool unjoinable)
void OnJoinInteractionButtonClicked()
override bool OnFocus(Widget w, int x, int y)
override void UpdateModularButtons()
Widget m_wVersionWarningIcon
SCR_EServerEntryProperty m_iProperties
void SetRoomInfo(Room room)
void SetModsManager(SCR_RoomModsManager modsManager)
ref array< ref ServerBrowserEntryProperty > m_aPingStates
SCR_FieldOfViewSettings Attribute