mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make icons of scripted and custom classes fit the editor UI
Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
This commit is contained in:
parent
9fae65404a
commit
1522762dc9
28 changed files with 339 additions and 89 deletions
|
|
@ -146,7 +146,7 @@ private:
|
|||
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;
|
||||
Ref<Texture2D> _load_script_icon(const String &p_path) const;
|
||||
|
||||
public:
|
||||
EditorPlugin *get_editor(Object *p_object);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue