You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Added code preview to visual shader
This commit is contained in:
@@ -60,14 +60,19 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
int editing_port;
|
||||
|
||||
Ref<VisualShader> visual_shader;
|
||||
HSplitContainer *main_box;
|
||||
GraphEdit *graph;
|
||||
ToolButton *add_node;
|
||||
ToolButton *preview_shader;
|
||||
|
||||
OptionButton *edit_type;
|
||||
|
||||
PanelContainer *error_panel;
|
||||
Label *error_label;
|
||||
|
||||
PanelContainer *preview_panel;
|
||||
TextEdit *preview_text;
|
||||
|
||||
UndoRedo *undo_redo;
|
||||
Point2 saved_node_pos;
|
||||
bool saved_node_pos_dirty;
|
||||
@@ -75,6 +80,8 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
ConfirmationDialog *members_dialog;
|
||||
MenuButton *tools;
|
||||
|
||||
bool preview_showed;
|
||||
|
||||
enum ToolsMenuOptions {
|
||||
EXPAND_ALL,
|
||||
COLLAPSE_ALL
|
||||
@@ -146,6 +153,9 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
void _update_custom_nodes();
|
||||
void _update_options_menu();
|
||||
|
||||
void _show_preview_panel();
|
||||
void _update_preview();
|
||||
|
||||
static VisualShaderEditor *singleton;
|
||||
|
||||
void _node_dragged(const Vector2 &p_from, const Vector2 &p_to, int p_node);
|
||||
|
||||
Reference in New Issue
Block a user