aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/interface/GFX.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-12-23 19:26:05 +0100
committer hop311 <hop3114@gmail.com>2023-12-23 19:26:05 +0100
commit8a33982e543b7fb8c09be90ebadb33fe7f99b52f (patch)
tree0fb82e22b383996606ef6adc3e92c42d85bc6777 /src/openvic-simulation/interface/GFX.hpp
parent14e47d58b85f657ec1fed8abf88219f09bd3efbb (diff)
Fixed TGC compatibility + misc cleanup
Diffstat (limited to 'src/openvic-simulation/interface/GFX.hpp')
-rw-r--r--src/openvic-simulation/interface/GFX.hpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/openvic-simulation/interface/GFX.hpp b/src/openvic-simulation/interface/GFX.hpp
index ff27613..c7523b3 100644
--- a/src/openvic-simulation/interface/GFX.hpp
+++ b/src/openvic-simulation/interface/GFX.hpp
@@ -45,7 +45,7 @@ namespace OpenVic::GFX {
std::string PROPERTY(texture_file);
frame_t PROPERTY(no_of_frames);
- // TODO - norefcount, effectFile, allwaystransparent
+ // TODO - effectFile, allwaystransparent
protected:
TextureSprite();
@@ -59,6 +59,24 @@ namespace OpenVic::GFX {
OV_DETAIL_GET_TYPE
};
+ class TileTextureSprite final : public Sprite {
+ friend std::unique_ptr<TileTextureSprite> std::make_unique<TileTextureSprite>();
+
+ std::string PROPERTY(texture_file);
+ ivec2_t PROPERTY(size);
+
+ protected:
+ TileTextureSprite();
+
+ bool _fill_key_map(NodeTools::key_map_t& key_map) override;
+
+ public:
+ TileTextureSprite(TileTextureSprite&&) = default;
+ virtual ~TileTextureSprite() = default;
+
+ OV_DETAIL_GET_TYPE
+ };
+
class ProgressBar final : public Sprite {
friend std::unique_ptr<ProgressBar> std::make_unique<ProgressBar>();