202 super.HandlerAttached(w);
225 super.HandlerDeattached(w);
231 super.OnDoubleClick(w, x, y, button);
243 super.OnFocus(w, x, y);
253 super.OnFocusLost(w, x, y);
278 #ifdef DEBUG_WORKSHOP
279 Print(
"Missing m_NameEdit!");
291 GetGame().GetWorkspace().SetFocusedWidget(
m_Widgets.m_EditNameComponent.GetEditBoxWidget());
293 m_Widgets.m_EditNameComponent.ActivateWriteMode();
318 m_Widgets.m_EditNameComponent.ClearInteractionState();
382 while (name || fallback > 0)
425 m_Widgets.m_SizeWarning.SetVisible(show);
431 m_Widgets.m_TxtAddonsCount.SetText(count.ToString());
455 if (
m_Widgets.m_SelectedHighlightButtonComponent)
456 m_Widgets.m_SelectedHighlightButtonComponent.SetToggled(selected);
466 m_Widgets.m_TxtAddonsCount.SetColor(color);
ArmaReforgerScripted GetGame()
InputManager GetInputManager()
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnLoad
ScriptInvoker GetEventOnFocusLost()
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnFocus
ScriptInvoker GetEventOnNameChanged()
void SetPreset(SCR_WorkshopAddonPreset preset)
override void HandlerAttached(Widget w)
SCR_WorkshopAddonPreset GetPreset()
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnNameEditLeave
void InvokeEventOnOverride()
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnButtonClick
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnFocusLost
void ShowWarning(bool show)
void InvokeEventOnDelete()
void ShowButtons(bool show)
void InvokeEventOnButtonClick()
ScriptInvoker GetEventOnDelete()
void InvokeEventOnNameChanged(string arg0)
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnDelete
void ShowEditWidget(bool edit)
ScriptInvoker GetEventOnFocus()
ref ScriptInvoker< SCR_AddonLinePresetComponent, string > Event_OnNameChanged
override bool OnFocusLost(Widget w, int x, int y)
void InvokeEventOnNameEditLeave()
void InvokeEventOnFocusLost()
void ToggleSelected()
Toggles the current selection.
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnOverride
ScriptInvoker GetEventOnButtonClick()
EInputDeviceType m_eInputDeviceType
const string STR_DEFAULT_NAME
ScriptInvoker GetEventOnNameEditStart()
ScriptInvoker GetEventOnNameEditLeave()
void SetSelected(bool selected)
string DefaultName()
Type default prefab name based on count of current addons.
void InvokeEventOnNameEditStart()
SCR_ModularButtonComponent m_ButtonComponent
ScriptInvoker GetEventOnOverride()
ref Color m_cDefaultColor
override bool OnFocus(Widget w, int x, int y)
void StartEditName()
Show editbox instead of name to edit name string.
SCR_WorkshopAddonPreset m_Preset
ref SCR_AddonLinePresetWidgets m_Widgets
ref ScriptInvoker< SCR_AddonLinePresetComponent > Event_OnNameEditStart
void InvokeEventOnFocus()
override void HandlerDeattached(Widget w)
ScriptInvoker GetEventOnLoad()
override bool OnDoubleClick(Widget w, int x, int y, int button)
void ShowModCount(int count)
ref Color m_cSelectedColor
void OnInputDeviceChange(EInputDeviceType oldDevice, EInputDeviceType newDevice)
SCR_WorkshopAddonManagerPresetStorage GetPresetStorage()
static SCR_AddonManager GetInstance()
Base class for all final Reforger interactive elements.
bool PresetExists(string name)
array< ref SCR_WorkshopAddonPreset > GetPresets()
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
SCR_FieldOfViewSettings Attribute