mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Streamline class icon resolution in the editor
This commit is contained in:
parent
c58080299a
commit
9fae65404a
8 changed files with 137 additions and 152 deletions
|
|
@ -144,6 +144,9 @@ private:
|
|||
|
||||
HashMap<StringName, String> _script_class_icon_paths;
|
||||
HashMap<String, StringName> _script_class_file_to_path;
|
||||
HashMap<Ref<Script>, Ref<Texture>> _script_icon_cache;
|
||||
|
||||
Ref<ImageTexture> _load_script_icon(const String &p_path) const;
|
||||
|
||||
public:
|
||||
EditorPlugin *get_editor(Object *p_object);
|
||||
|
|
@ -240,6 +243,9 @@ public:
|
|||
void script_class_save_icon_paths();
|
||||
void script_class_load_icon_paths();
|
||||
|
||||
Ref<Texture2D> get_script_icon(const Ref<Script> &p_script);
|
||||
void clear_script_icon_cache();
|
||||
|
||||
EditorData();
|
||||
~EditorData();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue