mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make shader editor menu position consistent between shader languages
This commit is contained in:
parent
17fb6e3bd0
commit
0831b4b516
7 changed files with 83 additions and 114 deletions
|
|
@ -33,16 +33,19 @@
|
|||
#include "scene/gui/control.h"
|
||||
#include "scene/resources/shader.h"
|
||||
|
||||
class Button;
|
||||
class MenuButton;
|
||||
|
||||
class ShaderEditor : public Control {
|
||||
GDCLASS(ShaderEditor, Control);
|
||||
|
||||
public:
|
||||
virtual void edit_shader(const Ref<Shader> &p_shader) = 0;
|
||||
virtual void edit_shader_include(const Ref<ShaderInclude> &p_shader_inc) {}
|
||||
virtual void use_menu_bar_items(MenuButton *p_file_menu, Button *p_make_floating) = 0;
|
||||
|
||||
virtual void apply_shaders() = 0;
|
||||
virtual bool is_unsaved() const = 0;
|
||||
virtual void save_external_data(const String &p_str = "") = 0;
|
||||
virtual void validate_script() = 0;
|
||||
virtual Control *get_top_bar() = 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue