Merge pull request #54836 from pycbouh/inspector-plugins-fixes-and-groups
This commit is contained in:
commit
68664c0239
13 changed files with 44 additions and 67 deletions
|
|
@ -185,12 +185,6 @@ bool EditorInspectorPluginOpenTypeFeatures::can_handle(Object *p_object) {
|
|||
return (Object::cast_to<Control>(p_object) != nullptr);
|
||||
}
|
||||
|
||||
void EditorInspectorPluginOpenTypeFeatures::parse_begin(Object *p_object) {
|
||||
}
|
||||
|
||||
void EditorInspectorPluginOpenTypeFeatures::parse_category(Object *p_object, const String &p_parse_category) {
|
||||
}
|
||||
|
||||
bool EditorInspectorPluginOpenTypeFeatures::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, const bool p_wide) {
|
||||
if (p_path == "opentype_features/_new") {
|
||||
OpenTypeFeaturesAdd *editor = memnew(OpenTypeFeaturesAdd);
|
||||
|
|
|
|||
|
|
@ -86,8 +86,6 @@ class EditorInspectorPluginOpenTypeFeatures : public EditorInspectorPlugin {
|
|||
|
||||
public:
|
||||
virtual bool can_handle(Object *p_object) override;
|
||||
virtual void parse_begin(Object *p_object) override;
|
||||
virtual void parse_category(Object *p_object, const String &p_parse_category) 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 uint32_t p_usage, const bool p_wide = false) override;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -271,11 +271,7 @@ EditorPropertyRootMotion::EditorPropertyRootMotion() {
|
|||
//////////////////////////
|
||||
|
||||
bool EditorInspectorRootMotionPlugin::can_handle(Object *p_object) {
|
||||
return true; //can handle everything
|
||||
}
|
||||
|
||||
void EditorInspectorRootMotionPlugin::parse_begin(Object *p_object) {
|
||||
//do none
|
||||
return true; // Can handle everything.
|
||||
}
|
||||
|
||||
bool EditorInspectorRootMotionPlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, const bool p_wide) {
|
||||
|
|
@ -288,9 +284,5 @@ bool EditorInspectorRootMotionPlugin::parse_property(Object *p_object, const Var
|
|||
return true;
|
||||
}
|
||||
|
||||
return false; //can be overridden, although it will most likely be last anyway
|
||||
}
|
||||
|
||||
void EditorInspectorRootMotionPlugin::parse_end() {
|
||||
//do none
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,9 +64,7 @@ class EditorInspectorRootMotionPlugin : public EditorInspectorPlugin {
|
|||
|
||||
public:
|
||||
virtual bool can_handle(Object *p_object) override;
|
||||
virtual void parse_begin(Object *p_object) 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 uint32_t p_usage, const bool p_wide = false) override;
|
||||
virtual void parse_end() override;
|
||||
};
|
||||
|
||||
#endif // ROOT_MOTION_EDITOR_PLUGIN_H
|
||||
|
|
|
|||
|
|
@ -44,13 +44,6 @@ void EditorInspectorPluginStyleBox::parse_begin(Object *p_object) {
|
|||
add_custom_control(preview);
|
||||
}
|
||||
|
||||
bool EditorInspectorPluginStyleBox::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, bool p_wide) {
|
||||
return false; //do not want
|
||||
}
|
||||
|
||||
void EditorInspectorPluginStyleBox::parse_end() {
|
||||
}
|
||||
|
||||
void StyleBoxPreview::edit(const Ref<StyleBox> &p_stylebox) {
|
||||
if (stylebox.is_valid()) {
|
||||
stylebox->disconnect("changed", callable_mp(this, &StyleBoxPreview::_sb_changed));
|
||||
|
|
|
|||
|
|
@ -61,8 +61,6 @@ class EditorInspectorPluginStyleBox : public EditorInspectorPlugin {
|
|||
public:
|
||||
virtual bool can_handle(Object *p_object) override;
|
||||
virtual void parse_begin(Object *p_object) 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 uint32_t p_usage, const bool p_wide = false) override;
|
||||
virtual void parse_end() override;
|
||||
};
|
||||
|
||||
class StyleBoxEditorPlugin : public EditorPlugin {
|
||||
|
|
|
|||
|
|
@ -5187,11 +5187,7 @@ EditorPropertyShaderMode::EditorPropertyShaderMode() {
|
|||
}
|
||||
|
||||
bool EditorInspectorShaderModePlugin::can_handle(Object *p_object) {
|
||||
return true; //can handle everything
|
||||
}
|
||||
|
||||
void EditorInspectorShaderModePlugin::parse_begin(Object *p_object) {
|
||||
//do none
|
||||
return true; // Can handle everything.
|
||||
}
|
||||
|
||||
bool EditorInspectorShaderModePlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, const bool p_wide) {
|
||||
|
|
@ -5204,11 +5200,7 @@ bool EditorInspectorShaderModePlugin::parse_property(Object *p_object, const Var
|
|||
return true;
|
||||
}
|
||||
|
||||
return false; //can be overridden, although it will most likely be last anyway
|
||||
}
|
||||
|
||||
void EditorInspectorShaderModePlugin::parse_end() {
|
||||
//do none
|
||||
return false;
|
||||
}
|
||||
|
||||
//////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -523,9 +523,7 @@ class EditorInspectorShaderModePlugin : public EditorInspectorPlugin {
|
|||
|
||||
public:
|
||||
virtual bool can_handle(Object *p_object) override;
|
||||
virtual void parse_begin(Object *p_object) 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 uint32_t p_usage, const bool p_wide = false) override;
|
||||
virtual void parse_end() override;
|
||||
};
|
||||
|
||||
class VisualShaderNodePortPreview : public Control {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue