Added option to show/hide grid coordinates

This commit is contained in:
Yousef Khadadeh 2025-09-25 16:28:28 +03:00
parent 8cc1486234
commit 8f0ca434d6
3 changed files with 6 additions and 4 deletions

View file

@ -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();