mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Expose FileDialog callbacks for getting custom icons
This commit is contained in:
parent
d705613db3
commit
f88b51995b
6 changed files with 138 additions and 13 deletions
|
|
@ -46,6 +46,7 @@ class ConfirmationDialog;
|
|||
class Control;
|
||||
class FileDialog;
|
||||
class HBoxContainer;
|
||||
class ImageTexture;
|
||||
class MenuBar;
|
||||
class MenuButton;
|
||||
class OptionButton;
|
||||
|
|
@ -512,6 +513,10 @@ private:
|
|||
}
|
||||
|
||||
static Ref<Texture2D> _file_dialog_get_icon(const String &p_path);
|
||||
static Ref<Texture2D> _file_dialog_get_thumbnail(const String &p_path);
|
||||
static void _file_dialog_thumbnail_callback(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, Ref<ImageTexture> p_texture);
|
||||
Ref<ImageTexture> default_thumbnail;
|
||||
|
||||
static void _file_dialog_register(FileDialog *p_dialog);
|
||||
static void _file_dialog_unregister(FileDialog *p_dialog);
|
||||
static void _editor_file_dialog_register(EditorFileDialog *p_dialog);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue