47 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_F1,
"PluginDeveloper",
"ToggleHelpScreen",
"[LCTRL]+[F1]",
"Show/Hide help screen");
48 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_F2,
"PluginDeveloper",
"ResetGUI",
"[LCTRL]+[F2]",
"Resets shown UI for testing purposes");
53 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_V,
"PluginDeveloper",
"SpawnFromClipboard",
"[Right Shift]",
"Spawn item from clipboard");
57 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_INSERT, -1,
"PluginDeveloper",
"TeleportAtCursor",
"[Insert]",
"Teleport player to cursor position");
58 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_HOME, -1,
"PluginDeveloper",
"ToggleFreeCamera",
"[Home]",
"Toggle free camera and teleport player to its position");
59 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_DIVIDE, -1,
"PluginDeveloper",
"ToggleFreeCameraBackPos",
"[Divide numeric]",
"Toggle free camera, no player teleport");
60 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_NUMPAD9,
"PluginDeveloperSync",
"ToggleFocus",
"[LCtrl]+[NUMPAD9]",
"Toggle game focus");
64 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_Z,
"PluginDeveloper",
"SetDeveloperItemClient",
"Starts watching the item",
"Sets the target as Watched item for debug purposes");
65 RegisterKeyBind(
MENU_SCRIPTCONSOLE,
KeyCode.KC_PRIOR, -1,
"PluginDeveloper",
"ScriptHistoryBack",
"[Page Up]",
"Debug Console => Script history back");
66 RegisterKeyBind(
MENU_SCRIPTCONSOLE,
KeyCode.KC_NEXT, -1,
"PluginDeveloper",
"ScriptHistoryNext",
"[Page Down]",
"Debug Console => Script history next");
67 RegisterKeyBind(
MENU_SCENE_EDITOR,
KeyCode.KC_DELETE, -1,
"PluginSceneManager",
"DeleteSelectedObject",
"[Delete]",
"Scene Editor => Delete current selected object");
68 RegisterKeyBind(
MENU_SCENE_EDITOR,
KeyCode.KC_LCONTROL,
KeyCode.KC_S,
"PluginSceneManager",
"SceneSave",
"[LCtrl]+[S]",
"Scene Editor => Save Current Scene");
69 RegisterKeyBind(
MENU_SCENE_EDITOR,
KeyCode.KC_LCONTROL,
KeyCode.KC_D,
"PluginSceneManager",
"SelectedObjectDuplicate",
"[LCtrl]+[D]",
"Scene Editor => Duplicate current selected object");
70 RegisterKeyBind(
MENU_SCENE_EDITOR,
KeyCode.KC_LCONTROL,
KeyCode.KC_F,
"PluginSceneManager",
"SelectedObjectFocus",
"[LCtrl]+[F]",
"Scene Editor => Focus camera on selected object");
71 RegisterKeyBind(
MENU_SCENE_EDITOR,
KeyCode.KC_LCONTROL,
KeyCode.KC_E,
"PluginSceneManager",
"RulerToggle",
"[LCtrl]+[E]",
"Scene Editor => Enable/Disable addition of ruler points");
72 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_PRIOR,
"PluginRecipesManager",
"CallbackGenerateCache",
"[LCtrl]+[BACKSPACE]",
"PluginRecipesManager => Generate recipe cache and save it to file");
73 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_DECIMAL,
"PluginItemDiagnostic",
"ToggleDebugWindowEvent",
"[LCtrl]+[DECIMAL]",
"Close the Item Debug window");
74 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_NUMPAD0,
"PluginDayzPlayerDebug",
"ToggleDebugWindowEvent",
"[LCtrl]+[NUMPAD0]",
"Open/Close Player debug window");
75 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_DECIMAL,
"PluginDayzPlayerDebug",
"ToggleDebugWindowEventP",
"[LCtrl]+[DECIMAL]",
"Open/Close Player debug window");
76 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_I,
"PluginDayZInfectedDebug",
"ToggleDebugWindowEvent",
"[LCtrl]+[NUMPAD1]",
"Open/Close Infected debug window");
77 RegisterKeyBind(
MENU_ANY,
KeyCode.KC_LCONTROL,
KeyCode.KC_O,
"PluginDayZInfectedDebug",
"PossesInfected",
"[LCtrl]+[NUMPAD1]",
"Open/Close Infected debug window");
78 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_SCROLL,
"PluginNutritionDumper",
"CheckInit",
"[LCtrl]+[SCROLL LOCK]",
"Enable Door Ruler");
79 RegisterKeyBind(
MENU_NONE,
KeyCode.KC_LCONTROL,
KeyCode.KC_RBRACKET,
"PluginCharPlacement",
"CheckInit",
"[LCtrl]+[)]",
"Enable CharPlacer");
82 RegisterKeyBind(
MENU_CAMERA_TOOLS,
KeyCode.KC_LCONTROL,
KeyCode.KC_S,
"PluginCameraTools",
"Save",
"[X]",
"Recording Tools => Start Recording Camera Path");
83 RegisterKeyBind(
MENU_CAMERA_TOOLS,
KeyCode.KC_P, -1,
"PluginCameraTools",
"PlayPause",
"[C]",
"Recording Tools => Stop Recording Camera Path");
84 RegisterKeyBind(
MENU_CAMERA_TOOLS,
KeyCode.KC_LCONTROL,
KeyCode.KC_Q,
"PluginCameraTools",
"AddKeyframe",
"[C]",
"Recording Tools => Add Camera Point");
85 RegisterKeyBind(
MENU_CAMERA_TOOLS,
KeyCode.KC_LCONTROL,
KeyCode.KC_E,
"PluginCameraTools",
"DeleteKeyframe",
"[V]",
"Recording Tools => Play Camera Line");
103 RegisterMouseBind(
MENU_NONE,
MouseState.LEFT,
MB_EVENT_CLICK,
"PluginDayZCreatureAIDebug",
"Event_OnClick",
"[LMB] Click",
"DayZCreature graph debug => Capture entity during capture mode");
128 for (
int i = 0;
i < m_KeyBindings.Count(); ++
i)
132 if (!IsCurrentUIPageValid(
key_binding.GetUIMenuID()))
238 for (
int i = 0;
i < m_MouseButtons.Count(); ++
i)
242 if (
info.IsButtonDown())
245 int time_hold =
info.GetTimeLastPress() + HOLD_CLICK_TIME_MIN;
262 return m_KeyBindings;
270 return m_MouseBindings;
273 protected const int CLICK_TIME = 200;
274 protected const int DOUBLE_CLICK_TIME = 300;
275 protected const int HOLD_CLICK_TIME_MIN = 300;
304 if (
GetGame().GetUIManager().GetMenu())
329 for (
int i = 0;
i < m_MouseBindings.Count(); ++
i)
349 for (
int i = 0;
i < m_MouseButtons.Count(); ++
i)
PluginBase GetPlugin(typename plugin_type)
bool CheckMask(int source_mask, int target_mask)
ref array< ref MouseButtonInfo > m_MouseButtons
ref array< ref KeyBinding > m_KeyBindings
void OnMouse(int event_id, int button)
void OnMouseButtonPress(int button)
MouseButtonInfo GetMouseButtonInfo(int button)
void RegisterKeyBind(int ui_id, int key_code1, int key_code2, string plugin_name, string fnc_name, string info_shortcut, string info_description)
override void OnDestroy()
void OnMouseButtonRelease(int button)
bool IsCurrentUIPageValid(int ui_page_request)
ref array< ref MouseBinding > m_MouseBindings
array< ref KeyBinding > GetKeyBindings()
void RegisterMouseBind(int ui_id, int mouse_button, int mouse_event, string plugin_name, string fnc_name, string info_shortcut, string info_description)
static PluginKeyBinding instance
void OnKeyRelease(int key)
array< ref MouseBinding > GetMouseBindings()
bool IsKeyPressed(int key)
proto native CGame GetGame()
proto native int KeyState(KeyCode key)
const int MB_EVENT_RELEASE
const int MB_EVENT_DOUBLECLICK