You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Implement TileMap patterns palette
This commit is contained in:
@@ -173,4 +173,22 @@ public:
|
||||
EditorFontPreviewPlugin();
|
||||
~EditorFontPreviewPlugin();
|
||||
};
|
||||
|
||||
class EditorTileMapPatternPreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(EditorTileMapPatternPreviewPlugin, EditorResourcePreviewGenerator);
|
||||
|
||||
mutable SafeFlag preview_done;
|
||||
|
||||
void _preview_done(const Variant &p_udata);
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const override;
|
||||
virtual Ref<Texture2D> generate(const RES &p_from, const Size2 &p_size) const override;
|
||||
|
||||
EditorTileMapPatternPreviewPlugin();
|
||||
~EditorTileMapPatternPreviewPlugin();
|
||||
};
|
||||
#endif // EDITORPREVIEWPLUGINS_H
|
||||
|
||||
Reference in New Issue
Block a user