diff options
author | Hop311 <Hop3114@gmail.com> | 2024-08-06 11:36:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 11:36:56 +0200 |
commit | 9f9c5844bfedc5e366a35cdba386027fb9f3a14a (patch) | |
tree | 2581b276b6b0f6f26d8e9d67755cf9cc21556f82 /src/openvic-simulation/interface/GFXSprite.hpp | |
parent | 3c07aa7a890e82d1ba28bdc3bbb1a8f9896f25d1 (diff) | |
parent | 2314a9b6c48eab47cc776d08ef7d155f9bea423d (diff) |
Merge pull request #184 from OpenVicProject/font-colour-codes
Load font colour codes
Diffstat (limited to 'src/openvic-simulation/interface/GFXSprite.hpp')
-rw-r--r-- | src/openvic-simulation/interface/GFXSprite.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/openvic-simulation/interface/GFXSprite.hpp b/src/openvic-simulation/interface/GFXSprite.hpp index 49691c1..cee8c42 100644 --- a/src/openvic-simulation/interface/GFXSprite.hpp +++ b/src/openvic-simulation/interface/GFXSprite.hpp @@ -11,16 +11,19 @@ namespace OpenVic::GFX { struct Font : HasIdentifierAndAlphaColour { friend class OpenVic::UIManager; + using colour_codes_t = ordered_map<char, colour_t>; + private: std::string PROPERTY(fontname); std::string PROPERTY(charset); uint32_t PROPERTY(height); + colour_codes_t PROPERTY(colour_codes); - // TODO - colorcodes, effect + // TODO - effect Font( std::string_view new_identifier, colour_argb_t new_colour, std::string_view new_fontname, - std::string_view new_charset, uint32_t new_height + std::string_view new_charset, uint32_t new_height, colour_codes_t&& new_colour_codes ); public: |