mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Compile certain CanvasItem._edit_*() functions with DEBUG_ENABLED
This commit is contained in:
parent
c6c464cf9a
commit
58e79bfa9a
41 changed files with 155 additions and 121 deletions
|
|
@ -48,7 +48,7 @@ class Control : public CanvasItem {
|
|||
|
||||
#ifdef TOOLS_ENABLED
|
||||
bool saving = false;
|
||||
#endif
|
||||
#endif //TOOLS_ENABLED
|
||||
|
||||
public:
|
||||
enum Anchor {
|
||||
|
|
@ -396,8 +396,6 @@ public:
|
|||
virtual Size2 _edit_get_scale() const override;
|
||||
|
||||
virtual void _edit_set_rect(const Rect2 &p_edit_rect) override;
|
||||
virtual Rect2 _edit_get_rect() const override;
|
||||
virtual bool _edit_use_rect() const override;
|
||||
|
||||
virtual void _edit_set_rotation(real_t p_rotation) override;
|
||||
virtual real_t _edit_get_rotation() const override;
|
||||
|
|
@ -408,7 +406,13 @@ public:
|
|||
virtual bool _edit_use_pivot() const override;
|
||||
|
||||
virtual Size2 _edit_get_minimum_size() const override;
|
||||
#endif
|
||||
#endif //TOOLS_ENABLED
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
virtual Rect2 _edit_get_rect() const override;
|
||||
virtual bool _edit_use_rect() const override;
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
virtual void reparent(Node *p_parent, bool p_keep_global_transform = true) override;
|
||||
|
||||
// Editor integration.
|
||||
|
|
@ -418,7 +422,7 @@ public:
|
|||
PackedStringArray get_configuration_warnings() const override;
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
|
||||
#endif
|
||||
#endif //TOOLS_ENABLED
|
||||
|
||||
virtual bool is_text_field() const;
|
||||
|
||||
|
|
@ -605,7 +609,7 @@ public:
|
|||
Variant get_theme_item(Theme::DataType p_data_type, const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
#ifdef TOOLS_ENABLED
|
||||
Ref<Texture2D> get_editor_theme_icon(const StringName &p_name) const;
|
||||
#endif
|
||||
#endif //TOOLS_ENABLED
|
||||
|
||||
bool has_theme_icon_override(const StringName &p_name) const;
|
||||
bool has_theme_stylebox_override(const StringName &p_name) const;
|
||||
|
|
@ -637,7 +641,7 @@ public:
|
|||
#ifndef DISABLE_DEPRECATED
|
||||
void set_auto_translate(bool p_enable);
|
||||
bool is_auto_translating() const;
|
||||
#endif
|
||||
#endif //DISABLE_DEPRECATED
|
||||
|
||||
void set_tooltip_auto_translate_mode(AutoTranslateMode p_mode);
|
||||
AutoTranslateMode get_tooltip_auto_translate_mode() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue