You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Expose FileDialog callbacks for getting custom icons
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user