feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -37,8 +37,10 @@ class HSplitContainer;
|
|||
class ItemList;
|
||||
class MenuButton;
|
||||
class ShaderCreateDialog;
|
||||
class ShaderEditor;
|
||||
class TabContainer;
|
||||
class TextShaderEditor;
|
||||
class VBoxContainer;
|
||||
class VisualShaderEditor;
|
||||
class WindowWrapper;
|
||||
|
||||
|
|
@ -52,16 +54,13 @@ class ShaderEditorPlugin : public EditorPlugin {
|
|||
struct EditedShader {
|
||||
Ref<Shader> shader;
|
||||
Ref<ShaderInclude> shader_inc;
|
||||
TextShaderEditor *shader_editor = nullptr;
|
||||
VisualShaderEditor *visual_shader_editor = nullptr;
|
||||
ShaderEditor *shader_editor = nullptr;
|
||||
String path;
|
||||
String name;
|
||||
};
|
||||
|
||||
LocalVector<EditedShader> edited_shaders;
|
||||
|
||||
// Always valid operations come first in the enum, file-specific ones
|
||||
// should go after FILE_SAVE which is used to build the menu accordingly.
|
||||
enum {
|
||||
FILE_NEW,
|
||||
FILE_NEW_INCLUDE,
|
||||
|
|
@ -70,16 +69,28 @@ class ShaderEditorPlugin : public EditorPlugin {
|
|||
FILE_SAVE,
|
||||
FILE_SAVE_AS,
|
||||
FILE_INSPECT,
|
||||
FILE_INSPECT_NATIVE_SHADER_CODE,
|
||||
FILE_CLOSE,
|
||||
FILE_MAX
|
||||
CLOSE_ALL,
|
||||
CLOSE_OTHER_TABS,
|
||||
SHOW_IN_FILE_SYSTEM,
|
||||
COPY_PATH,
|
||||
};
|
||||
|
||||
enum PopupMenuType {
|
||||
FILE,
|
||||
CONTEXT,
|
||||
CONTEXT_VALID_ITEM,
|
||||
};
|
||||
|
||||
HSplitContainer *main_split = nullptr;
|
||||
VBoxContainer *left_panel = nullptr;
|
||||
ItemList *shader_list = nullptr;
|
||||
TabContainer *shader_tabs = nullptr;
|
||||
|
||||
Button *button = nullptr;
|
||||
MenuButton *file_menu = nullptr;
|
||||
PopupMenu *context_menu = nullptr;
|
||||
|
||||
WindowWrapper *window_wrapper = nullptr;
|
||||
Button *make_floating = nullptr;
|
||||
|
|
@ -88,15 +99,19 @@ class ShaderEditorPlugin : public EditorPlugin {
|
|||
|
||||
float text_shader_zoom_factor = 1.0f;
|
||||
|
||||
Ref<Resource> _get_current_shader();
|
||||
void _update_shader_list();
|
||||
void _shader_selected(int p_index);
|
||||
void _shader_list_clicked(int p_item, Vector2 p_local_mouse_pos, MouseButton p_mouse_button_index);
|
||||
void _setup_popup_menu(PopupMenuType p_type, PopupMenu *p_menu);
|
||||
void _make_script_list_context_menu();
|
||||
void _menu_item_pressed(int p_index);
|
||||
void _resource_saved(Object *obj);
|
||||
void _close_shader(int p_index);
|
||||
void _close_builtin_shaders_from_scene(const String &p_scene);
|
||||
void _file_removed(const String &p_removed_file);
|
||||
void _res_saved_callback(const Ref<Resource> &p_res);
|
||||
void _set_file_specific_items_disabled(bool p_disabled);
|
||||
|
||||
void _shader_created(Ref<Shader> p_shader);
|
||||
void _shader_include_created(Ref<ShaderInclude> p_shader_inc);
|
||||
|
|
@ -115,14 +130,13 @@ protected:
|
|||
void _notification(int p_what);
|
||||
|
||||
public:
|
||||
virtual String get_name() const override { return "Shader"; }
|
||||
virtual String get_plugin_name() const override { return "Shader"; }
|
||||
virtual void edit(Object *p_object) override;
|
||||
virtual bool handles(Object *p_object) const override;
|
||||
virtual void make_visible(bool p_visible) override;
|
||||
virtual void selected_notify() override;
|
||||
|
||||
TextShaderEditor *get_shader_editor(const Ref<Shader> &p_for_shader);
|
||||
VisualShaderEditor *get_visual_shader_editor(const Ref<Shader> &p_for_shader);
|
||||
ShaderEditor *get_shader_editor(const Ref<Shader> &p_for_shader);
|
||||
|
||||
virtual void set_window_layout(Ref<ConfigFile> p_layout) override;
|
||||
virtual void get_window_layout(Ref<ConfigFile> p_layout) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue