|
@@ -84,9 +84,13 @@ private:
|
|
|
bool accept_quit;
|
|
|
uint32_t last_id;
|
|
|
|
|
|
+#ifdef TOOLS_ENABLED
|
|
|
bool editor_hint;
|
|
|
+#endif
|
|
|
+#ifdef DEBUG_ENABLED
|
|
|
bool debug_collisions_hint;
|
|
|
bool debug_navigation_hint;
|
|
|
+#endif
|
|
|
bool pause;
|
|
|
int root_lock;
|
|
|
|
|
@@ -266,10 +270,17 @@ public:
|
|
|
_FORCE_INLINE_ float get_fixed_process_time() const { return fixed_process_time; }
|
|
|
_FORCE_INLINE_ float get_idle_process_time() const { return idle_process_time; }
|
|
|
|
|
|
+#ifdef TOOLS_ENABLED
|
|
|
void set_editor_hint(bool p_enabled);
|
|
|
- bool is_editor_hint() const;
|
|
|
|
|
|
+ bool is_editor_hint() const;
|
|
|
bool is_node_being_edited(const Node *p_node) const;
|
|
|
+#else
|
|
|
+ void set_editor_hint(bool p_enabled) {}
|
|
|
+
|
|
|
+ bool is_editor_hint() const { return false; }
|
|
|
+ bool is_node_being_edited(const Node *p_node) const { return false; }
|
|
|
+#endif
|
|
|
|
|
|
void set_pause(bool p_enabled);
|
|
|
bool is_paused() const;
|
|
@@ -277,11 +288,19 @@ public:
|
|
|
void set_camera(const RID &p_camera);
|
|
|
RID get_camera() const;
|
|
|
|
|
|
+#ifdef DEBUG_ENABLED
|
|
|
void set_debug_collisions_hint(bool p_enabled);
|
|
|
bool is_debugging_collisions_hint() const;
|
|
|
|
|
|
void set_debug_navigation_hint(bool p_enabled);
|
|
|
bool is_debugging_navigation_hint() const;
|
|
|
+#else
|
|
|
+ void set_debug_collisions_hint(bool p_enabled) {}
|
|
|
+ bool is_debugging_collisions_hint() const { return false; }
|
|
|
+
|
|
|
+ void set_debug_navigation_hint(bool p_enabled) {}
|
|
|
+ bool is_debugging_navigation_hint() const { return false; }
|
|
|
+#endif
|
|
|
|
|
|
void set_debug_collisions_color(const Color &p_color);
|
|
|
Color get_debug_collisions_color() const;
|