mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Even more work on visual script editor:
-Added constructor nodes, specialized and conversion ones. -Cleaned up how unconnected input default values are shown and edited (much cleaner) -Dragging scene nodes into graph makes a call dialog appear by deault -Dragging properties into graph is set by default, not get -fixed dragging internal functions into graph
This commit is contained in:
parent
963ed2d9fa
commit
ec49f41e19
7 changed files with 446 additions and 49 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include "tools/editor/property_editor.h"
|
||||
#include "scene/gui/graph_edit.h"
|
||||
#include "tools/editor/create_dialog.h"
|
||||
|
||||
#include "tools/editor/property_selector.h"
|
||||
class VisualScriptEditorSignalEdit;
|
||||
class VisualScriptEditorVariableEdit;
|
||||
|
||||
|
|
@ -51,6 +51,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
AcceptDialog *edit_signal_dialog;
|
||||
PropertyEditor *edit_signal_edit;
|
||||
|
||||
PropertySelector *method_select;
|
||||
|
||||
VisualScriptEditorVariableEdit *variable_editor;
|
||||
|
||||
|
|
@ -163,6 +164,12 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
void _graph_ofs_changed(const Vector2& p_ofs);
|
||||
void _comment_node_resized(const Vector2& p_new_size,int p_node);
|
||||
|
||||
int selecting_method_id;
|
||||
void _selected_method(const String& p_method);
|
||||
|
||||
void _draw_color_over_button(Object* obj,Color p_color);
|
||||
void _button_resource_previewed(const String& p_path,const Ref<Texture>& p_preview,Variant p_ud);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue