DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PluginCameraTools.c
См. документацию.
1class PluginCameraTools extends PluginBase
2{
3 protected static PluginCameraTools m_Instance;
4 protected static bool m_IsOpen;
5
6 override void OnInit()
7 {
8 m_Instance = this;
9 }
10
11 static PluginCameraTools GetInstance()
12 {
13 return m_Instance;
14 }
15
16 //===========================================
17 // ToggleCameraTools
18 //===========================================
20 {
21 if( !m_IsOpen )
22 {
23 g_Game.GetUIManager().EnterScriptedMenu( MENU_CAMERA_TOOLS, null );
24 }
25 else
26 {
27 g_Game.GetUIManager().Back();
28 }
30 }
31
32 //===========================================
33 // CursorHide
34 //===========================================
36 {
37 if( g_Game.GetUIManager().GetMenu() )
38 g_Game.GetUIManager().GetMenu().OnHide();
39 }
40
41 //===========================================
42 // CursorShow
43 //===========================================
45 {
46 if( g_Game.GetUIManager().GetMenu() )
47 g_Game.GetUIManager().GetMenu().OnShow();
48 }
49
50 void Save()
51 {
52 if( g_Game.GetUIManager().GetMenu() )
53 g_Game.GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_S );
54 }
55
56 void PlayPause()
57 {
58 if( g_Game.GetUIManager().GetMenu() )
59 g_Game.GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_P );
60 }
61
63 {
64 if( g_Game.GetUIManager().GetMenu() )
65 g_Game.GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_Q );
66 }
67
69 {
70 if( g_Game.GetUIManager().GetMenu() )
71 g_Game.GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_E );
72 }
73}
DayZGame g_Game
Определения DayZGame.c:3942
void PlayPause()
Определения PluginCameraTools.c:56
static bool m_IsOpen
Определения PluginCameraTools.c:4
void Save()
Определения PluginCameraTools.c:50
override void OnInit()
Определения PluginCameraTools.c:6
static PluginCameraTools GetInstance()
Определения PluginCameraTools.c:11
void CursorHide()
Определения PluginCameraTools.c:35
void CursorShow()
Определения PluginCameraTools.c:44
void AddKeyframe()
Определения PluginCameraTools.c:62
void ToggleCameraTools()
Определения PluginCameraTools.c:19
static PluginCameraTools m_Instance
Определения PluginCameraTools.c:3
void DeleteKeyframe()
Определения PluginCameraTools.c:68
Plugin interface for controlling of agent pool system.
Определения PluginBase.c:2
KeyCode
Определения EnSystem.c:157
const int MENU_CAMERA_TOOLS
Определения 3_Game/DayZ/constants.c:201