You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Improve the VisualShader/VisualScript editor UI
This commit is contained in:
@@ -54,6 +54,7 @@ private:
|
||||
Color color_right = Color(1, 1, 1, 1);
|
||||
Ref<Texture2D> custom_slot_left;
|
||||
Ref<Texture2D> custom_slot_right;
|
||||
bool draw_stylebox = true;
|
||||
};
|
||||
|
||||
String title;
|
||||
@@ -115,7 +116,7 @@ protected:
|
||||
public:
|
||||
bool has_point(const Point2 &p_point) const override;
|
||||
|
||||
void set_slot(int p_idx, bool p_enable_left, int p_type_left, const Color &p_color_left, bool p_enable_right, int p_type_right, const Color &p_color_right, const Ref<Texture2D> &p_custom_left = Ref<Texture2D>(), const Ref<Texture2D> &p_custom_right = Ref<Texture2D>());
|
||||
void set_slot(int p_idx, bool p_enable_left, int p_type_left, const Color &p_color_left, bool p_enable_right, int p_type_right, const Color &p_color_right, const Ref<Texture2D> &p_custom_left = Ref<Texture2D>(), const Ref<Texture2D> &p_custom_right = Ref<Texture2D>(), bool p_draw_stylebox = true);
|
||||
void clear_slot(int p_idx);
|
||||
void clear_all_slots();
|
||||
|
||||
@@ -137,6 +138,9 @@ public:
|
||||
void set_slot_color_right(int p_idx, const Color &p_color_right);
|
||||
Color get_slot_color_right(int p_idx) const;
|
||||
|
||||
bool is_slot_draw_stylebox(int p_idx) const;
|
||||
void set_slot_draw_stylebox(int p_idx, bool p_enable);
|
||||
|
||||
void set_title(const String &p_title);
|
||||
String get_title() const;
|
||||
|
||||
@@ -185,7 +189,9 @@ public:
|
||||
virtual Vector<int> get_allowed_size_flags_horizontal() const override;
|
||||
virtual Vector<int> get_allowed_size_flags_vertical() const override;
|
||||
|
||||
bool is_resizing() const { return resizing; }
|
||||
bool is_resizing() const {
|
||||
return resizing;
|
||||
}
|
||||
|
||||
GraphNode();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user