1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #91252 from timothyqiu/control-category

Only add warning label for Layout group in Control category
This commit is contained in:
Rémi Verschelde
2024-04-29 10:10:35 +02:00
2 changed files with 11 additions and 0 deletions

View File

@@ -127,8 +127,11 @@ public:
class EditorInspectorPluginControl : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginControl, EditorInspectorPlugin);
bool inside_control_category = false;
public:
virtual bool can_handle(Object *p_object) override;
virtual void parse_category(Object *p_object, const String &p_category) override;
virtual void parse_group(Object *p_object, const String &p_group) override;
virtual bool parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const BitField<PropertyUsageFlags> p_usage, const bool p_wide = false) override;
};