DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetBoundButtonText()

string GetBoundButtonText ( )
protected

См. определение в файле GesturesMenu.c строка 42

43 {
44 string ret = "";
45 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() && m_EmoteClass && m_EmoteClass.GetInputActionName() != "")
46 {
47 map<int,ref TStringArray> button_map = InputUtils.GetComboButtonNamesFromInput(m_EmoteClass.GetInputActionName(), EInputDeviceType.MOUSE_AND_KEYBOARD);
48
49 if (button_map && button_map.Count() > 0)
50 {
51 TStringArray buttons;
52 for (int j = 0; j < button_map.Count(); j++)
53 {
54 if (j > 0)
55 {
56 ret += "; ";
57 }
58
59 buttons = button_map.GetElement(j);
60 for (int i = 0; i < buttons.Count(); i++)
61 {
62 if (i > 0)
63 {
64 ret += " + ";
65 }
66 ret += buttons[i];
67 }
68 }
69
70 }
71 }
72 return ret;
73 }
map
Определения ControlsXboxNew.c:4
EmoteBase m_EmoteClass
Определения GesturesMenu.c:17
static map< int, ref TStringArray > GetComboButtonNamesFromInput(string pInputName, int pInputDeviceType)
returns a map of button names, combo or not
Определения InputUtils.c:33
Определения InputUtils.c:2
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685
EInputDeviceType
Определения input.c:3

Перекрестные ссылки InputUtils::GetComboButtonNamesFromInput(), GetGame() и m_EmoteClass.