DIFF

class Widget

Widget › Managed

Part of Widget UI system

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 SetPos(float x, float y, bool immedUpdate = true)
Referenced by ActionTargetsCursor.BuildFixedCursor(), ActionTargetsCursor.BuildFloatingCursor(), AutoHeightSpacer.Update()
Show 47 more, BleedingIndicatorDropData.StartDrop(), BleedingIndicatorDropData.UpdateTransform(), CharacterCreationMenu.SetTooltipTexts(), Chat.AddInternal(), ContextMenu.Show(), CrossHairSelector.FloatingCrossHair(), CTObjectFollower.UpdatePos(), GameplayEffectsMetaDataEyeVeins.SetIrritation(), GameplayEffectsMetaDataSquinting.SetEyelidAmount(), HitDirectionEffectBase.SetIndicatorPositon(), HorizontalSpacer.UpdateChild(), HorizontalSpacerWithFixedAspect.UpdateLayout(), HudDebugWinCharAgents.OnInit(), HudDebugWinCharAgents.Update(), HudDebugWinCharStats.OnInit(), HudDebugWinCharStats.Update(), HudDebugWinHealth.HudDebugWinHealth(), HudDebugWinHealth.Update(), Icon.CheckIsWeapon(), Icon.SetPosEx(), IngameHud.OnResizeScreen(), IngameHud.SetCursorIconOffset(), IngameHud.ShowPlayerTag(), InspectMenuNew.UpdateScale(), InventoryGrid.OnDrag(), ItemManager.PrepareTooltip(), ItemManager.ShowTooltipSlot(), LeftArea.UpdateSelectionIcons(), MapMenu.Update(), MissionGameplay.MoveHudForInventory(), ModsMenuTooltip.HideTooltip(), ModsMenuTooltip.ShowTooltip(), NotificationUI.UpdateOffset(), PluginItemDiagnostic.OnInit(), PluginItemDiagnostic.OnUpdate(), PluginRemotePlayerDebugClient.UpdateWidgetsStats(), PluginUniversalTemperatureSourceClient.UpdateStatWidgets(), ProjectedCrosshair.Update(), RadialMenu.Refresh(), RightArea.MoveUpDownIcons(), ScriptConsole.DisplayHint(), ScriptConsoleToolTipEventHandler.DisplayHint(), ScrollBarContainer.UpdateScroller(), SlotsIconBase.CheckIsWeapon(), TabberUI.AlignTabbers(), UIPropertyAttachment.SetPos(), and VerticalSpacer.UpdateChild()
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 native void SetAlpha(float alpha)
proto void GetScreenPos(out float x, out float y)
Referenced by AnimatedGridSpacer.AnimatedGridSpacer(), AnimatedGridSpacer.Update(), AutoHeightSpacer.Update()
Show 40 more, BannerHandlerBase.OnUpdate(), CargoContainer.GetFocusedContainerYScreenPos(), CharacterCreationMenu.SetTooltipTexts(), ClosableContainer.GetFocusedContainerYScreenPos(), Container.GetFocusedContainerYScreenPos(), Container.ScrollToActiveContainer(), ControlsXbox.DrawConnectingLines(), GameplayEffectsDataBleeding.GenerateSequenceRandomPosition(), HandsContainer.ScrollToActiveContainer(), HandsContainer.SetActive(), HandsContainer.SetLastActive(), HudDebugWinBase.OnDraggingStart(), HudDebugWinCharAgents.OnDraggingEnd(), HudDebugWinCharStats.OnDraggingEnd(), HudDebugWinHealth.OnDraggingEnd(), Icon.DraggingOver(), Icon.DropReceivedFromMain(), Icon.SetActive(), ItemManager.CalculateTooltipSlotPosition(), ItemManager.PrepareTooltip(), ItemManager.UpdateTooltipSlotPosition(), LeftArea.GetCurrentContainerBottomY(), LeftArea.GetCurrentContainerTopY(), MapMenu.Init(), NotificationUI.UpdateOffset(), PlayerContainer.GetMainContainerBottomPos(), PlayerContainer.GetMainContainerTopPos(), PlayerListScriptedWidget.ScrollToEntry(), PluginItemDiagnostic.OnDraggingEnd(), PluginItemDiagnostic.OnDraggingStart(), RadialMenu.GetParentCenter(), RightArea.GetCurrentContainerBottomY(), RightArea.GetCurrentContainerTopY(), ServerBrowserTab.ScrollToEntry(), SlotsContainer.UpdateIcon(), SlotsIcon.MouseEnterGhostSlot(), SlotsIconBase.SetActive(), TabberUI.AlignTabbers(), TutorialsMenu.DrawConnectingLines(), and VicinitySlotsContainer.PrepareOwnedTooltipAfterItemTransfer()
proto void GetScreenSize(out float width, out float height)
proto native void SetTransform(vector mat[4], bool immedUpdate = true)
proto native Widget GetChildren()
Referenced by ActionInfoGridBase.InitInfoGrid(), AnimatedGridSpacer.SetColumWidth(), AutoHeightSpacer.Update()
Show 45 more, ContextMenu.Clear(), ControlsXbox.DrawConnectingLines(), ControlsXboxNew.ComposeData(), ControlsXboxNew.DrawConnectingLines(), ControlsXboxNew.FindAllChildrenByID(), ControlsXboxNew.FindChildByID(), CrossHairSelector.Init(), DropdownPrefab.RefreshContent(), EmbededButtonScript.OnWidgetScriptInit(), GameplayEffectsDataBleeding.BuildPositioningData(), GameplayEffectWidgets.InitWidgetSet(), GesturesMenu.DeleteGestureItems(), HitDirectionEffectBase.Init(), HorizontalSpacer.UpdateChild(), HorizontalSpacerWithFixedAspect.UpdateLayout(), Icon.CheckIsWeapon(), ItemsCounter.OnWidgetScriptInit(), MissionBase.DumpCurrentUILayout(), MissionBase.DumpWidget(), PlayerListScriptedWidget.FocusFirst(), PlayerListScriptedWidget.ScrollToEntry(), PluginDrawCheckerboard.CreateWidgetOverlay(), RadialMenu.GetItemCardsCount(), RadialMenu.Refresh(), RadialProgressBar.Update(), RadialProgressBar.UpdateChild(), RadialQuickbarMenu.DeleteItems(), ScriptConsole.IsChildOfWidget(), ServerBrowserTab.GetNextEntry(), ServerBrowserTab.GetPrevEntry(), ServerBrowserTab.ScrollToEntry(), SpacerBase.GetChildIndex(), SpacerBase.OnWidgetScriptInit(), SpacerBase.UpdateLayout(), Tabber.OnClick(), Tabber.SelectTab(), TabberUI.AlignTabbers(), TabberUI.Init(), TutorialKeybinds.ClearBindingPanels(), UndergroundTriggerEditorMenu.OnBreadcrumbEditModeChanged(), UndergroundTriggerEditorMenu.ReloadDataFromFile(), UndergroundTriggerEditorMenu.UpdateBreadcrumbsList(), VideoPlayer.CreateVideoLoadingEntry(), VideoPlayer.ToggleVideoSelection(), and WeaponLiftDiag.DrawDiag()
proto native Widget FindAnyWidget(string pathname)

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