DIFF

class WidgetSource

Widget Managed

Part of Widget UI system

All members, including inherited

Constructors 2

proto void ~Widget()
proto private void Widget()

Methods 50

proto static void SetLV(float lv)

Set global LV of widgets, value between [-15, 0], default: 0, lower value is less bright

proto static void SetTextLV(float lv)

Set global LV of the text in widgets, value between [-15, 0], default: 0, lower value is less bright

proto static void SetObjectLighting(float lighting)

Set global lighting of objects in widgets, value between [0, 1], default: 1, lower value is less bright

proto native void SetName(string name)
Referenced by TabberUI.AddTab()
proto native owned string GetTypeName()
proto native WidgetType GetTypeID()
proto native void Show(bool show, bool immedUpdate = true)
proto native bool IsControlClass()
proto native owned string GetStyleName()
proto native void SetScreenSize(float w, float h, bool immedUpdate = true)
proto native vector GetRotation()

returns rotation of widget in order roll, pitch, yaw

proto void GetScreenSize(out float width, out float height)
proto native void SetTransform(vector mat[4], bool immedUpdate = true)
proto native Widget GetParent()
Referenced by ActionTargetsCursor.BuildFloatingCursor(), ActionTargetsCursor.SetItemHealth(), ActionTargetsCursor.SetItemQuantity()
Show 47 more, ActionTargetsCursor.TransformToScreenPos(), AttachmentCategoriesContainer.ShowInSlots(), AttachmentCategoriesRow.RefreshSlot(), Attachments.InitAttachmentGrid(), ClosableHeader.OnDragHeader(), ColorManager.SetColor(), ContextMenu.OnMouseLeave(), ControlsXboxNew.UpdateTabContent(), GameplayEffectsDataBleeding.UpdateVisibility(), GameplayEffectWidgets.UpdateVisibility(), HandsContainer.HandsContainer(), HandsPreview.CreateNewIcon(), HudDebugWinHealth.OnClick(), Icon.DraggingOver(), Icon.DraggingOverSwap(), Icon.DropReceivedFromMain(), Icon.Swap(), IngameHud.SetCursorIconOffset(), IngameHud.SetCursorIconScale(), IngameHud.SetCursorIconSize(), ItemActionsWidget.SetItemHealth(), ItemActionsWidget.SetItemQuantity(), ItemActionsWidget.SetWeaponQuantity(), ItemManager.CalculateTooltipSlotPosition(), ItemManager.SetTemperature(), OptionSelector.OptionSelector(), OptionSelectorBase.OnFocus(), OptionSelectorBase.OnMouseEnter(), OptionSelectorBase.OnMouseLeave(), OptionSelectorEditbox.OnMouseEnter(), OptionSelectorEditbox.OnMouseLeave(), OptionSelectorEditbox.OptionSelectorEditbox(), OptionSelectorLevelMarker.OptionSelectorLevelMarker(), OptionSelectorSlider.OptionSelectorSlider(), OptionSelectorSliderSetup.OnMouseEnter(), OptionSelectorSliderSetup.OnMouseLeave(), PlayerListScriptedWidget.ScrollToEntry(), RightGap.OnUpdate(), ScriptConsole.GetWidgetCombinedHash(), ScriptConsoleConfigTab.~ScriptConsoleConfigTab(), ServerBrowserFilterContainer.ServerBrowserFilterContainer(), ServerBrowserTab.GetNextEntry(), ServerBrowserTab.GetPrevEntry(), ServerBrowserTab.ScrollToEntry(), SizeToParent.OnWidgetScriptInit(), Tabber.OnClick(), and ZombieContainer.ExpandCollapseContainer()
proto native void RemoveChild(Widget child)
Referenced by MapMenu.Update()
proto native Widget FindAnyWidget(string pathname)

find Widget by name e.g. FindWidget("widget1")

proto native Widget FindAnyWidgetById(int user_id)

find Widget by userID