9 [
Attribute(
"{D27D044A8145DC7C}UI/layouts/WidgetLibrary/Buttons/WLib_ButtonTextUnderlined.layout",
UIWidgets.ResourceNamePicker,
"Layout element used",
"layout")]
15 [
Attribute(
"false",
UIWidgets.CheckBox,
"On last item and pressing right arrow, it will go to the start of the list")]
24 super.HandlerAttached(w);
46 foreach (
string name : m_aElementNames)
49 LayoutSlot.SetPadding(button, padding, padding, padding, padding);
77 Widget w = element.GetRootWidget();
79 w.RemoveFromHierarchy();
88 super.OnFocus(w, x, y);
112 super.OnFocusLost(w, x, y);
147 if (element.IsToggled())
191 override bool SetCurrentItem(
int i,
bool playSound =
false,
bool animate =
false)
195 if (!super.SetCurrentItem(i,
true,
true))
203 if (i >= 0 && i < itemsCount)
216 super.OnMouseEnter(w, x, y);
218 super.OnMouseEnter(w, x, y);
264 while (foundItem < 0)
275 else if (i > lastIndex)
293 int GetItems(notnull array<SCR_ButtonBaseComponent> elements)
298 elements.Insert(element);
300 return elements.Count();
312 override int AddItem(
string item,
bool last =
false, Managed
data = null)
314 int i = super.AddItem(item, last,
data);
330 super.RemoveItem(item, last);
364 bool focused =
GetGame().GetWorkspace().GetFocusedWidget() ==
m_wRoot;
381 bool focused =
GetGame().GetWorkspace().GetFocusedWidget() ==
m_wRoot;
ArmaReforgerScripted GetGame()
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Get all prefabs that have the spawner data
void SetText(string text)
ref ScriptInvoker m_OnChanged
Base class for all final Reforger interactive elements.
bool IsChildWidget(Widget parent, Widget child)
SCR_FieldOfViewSettings Attribute