mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:30:04 +00:00
Placefile text statement support
- Merged place and text - Todo: Custom fonts not yet supported - Todo: End statements sometimes appear after "Text" or other items - Todo: Support "Title" statement
This commit is contained in:
parent
9f5de14f6b
commit
48d71cc14d
3 changed files with 80 additions and 25 deletions
|
|
@ -37,7 +37,6 @@ public:
|
|||
|
||||
enum class ItemType
|
||||
{
|
||||
Place,
|
||||
Icon,
|
||||
Font,
|
||||
Text,
|
||||
|
|
@ -54,16 +53,18 @@ public:
|
|||
boost::units::quantity<boost::units::si::length> threshold_ {};
|
||||
};
|
||||
|
||||
struct PlaceDrawItem : DrawItem
|
||||
struct TextDrawItem : DrawItem
|
||||
{
|
||||
PlaceDrawItem() { itemType_ = ItemType::Place; }
|
||||
TextDrawItem() { itemType_ = ItemType::Text; }
|
||||
|
||||
boost::gil::rgba8_pixel_t color_ {};
|
||||
double latitude_ {};
|
||||
double longitude_ {};
|
||||
double x_ {};
|
||||
double y_ {};
|
||||
std::size_t fontNumber_ {0u};
|
||||
std::string text_ {};
|
||||
std::string hoverText_ {};
|
||||
};
|
||||
|
||||
bool IsValid() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue