DayZ
1.24
Loading...
Searching...
No Matches
PluginCameraTools.c
Go to the documentation of this file.
1
class
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
//===========================================
19
void
ToggleCameraTools
()
20
{
21
if
(!m_IsOpen)
22
GetGame
().GetUIManager().EnterScriptedMenu(
MENU_CAMERA_TOOLS
,
null
);
23
else
24
GetGame
().GetUIManager().Back();
25
m_IsOpen = !m_IsOpen;
26
}
27
28
//===========================================
29
// CursorHide
30
//===========================================
31
void
CursorHide
()
32
{
33
if
(
GetGame
().GetUIManager().GetMenu())
34
GetGame
().GetUIManager().GetMenu().OnHide();
35
}
36
37
//===========================================
38
// CursorShow
39
//===========================================
40
void
CursorShow
()
41
{
42
if
(
GetGame
().GetUIManager().GetMenu())
43
GetGame
().GetUIManager().GetMenu().OnShow();
44
}
45
46
void
Save
()
47
{
48
if
(
GetGame
().GetUIManager().GetMenu())
49
GetGame
().GetUIManager().GetMenu().OnKeyPress(
null
, 0, 0,
KeyCode
.KC_S);
50
}
51
52
void
PlayPause
()
53
{
54
if
(
GetGame
().GetUIManager().GetMenu())
55
GetGame
().GetUIManager().GetMenu().OnKeyPress(
null
, 0, 0,
KeyCode
.KC_P);
56
}
57
58
void
AddKeyframe
()
59
{
60
if
(
GetGame
().GetUIManager().GetMenu())
61
GetGame
().GetUIManager().GetMenu().OnKeyPress(
null
, 0, 0,
KeyCode
.KC_Q);
62
}
63
64
void
DeleteKeyframe
()
65
{
66
if
(
GetGame
().GetUIManager().GetMenu())
67
GetGame
().GetUIManager().GetMenu().OnKeyPress(
null
, 0, 0,
KeyCode
.KC_E);
68
}
69
}
m_Instance
static ref RadialMenu m_Instance
Definition
RadialMenu.c:55
Param3
Definition
EntityAI.c:95
PluginBase
Definition
PluginBase.c:2
PluginBase::PlayPause
void PlayPause()
Definition
PluginCameraTools.c:52
PluginBase::m_IsOpen
static bool m_IsOpen
Definition
PluginCameraTools.c:4
PluginBase::Save
void Save()
Definition
PluginCameraTools.c:46
PluginBase::OnInit
override void OnInit()
Definition
PluginCameraTools.c:6
PluginBase::GetInstance
static PluginCameraTools GetInstance()
Definition
PluginCameraTools.c:11
PluginBase::CursorHide
void CursorHide()
Definition
PluginCameraTools.c:31
PluginBase::CursorShow
void CursorShow()
Definition
PluginCameraTools.c:40
PluginBase::AddKeyframe
void AddKeyframe()
Definition
PluginCameraTools.c:58
PluginBase::ToggleCameraTools
void ToggleCameraTools()
Definition
PluginCameraTools.c:19
PluginBase::m_Instance
static PluginCameraTools m_Instance
Definition
PluginCameraTools.c:3
PluginBase::DeleteKeyframe
void DeleteKeyframe()
Definition
PluginCameraTools.c:64
GetGame
proto native CGame GetGame()
KeyCode
KeyCode
Definition
EnSystem.c:157
MENU_CAMERA_TOOLS
const int MENU_CAMERA_TOOLS
Definition
constants.c:191
scripts
4_World
Plugins
PluginBase
PluginCameraTools.c
Generated by
1.10.0