You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Add thumnails to the tree view
This commit is contained in:
@@ -39,7 +39,8 @@ class EditorTexturePreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(EditorTexturePreviewPlugin, EditorResourcePreviewGenerator)
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual bool should_generate_small_preview() const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorTexturePreviewPlugin();
|
||||
};
|
||||
@@ -48,7 +49,8 @@ class EditorImagePreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(EditorImagePreviewPlugin, EditorResourcePreviewGenerator)
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual bool should_generate_small_preview() const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorImagePreviewPlugin();
|
||||
};
|
||||
@@ -57,7 +59,8 @@ class EditorBitmapPreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(EditorBitmapPreviewPlugin, EditorResourcePreviewGenerator)
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual bool should_generate_small_preview() const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorBitmapPreviewPlugin();
|
||||
};
|
||||
@@ -66,8 +69,8 @@ class EditorPackedScenePreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual Ref<Texture> generate_from_path(const String &p_path) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
virtual Ref<Texture> generate_from_path(const String &p_path, const Size2 p_size) const;
|
||||
|
||||
EditorPackedScenePreviewPlugin();
|
||||
};
|
||||
@@ -95,7 +98,8 @@ protected:
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual bool should_generate_small_preview() const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorMaterialPreviewPlugin();
|
||||
~EditorMaterialPreviewPlugin();
|
||||
@@ -104,7 +108,7 @@ public:
|
||||
class EditorScriptPreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorScriptPreviewPlugin();
|
||||
};
|
||||
@@ -112,7 +116,7 @@ public:
|
||||
class EditorAudioStreamPreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorAudioStreamPreviewPlugin();
|
||||
};
|
||||
@@ -139,7 +143,7 @@ protected:
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
|
||||
EditorMeshPreviewPlugin();
|
||||
~EditorMeshPreviewPlugin();
|
||||
@@ -162,8 +166,8 @@ protected:
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from) const;
|
||||
virtual Ref<Texture> generate_from_path(const String &p_path) const;
|
||||
virtual Ref<Texture> generate(const RES &p_from, const Size2 p_size) const;
|
||||
virtual Ref<Texture> generate_from_path(const String &p_path, const Size2 p_size) const;
|
||||
|
||||
EditorFontPreviewPlugin();
|
||||
~EditorFontPreviewPlugin();
|
||||
|
||||
Reference in New Issue
Block a user