Added option to show/hide grid coordinates
This commit is contained in:
parent
8cc1486234
commit
8f0ca434d6
3 changed files with 6 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ class GridManager;
|
|||
class WorldGrid {
|
||||
public:
|
||||
template <class Archive> void serialize(Archive& a) {
|
||||
a(name, gridType, size, visible, offset, bounds, color, removeDivisionsOutwards, subdivisions);
|
||||
a(name, gridType, size, visible, offset, bounds, color, removeDivisionsOutwards, subdivisions, showCoordinates);
|
||||
}
|
||||
|
||||
void draw(GridManager& gMan, SkCanvas* canvas, const DrawData& drawData);
|
||||
|
|
@ -29,6 +29,7 @@ class WorldGrid {
|
|||
Vector4f color{1.0f, 1.0f, 1.0f, 1.0f};
|
||||
bool removeDivisionsOutwards = false;
|
||||
uint32_t subdivisions = 1;
|
||||
bool showCoordinates = false;
|
||||
|
||||
std::string get_display_name();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue