1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

-Ability to open resources in the same window

-Plenty of fixes and improvements to new inspector
-Fixes that were needed to make inspector work better
This commit is contained in:
Juan Linietsky
2018-05-17 18:02:16 -03:00
parent 3183375135
commit 4b5227ff77
26 changed files with 598 additions and 321 deletions

View File

@@ -119,28 +119,19 @@ private:
float _tangents_length;
};
class EditorInspectorPluginCurve : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginCurve, EditorInspectorPlugin)
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);
};
class CurveEditorPlugin : public EditorPlugin {
GDCLASS(CurveEditorPlugin, EditorPlugin)
public:
CurveEditorPlugin(EditorNode *p_node);
~CurveEditorPlugin();
String get_name() const { return "Curve"; }
bool has_main_screen() const { return false; }
void edit(Object *p_object);
bool handles(Object *p_object) const;
void make_visible(bool p_visible);
private:
static void _bind_methods();
void _curve_texture_changed();
private:
CurveEditor *_view;
Ref<Resource> _current_ref;
EditorNode *_editor_node;
ToolButton *_toggle_button;
};
class CurvePreviewGenerator : public EditorResourcePreviewGenerator {