DayZ 1.24
Loading...
Searching...
No Matches
GesturesMenu.c File Reference

Go to the source code of this file.

Classes

class  UIScriptedMenu
 

Enumerations

enum  GestureCategories {
  CATEGORIES , CATEGORY_1 , CATEGORY_2 , CATEGORY_3 ,
  CATEGORY_4 , CATEGORY_5 , CONSOLE_GESTURES
}
 

Functions

void GestureMenuItem (int id, string name, GestureCategories category)
 
string GetName ()
 Gets the name which is set for the ParticleManager, default is "ParticleSourceManager".
 
string GetBoundButtonText ()
 
int GetID ()
 
GestureCategories GetCategory ()
 
Widget GetRadialItemCard ()
 
void SetRadialItemCard (Widget widget)
 
void SetCanPerformEmote (bool state)
 
bool GetCanPerformEmote ()
 

Variables

enum GestureCategories m_ID
 
string m_Name
 
GestureCategories m_Category
 
EmoteBase m_EmoteClass
 
bool m_CanPerformEmote
 
Widget m_RadialMenuSelector
 
Widget m_RadialMenuItemCard
 

Enumeration Type Documentation

◆ GestureCategories

Enumerator
CATEGORIES 
CATEGORY_1 
CATEGORY_2 
CATEGORY_3 
CATEGORY_4 
CATEGORY_5 
CONSOLE_GESTURES 

Definition at line 1 of file GesturesMenu.c.

2{
3 CATEGORIES, //special category selection
10}
@ CATEGORY_5
Definition GesturesMenu.c:8
@ CATEGORIES
Definition GesturesMenu.c:3
@ CATEGORY_4
Definition GesturesMenu.c:7
@ CATEGORY_1
Definition GesturesMenu.c:4
@ CONSOLE_GESTURES
Definition GesturesMenu.c:9
@ CATEGORY_2
Definition GesturesMenu.c:5
@ CATEGORY_3
Definition GesturesMenu.c:6

Function Documentation

◆ GestureMenuItem()

void GestureMenuItem ( int id,
string name,
GestureCategories category )
protected

Definition at line 23 of file GesturesMenu.c.

24 {
25 m_ID = id;
26 m_Name = name;
28 m_CanPerformEmote = true;
29
32 m_EmoteClass = player.GetEmoteManager().GetNameEmoteMap().Get(id);
33 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
EmoteBase m_EmoteClass
enum GestureCategories m_ID
GestureCategories
Definition GesturesMenu.c:2
string m_Name
bool m_CanPerformEmote
GestureCategories m_Category
PlayerBase GetPlayer()
Super root of all classes in Enforce script.
Definition EnScript.c:11
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), GetGame(), GetPlayer(), m_CanPerformEmote, m_Category, m_EmoteClass, m_ID, m_Name, and name.

Referenced by UIScriptedMenu::CreateGestureContent(), UIScriptedMenu::ExecuteSelectedCategory(), UIScriptedMenu::ExecuteSelectedItem(), UIScriptedMenu::GetGestureItems(), UIScriptedMenu::MarkSelected(), and UIScriptedMenu::UnmarkSelected().

◆ GetBoundButtonText()

string GetBoundButtonText ( )
protected

Definition at line 40 of file GesturesMenu.c.

41 {
42 string ret = "";
43 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() && m_EmoteClass && m_EmoteClass.GetInputActionName() != "")
44 {
46
47 if (button_map && button_map.Count() > 0)
48 {
50 for (int j = 0; j < button_map.Count(); j++)
51 {
52 if (j > 0)
53 ret += "; ";
54
55 buttons = button_map.GetElement(j);
56 for (int i = 0; i < buttons.Count(); i++)
57 {
58 if (i > 0)
59 ret += " + ";
60 ret += buttons[i];
61 }
62 }
63
64 }
65 }
66 return ret;
67 }
ActionInput GetInput()
Definition ActionBase.c:989
string GetInputActionName()
Definition EmoteBase.c:70
static map< int, ref TStringArray > GetComboButtonNamesFromInput(string pInputName, int pInputDeviceType)
returns a map of button names, combo or not
Definition InputUtils.c:31
EInputDeviceType
Definition input.c:3

References InputUtils::GetComboButtonNamesFromInput(), GetGame(), GetInput(), EmoteBase::GetInputActionName(), and m_EmoteClass.

◆ GetCanPerformEmote()

bool GetCanPerformEmote ( )
protected

Definition at line 94 of file GesturesMenu.c.

95 {
96 return m_CanPerformEmote;
97 }

References m_CanPerformEmote.

◆ GetCategory()

GestureCategories GetCategory ( )
protected

Definition at line 74 of file GesturesMenu.c.

75 {
76 return m_Category;
77 }

References m_Category.

◆ GetID()

int GetID ( )
protected

Definition at line 69 of file GesturesMenu.c.

70 {
71 return m_ID;
72 }

References m_ID.

◆ GetRadialItemCard()

Widget GetRadialItemCard ( )
protected

Definition at line 79 of file GesturesMenu.c.

80 {
82 }
Widget m_RadialMenuItemCard

References m_RadialMenuItemCard.

◆ SetCanPerformEmote()

void SetCanPerformEmote ( bool state)
protected

Definition at line 89 of file GesturesMenu.c.

90 {
92 }

References m_CanPerformEmote.

◆ SetRadialItemCard()

void SetRadialItemCard ( Widget widget)
protected

Definition at line 84 of file GesturesMenu.c.

85 {
87 }

References m_RadialMenuItemCard.

Variable Documentation

◆ m_CanPerformEmote

bool m_CanPerformEmote
protected

Definition at line 18 of file GesturesMenu.c.

Referenced by GestureMenuItem(), GetCanPerformEmote(), and SetCanPerformEmote().

◆ m_Category

GestureCategories m_Category
protected

Definition at line 16 of file GesturesMenu.c.

◆ m_EmoteClass

EmoteBase m_EmoteClass
protected

Definition at line 17 of file GesturesMenu.c.

Referenced by GestureMenuItem(), and GetBoundButtonText().

◆ m_ID

◆ m_Name

string m_Name
protected

Definition at line 15 of file GesturesMenu.c.

◆ m_RadialMenuItemCard

Widget m_RadialMenuItemCard
protected

Definition at line 21 of file GesturesMenu.c.

Referenced by GetRadialItemCard(), and SetRadialItemCard().

◆ m_RadialMenuSelector

Widget m_RadialMenuSelector
protected

Definition at line 20 of file GesturesMenu.c.