class RadialMenuSource
RadialMenu › ScriptedWidgetEventHandler › Managed
All members, including inherited
Constructors 2
void RadialMenu()void ~RadialMenu()Constants 9
static const string RADIAL_SELECTOR = "RadialSelector"static const string RADIAL_SELECTOR_IMAGE = "SelectorImage"static const string RADIAL_SELECTOR_POINTER = "SelectorPointer"static const string RADIAL_ITEM_CARD_CONTAINER = "RadialItemCardContainer"Show 1 more
, RadialQuickbarMenu.Init()protected const float CONTROLLER_DESELECT_TIMEOUT = 1000timeout [ms] after which selection is automatically deselect when controller is not active
protected const float CONTROLLER_TILT_TRESHOLD_SELECT = 0.8tilt value (0.0-1.0) for controller sticks after which the selection will be selected
protected const float CONTROLLER_TILT_TRESHOLD_EXECUTE = 1.0tilt value (0.0-1.0) for controller sticks after which the selection will be executed
protected const float MOUSE_SAFE_ZONE_RADIUS = 120Radius [px] of safe zone where every previous selection is deselected
Members 27
protected Widget m_Parentprotected Widget m_ItemCardsContainerprotected Widget m_RadialSelectorprotected ImageWidget m_RadialSelectorImageprotected ImageWidget m_RadialSelectorPointerImageprotected int m_RadialSelectorOriginalColorprotected int m_RadialSelectorDisabledColorprotected Widget m_SelectedObjectprotected float m_AngleRadOffsetprotected ref Timer m_UpdateTimerprotected RadialMenuControlType m_ControlTypeprivate UAIDWrapper m_SelectInputWrapperprivate UAIDWrapper m_BackInputWrapperprotected float m_ControllerAngleprotected float m_ControllerTiltprotected int m_ControllerTimoutprotected bool m_IsControllerTimoutEnabled = trueenables/disables controller deselect timeout reset
protected bool m_WidgetInitializedprotected float m_RadiusOffsetRadius [% of the main container size]
protected float m_ExecuteDistanceOffsetDistance offset [% of the main container size] after which the selection will be automatically executed
protected float m_OffsetFromTopfirst item in the menu won't be directly on top but offset by a rad angle value (clock-wise)
protected float m_ItemCardRadiusOffsetRadius [% of the main container size] for item cards
protected string m_DelimiterLayoutlayout file name with path
ref UIScriptedMenu m_RegisteredClassShow 2 more
, UpdataControllerInput(), and Update()static ref RadialMenu m_InstanceMethods 29
static RadialMenu GetInstance()void OnWidgetScriptInit(Widget w)Show 14 more
, Widget.FindAnyWidget(), Widget.GetColor(), Widget.SetHandler(), m_ItemCardsContainer, m_Parent, m_RadialSelector, m_RadialSelectorDisabledColor, m_RadialSelectorImage, m_RadialSelectorOriginalColor, m_RadialSelectorPointerImage, RADIAL_ITEM_CARD_CONTAINER, RADIAL_SELECTOR, RADIAL_SELECTOR_IMAGE, and RADIAL_SELECTOR_POINTERvoid SetControlType(RadialMenuControlType type)Show 1 more
, m_RegisteredClassShow 1 more
, RadialQuickbarMenu.OnMouseEnter()void SetWidgetInitialized(bool state)bool IsWidgetInitialized()void RegisterClass(UIScriptedMenu class_name)void SetRadiusOffset(float radius_offset)void SetExecuteDistOffset(float execute_dist_offset)void SetOffsetFromTop(float offset_from_top)void SetItemCardRadiusOffset(float item_card_radius_offset)void ActivateControllerTimeout(bool state)void SetWidgetProperties(string delimiter_layout)void Refresh(bool hide_selector = true)Show 24 more
, Widget.FindAnyWidget(), GetAngleInDegrees(), Widget.GetChildren(), Widget.GetChildren(), GetItemCardsCount(), GetRadius(), Widget.GetSibling(), Widget.GetSibling(), CGame.GetWorkspace(), HideRadialSelector(), map.Insert(), Widget.SetPos(), Widget.SetPos(), Widget.SetRotation(), Math.Sin(), m_AngleRadOffset, m_DelimiterLayout, m_ItemCardRadiusOffset, m_OffsetFromTop, m_Parent, m_RadialItemCards, Math.PI, RADIAL_DELIMITER_CONTAINER, and RADIAL_ITEM_CARD_CONTAINERprotected void ShowRadialSelector(Widget selected_item)protected void HideRadialSelector()protected float GetParentMinSize()Show 3 more
, map.GetKey(), m_AngleRadOffset, and m_RadialItemCardsprotected void Update()Show 23 more
, GetMousePointerAngle(), GetObjectByDegAngle(), CGame.GetTime(), HideRadialSelector(), IsUsingController(), IsUsingMouse(), UIMenuPanel.IsVisible(), ShowRadialSelector(), Timer.Stop(), UpdataControllerInput(), CONTROLLER_DESELECT_TIMEOUT, CONTROLLER_TILT_TRESHOLD_SELECT, CGame.GameScript, last_time, m_ControllerAngle, m_ControllerTilt, m_ControllerTimout, m_IsControllerTimoutEnabled, m_RegisteredClass, m_SelectedObject, m_UpdateTimer, m_WidgetInitialized, and MOUSE_SAFE_ZONE_RADIUSvoid UpdataControllerInput()