Enumerations | |
enum | RadialMenuControlType { MOUSE , CONTROLLER } |
void ActivateControllerTimeout | ( | bool | state | ) |
References m_IsControllerTimoutEnabled.
References Math::RAD2DEG.
Referenced by GetObjectByDegAngle(), Refresh(), ShowRadialSelector(), and Update().
|
static |
References m_Instance.
protected int GetItemCardsCount | ( | ) |
References m_ItemCardsContainer.
Referenced by Refresh().
protected float GetMouseDistance | ( | ) |
References vector::Distance(), GetMousePos(), GetParentCenter(), and Vector().
Referenced by Update().
protected float GetMousePointerAngle | ( | ) |
References Math::Atan2(), GetMousePos(), and GetParentCenter().
Referenced by Update().
References GetAngleInDegrees(), m_AngleRadOffset, and m_RadialItemCards.
Referenced by Update().
References m_Parent.
Referenced by GetMouseDistance(), and GetMousePointerAngle().
protected float GetParentMinSize | ( | ) |
References m_Parent, and Math::Min().
Referenced by GetRadius().
protected float GetRadius | ( | ) |
References Math::AbsFloat(), GetParentMinSize(), and m_RadiusOffset.
Referenced by Refresh(), and AreaDamageTriggerBase::SetExtents().
protected void HideRadialSelector | ( | ) |
References m_RadialSelector.
bool IsUsingController | ( | ) |
References m_ControlType.
Referenced by Update().
bool IsUsingMouse | ( | ) |
References m_ControlType.
Referenced by Update().
bool IsWidgetInitialized | ( | ) |
References m_WidgetInitialized.
Referenced by UpdataControllerInput().
References ScriptModule::CallFunction(), CGame::GameScript, GetGame(), m_RegisteredClass, and m_SelectedObject.
void OnWidgetScriptInit | ( | Widget | w | ) |
void RadialMenu | ( | ) |
References GetGame(), CGame::GetInput(), UAInputAPI::GetInputByID(), UAInput::GetPersistentWrapper(), GetUApi(), Input::IsEnabledMouseAndKeyboardEvenOnServer(), m_BackInputWrapper, m_ControlType, m_Instance, m_RadialItemCards, m_SelectInputWrapper, and m_UpdateTimer.
Referenced by UIScriptedMenu::CreateContent(), UIScriptedMenu::CreateGestureContent(), UIScriptedMenu::Init(), UIScriptedMenu::OnController(), and UIScriptedMenu::OnMouseEnter().
void Refresh | ( | bool | hide_selector = true | ) |
References Math::Cos(), WorkspaceWidget::CreateWidgets(), GetAngleInDegrees(), GetGame(), GetItemCardsCount(), GetRadius(), CGame::GetWorkspace(), HideRadialSelector(), m_AngleRadOffset, m_DelimiterLayout, m_ItemCardRadiusOffset, m_OffsetFromTop, m_Parent, m_RadialItemCards, Math::PI, RADIAL_DELIMITER_CONTAINER, RADIAL_ITEM_CARD_CONTAINER, and Math::Sin().
void RegisterClass | ( | UIScriptedMenu | class_name | ) |
References class_name, m_RegisteredClass, and m_UpdateTimer.
void SetControlType | ( | RadialMenuControlType | type | ) |
References ScriptModule::CallFunction(), CGame::GameScript, GetGame(), m_ControlType, and m_RegisteredClass.
void SetExecuteDistOffset | ( | float | execute_dist_offset | ) |
References m_ExecuteDistanceOffset.
void SetItemCardRadiusOffset | ( | float | item_card_radius_offset | ) |
References m_ItemCardRadiusOffset.
void SetOffsetFromTop | ( | float | offset_from_top | ) |
References m_OffsetFromTop.
void SetRadiusOffset | ( | float | radius_offset | ) |
References m_RadiusOffset.
void SetWidgetInitialized | ( | bool | state | ) |
References m_WidgetInitialized.
void SetWidgetProperties | ( | string | delimiter_layout | ) |
References m_DelimiterLayout.
protected void ShowRadialSelector | ( | Widget | selected_item | ) |
References GetAngleInDegrees(), m_RadialItemCards, m_RadialSelector, m_RadialSelectorDisabledColor, m_RadialSelectorImage, m_RadialSelectorOriginalColor, and m_RadialSelectorPointerImage.
Referenced by Update().
void UpdataControllerInput | ( | ) |
References ScriptModule::CallFunction(), CGame::GameScript, GetGame(), Input::GetGamepadThumbDirection(), CGame::GetInput(), UAIDWrapper::InputP(), UAInput::LocalPress(), m_BackInputWrapper, m_ControllerAngle, m_ControllerTilt, m_ControllerTimout, m_RegisteredClass, m_SelectedObject, m_SelectInputWrapper, NormalizeInvertAngle(), and Math::RAD2DEG.
Referenced by Update().
void ~RadialMenu | ( | ) |
protected const float CONTROLLER_TILT_TRESHOLD_EXECUTE = 1.0 |
protected float m_AngleRadOffset |
Referenced by GetObjectByDegAngle(), and Refresh().
private UAIDWrapper m_BackInputWrapper |
Referenced by UIScriptedMenu::Init(), RadialMenu(), UpdataControllerInput(), and UIScriptedMenu::Update().
protected float m_ControllerAngle |
Referenced by Controller(), UpdataControllerInput(), and Update().
protected float m_ControllerTilt |
Referenced by Controller(), UpdataControllerInput(), and Update().
protected int m_ControllerTimout |
Referenced by UpdataControllerInput(), and Update().
protected RadialMenuControlType m_ControlType |
Referenced by IsUsingController(), IsUsingMouse(), RadialMenu(), and SetControlType().
protected string m_DelimiterLayout |
Referenced by Refresh(), and SetWidgetProperties().
protected float m_ExecuteDistanceOffset |
Referenced by SetExecuteDistOffset().
|
static |
protected bool m_IsControllerTimoutEnabled = true |
Referenced by ActivateControllerTimeout(), and Update().
protected float m_ItemCardRadiusOffset |
Referenced by Refresh(), and SetItemCardRadiusOffset().
protected Widget m_ItemCardsContainer |
Referenced by GetItemCardsCount(), and OnWidgetScriptInit().
protected float m_OffsetFromTop |
Referenced by Refresh(), and SetOffsetFromTop().
enum RadialMenuControlType m_Parent |
Referenced by GetObjectByDegAngle(), RadialMenu(), Refresh(), and ShowRadialSelector().
protected Widget m_RadialSelector |
Referenced by HideRadialSelector(), OnWidgetScriptInit(), and ShowRadialSelector().
protected int m_RadialSelectorDisabledColor |
Referenced by OnWidgetScriptInit(), and ShowRadialSelector().
protected ImageWidget m_RadialSelectorImage |
Referenced by OnWidgetScriptInit(), and ShowRadialSelector().
protected int m_RadialSelectorOriginalColor |
Referenced by OnWidgetScriptInit(), and ShowRadialSelector().
protected ImageWidget m_RadialSelectorPointerImage |
Referenced by OnWidgetScriptInit(), and ShowRadialSelector().
protected float m_RadiusOffset |
Referenced by GetRadius(), and SetRadiusOffset().
ref UIScriptedMenu m_RegisteredClass |
Referenced by OnMouseButtonUp(), RegisterClass(), SetControlType(), UpdataControllerInput(), and Update().
protected Widget m_SelectedObject |
private UAIDWrapper m_SelectInputWrapper |
Referenced by RadialMenu(), and UpdataControllerInput().
protected ref Timer m_UpdateTimer |
protected bool m_WidgetInitialized |
Referenced by IsWidgetInitialized(), SetWidgetInitialized(), and Update().
|
static |
Referenced by Refresh().
|
static |
Referenced by OnWidgetScriptInit(), and Refresh().
|
static |
Referenced by OnWidgetScriptInit().
|
static |
Referenced by OnWidgetScriptInit().
|
static |
Referenced by OnWidgetScriptInit().