Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
radialmenu.c File Reference

Go to the source code of this file.

Enumerations

enum  RadialMenuControlType { MOUSE, CONTROLLER }
 

Functions

void RadialMenu ()
 
void ~RadialMenu ()
 
void OnWidgetScriptInit (Widget w)
 
void SetControlType (RadialMenuControlType type)
 
bool IsUsingMouse ()
 
bool IsUsingController ()
 
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)
 
protected void ShowRadialSelector (Widget selected_item)
 
protected void HideRadialSelector ()
 
protected int GetItemCardsCount ()
 
protected float GetRadius ()
 
protected void GetParentCenter (out float center_x, out float center_y)
 
protected float GetParentMinSize ()
 
protected Widget GetObjectByDegAngle (float deg_angle)
 
protected float GetMousePointerAngle ()
 
protected float GetMouseDistance ()
 
protected float GetAngleInDegrees (float rad_angle)
 
protected void Update ()
 
float NormalizeInvertAngle (float angle)
 
void UpdataControllerInput ()
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 

Variables

enum RadialMenuControlType m_Parent
 
protected Widget m_ItemCardsContainer
 
protected Widget m_RadialSelector
 
protected ImageWidget m_RadialSelectorImage
 
protected ImageWidget m_RadialSelectorPointerImage
 
protected int m_RadialSelectorOriginalColor
 
protected int m_RadialSelectorDisabledColor
 
protected Widget m_SelectedObject
 
protected ref map< Widget, floatm_RadialItemCards
 
protected float m_AngleRadOffset
 
protected ref Timer m_UpdateTimer
 
protected RadialMenuControlType m_ControlType
 
private UAIDWrapper m_SelectInputWrapper
 
private UAIDWrapper m_BackInputWrapper
 
protected float m_ControllerAngle
 
protected float m_ControllerTilt
 
protected int m_ControllerTimout
 
protected bool m_IsControllerTimoutEnabled = true
 
const protected float CONTROLLER_DESELECT_TIMEOUT = 1000
 
const protected float CONTROLLER_TILT_TRESHOLD_SELECT = 0.8
 
const protected float CONTROLLER_TILT_TRESHOLD_EXECUTE = 1.0
 
protected bool m_WidgetInitialized
 
const protected float MOUSE_SAFE_ZONE_RADIUS = 120
 
protected float m_RadiusOffset
 
protected float m_ExecuteDistanceOffset
 
protected float m_OffsetFromTop
 
protected float m_ItemCardRadiusOffset
 
protected string m_DelimiterLayout
 
ref UIScriptedMenu m_RegisteredClass
 
int last_time = -1
 

Enumeration Type Documentation

◆ RadialMenuControlType

Enumerator
MOUSE 
CONTROLLER 

Definition at line 1 of file radialmenu.c.

Function Documentation

◆ ActivateControllerTimeout()

void ActivateControllerTimeout ( bool  state)

Definition at line 214 of file radialmenu.c.

◆ GetAngleInDegrees()

protected float GetAngleInDegrees ( float  rad_angle)

Definition at line 498 of file radialmenu.c.

◆ GetItemCardsCount()

protected int GetItemCardsCount ( )

Definition at line 357 of file radialmenu.c.

◆ GetMouseDistance()

protected float GetMouseDistance ( )

Definition at line 482 of file radialmenu.c.

◆ GetMousePointerAngle()

protected float GetMousePointerAngle ( )

Definition at line 464 of file radialmenu.c.

◆ GetObjectByDegAngle()

protected Widget GetObjectByDegAngle ( float  deg_angle)

Definition at line 421 of file radialmenu.c.

◆ GetParentCenter()

protected void GetParentCenter ( out float  center_x,
out float  center_y 
)

Definition at line 386 of file radialmenu.c.

◆ GetParentMinSize()

protected float GetParentMinSize ( )

Definition at line 403 of file radialmenu.c.

◆ GetRadius()

protected float GetRadius ( )

Definition at line 372 of file radialmenu.c.

◆ HideRadialSelector()

protected void HideRadialSelector ( )

Definition at line 346 of file radialmenu.c.

◆ IsUsingController()

bool IsUsingController ( )

Definition at line 158 of file radialmenu.c.

◆ IsUsingMouse()

bool IsUsingMouse ( )

Definition at line 148 of file radialmenu.c.

◆ IsWidgetInitialized()

bool IsWidgetInitialized ( )

Definition at line 173 of file radialmenu.c.

◆ NormalizeInvertAngle()

float NormalizeInvertAngle ( float  angle)

Definition at line 627 of file radialmenu.c.

◆ OnMouseButtonUp()

override bool OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)

Definition at line 668 of file radialmenu.c.

◆ OnWidgetScriptInit()

void OnWidgetScriptInit ( Widget  w)

Definition at line 123 of file radialmenu.c.

◆ RadialMenu()

void RadialMenu ( )

Definition at line 84 of file radialmenu.c.

◆ Refresh()

void Refresh ( bool  hide_selector = true)

Definition at line 228 of file radialmenu.c.

◆ RegisterClass()

void RegisterClass ( UIScriptedMenu  class_name)

Definition at line 181 of file radialmenu.c.

◆ SetControlType()

void SetControlType ( RadialMenuControlType  type)

Definition at line 139 of file radialmenu.c.

◆ SetExecuteDistOffset()

void SetExecuteDistOffset ( float  execute_dist_offset)

Definition at line 196 of file radialmenu.c.

◆ SetItemCardRadiusOffset()

void SetItemCardRadiusOffset ( float  item_card_radius_offset)

Definition at line 208 of file radialmenu.c.

◆ SetOffsetFromTop()

void SetOffsetFromTop ( float  offset_from_top)

Definition at line 202 of file radialmenu.c.

◆ SetRadiusOffset()

void SetRadiusOffset ( float  radius_offset)

Definition at line 190 of file radialmenu.c.

◆ SetWidgetInitialized()

void SetWidgetInitialized ( bool  state)

Definition at line 168 of file radialmenu.c.

◆ SetWidgetProperties()

void SetWidgetProperties ( string  delimiter_layout)

Definition at line 219 of file radialmenu.c.

◆ ShowRadialSelector()

protected void ShowRadialSelector ( Widget  selected_item)

Definition at line 315 of file radialmenu.c.

◆ UpdataControllerInput()

void UpdataControllerInput ( )

Definition at line 640 of file radialmenu.c.

◆ ~RadialMenu()

void ~RadialMenu ( )

Definition at line 113 of file radialmenu.c.

Variable Documentation

◆ CONTROLLER_DESELECT_TIMEOUT

const protected float CONTROLLER_DESELECT_TIMEOUT = 1000

Definition at line 39 of file radialmenu.c.

◆ CONTROLLER_TILT_TRESHOLD_EXECUTE

const protected float CONTROLLER_TILT_TRESHOLD_EXECUTE = 1.0

Definition at line 41 of file radialmenu.c.

◆ CONTROLLER_TILT_TRESHOLD_SELECT

const protected float CONTROLLER_TILT_TRESHOLD_SELECT = 0.8

Definition at line 40 of file radialmenu.c.

◆ last_time

int last_time = -1

Definition at line 517 of file radialmenu.c.

◆ m_AngleRadOffset

protected float m_AngleRadOffset

Definition at line 19 of file radialmenu.c.

◆ m_BackInputWrapper

private UAIDWrapper m_BackInputWrapper

Definition at line 32 of file radialmenu.c.

◆ m_ControllerAngle

protected float m_ControllerAngle

Definition at line 33 of file radialmenu.c.

◆ m_ControllerTilt

protected float m_ControllerTilt

Definition at line 34 of file radialmenu.c.

◆ m_ControllerTimout

protected int m_ControllerTimout

Definition at line 37 of file radialmenu.c.

◆ m_ControlType

protected RadialMenuControlType m_ControlType

Definition at line 30 of file radialmenu.c.

◆ m_DelimiterLayout

protected string m_DelimiterLayout

Definition at line 52 of file radialmenu.c.

◆ m_ExecuteDistanceOffset

protected float m_ExecuteDistanceOffset

Definition at line 49 of file radialmenu.c.

◆ m_IsControllerTimoutEnabled

protected bool m_IsControllerTimoutEnabled = true

Definition at line 38 of file radialmenu.c.

◆ m_ItemCardRadiusOffset

protected float m_ItemCardRadiusOffset

Definition at line 51 of file radialmenu.c.

◆ m_ItemCardsContainer

protected Widget m_ItemCardsContainer

Definition at line 10 of file radialmenu.c.

◆ m_OffsetFromTop

protected float m_OffsetFromTop

Definition at line 50 of file radialmenu.c.

◆ m_Parent

enum RadialMenuControlType m_Parent

◆ m_RadialItemCards

protected ref map<Widget, float> m_RadialItemCards

Definition at line 17 of file radialmenu.c.

◆ m_RadialSelector

protected Widget m_RadialSelector

Definition at line 11 of file radialmenu.c.

◆ m_RadialSelectorDisabledColor

protected int m_RadialSelectorDisabledColor

Definition at line 15 of file radialmenu.c.

◆ m_RadialSelectorImage

protected ImageWidget m_RadialSelectorImage

Definition at line 12 of file radialmenu.c.

◆ m_RadialSelectorOriginalColor

protected int m_RadialSelectorOriginalColor

Definition at line 14 of file radialmenu.c.

◆ m_RadialSelectorPointerImage

protected ImageWidget m_RadialSelectorPointerImage

Definition at line 13 of file radialmenu.c.

◆ m_RadiusOffset

protected float m_RadiusOffset

Definition at line 48 of file radialmenu.c.

◆ m_RegisteredClass

ref UIScriptedMenu m_RegisteredClass

Definition at line 54 of file radialmenu.c.

◆ m_SelectedObject

protected Widget m_SelectedObject

Definition at line 16 of file radialmenu.c.

◆ m_SelectInputWrapper

private UAIDWrapper m_SelectInputWrapper

Definition at line 31 of file radialmenu.c.

◆ m_UpdateTimer

protected ref Timer m_UpdateTimer

Definition at line 20 of file radialmenu.c.

◆ m_WidgetInitialized

protected bool m_WidgetInitialized

Definition at line 44 of file radialmenu.c.

◆ MOUSE_SAFE_ZONE_RADIUS

const protected float MOUSE_SAFE_ZONE_RADIUS = 120

Definition at line 45 of file radialmenu.c.