DayZ 1.27
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 {
24 }
25 else
26 {
28 }
30 }
31
32 //===========================================
33 // CursorHide
34 //===========================================
36 {
37 if( GetGame().GetUIManager().GetMenu() )
39 }
40
41 //===========================================
42 // CursorShow
43 //===========================================
45 {
46 if( GetGame().GetUIManager().GetMenu() )
48 }
49
50 void Save()
51 {
52 if( GetGame().GetUIManager().GetMenu() )
53 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_S );
54 }
55
56 void PlayPause()
57 {
58 if( GetGame().GetUIManager().GetMenu() )
59 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_P );
60 }
61
63 {
64 if( GetGame().GetUIManager().GetMenu() )
65 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_Q );
66 }
67
69 {
70 if( GetGame().GetUIManager().GetMenu() )
71 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_E );
72 }
73}
proto native UIManager GetUIManager()
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
Определения PluginBase.c:2
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool Back()
Close top window on windows stack, returns true when any window is closed.
Определения UIManager.c:62
override void OnShow()
Определения CameraToolsMenu.c:99
override bool OnKeyPress(Widget w, int x, int y, int key)
Определения CameraToolsMenu.c:969
override void OnHide()
Определения CameraToolsMenu.c:109
proto native CGame GetGame()
KeyCode
Определения EnSystem.c:157
const int MENU_CAMERA_TOOLS
Определения constants.c:201