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

◆ GestureMenuItem()

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

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

24 {
25 m_ID = id;
26 m_Name = name;
27 m_Category = category;
28 m_CanPerformEmote = true;
29
30 PlayerBase player;
31 if (Class.CastTo(player,GetGame().GetPlayer()) && category != GestureCategories.CATEGORIES)
32 {
33 m_EmoteClass = player.GetEmoteManager().GetNameEmoteMap().Get(id);
34 }
35 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Определения Effect.c:49
EmoteBase m_EmoteClass
Определения GesturesMenu.c:17
GestureCategories
Определения GesturesMenu.c:2
bool m_CanPerformEmote
Определения GesturesMenu.c:18
PlayerBase GetPlayer()
Определения ModifierBase.c:51
class SyncedValue m_Name
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения PlayerBaseClient.c:2
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
string m_Category
folder structure eg. StaticEntities/Walls
Определения EnEntity.c:844

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer(), m_CanPerformEmote, m_Category, m_EmoteClass, m_ID, m_Name и name.

Используется в UIScriptedMenu::CreateGestureContent(), UIScriptedMenu::ExecuteSelectedCategory(), UIScriptedMenu::ExecuteSelectedItem(), UIScriptedMenu::GetGestureItems(), UIScriptedMenu::MarkSelected(), UIScriptedMenu::ProcessEmoteConditionRequest(), UIScriptedMenu::UnmarkSelected() и UIScriptedMenu::UpdateQuickbarItemCard().