3 protected const int MOD_DISPLAY_COUNT_MAX = 3;
13 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/mods_menu/mods_menu_simple.layout", parent);
14 m_MoreButton =
m_Root.FindAnyWidget(
"ModMore");
15 m_MoreHighlight =
m_Root.FindAnyWidget(
"ModMoreOverlay");
30 m_MoreButton.Show(
data.Count() > MOD_DISPLAY_COUNT_MAX);
43 m_DetailMenu.Highlight(
mod);
48 if (
w == m_MoreButton)
50 if (m_DetailMenu.IsOpen())
61 if (
w == m_MoreButton)
63 m_MoreHighlight.Show(
true);
71 if (
enterW != m_MoreButton)
73 m_MoreHighlight.Show(
false);
81 if (
w == m_MoreButton)
83 m_MoreHighlight.Show(
true);
91 if (
w == m_MoreButton)
93 m_MoreHighlight.Show(
false);
proto native CGame GetGame()
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
proto void Insert(int index, string input)
Inserts a string into the n-th index, increasing the string length by the size of the input.