class ButtonWidget
ButtonWidget › UIWidget › Widget › Managed
Part of Widget UI system
Methods 9
proto native bool GetState()proto native void SetText(string text)Referenced by ContextMenu.AddEx(), ContextMenu.Remove(), EmbededButtonScript.OnWidgetScriptInit()
Show 21 more
, HudDebugWinCharModifiers.AddModifier(), InGameMenuXbox.Init(), KeybindingElement.OnMouseButtonUp(), KeybindingElement.Reload(), KeybindingElement.SetElementTitle(), KeybindingElement.StartEnteringAlternateKeybind(), KeybindingElement.StartEnteringKeybind(), KeybindingElementNew.OnMouseButtonUp(), KeybindingElementNew.Reload(), KeybindingElementNew.SetElementTitle(), KeybindingElementNew.StartEnteringAlternateKeybind(), KeybindingElementNew.StartEnteringKeybind(), SceneEditorMenu.OnClick(), ScriptConsoleItemsTab.SetTextSpawnButton(), ServerBrowserTabPc.ButtonCancelToRefresh(), ServerBrowserTabPc.ButtonRefreshToCancel(), ServerBrowserTabPc.UpdatePageButtons(), UndergroundTriggerEditorMenu.ShowBreadcrumbParamsSection(), UndergroundTriggerEditorMenu.UpdateBreadcrumbDirtyIndicator(), UndergroundTriggerEditorMenu.UpdateTriggersDirtyIndicator(), and VideoPlayer.CreateVideoLoadingEntry()proto void GetText(out string text)Referenced by MainMenuButtonEffect.Update()
proto native void SetTextHorizontalAlignment(int align)align- ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
proto native void SetTextVerticalAlignment(int align)align- ALIGN_CENTER, ALIGN_TOP, ALIGN_BOTTOM
proto native float GetTextProportion()Get text proportion - ratio between button height and button text height in interval <0,1>
proto native void SetTextProportion(float val)Set text proportion - ratio between button height and button text height in interval <0,1>