Grid edit tool, grid menu, and bookmark menu improved

This commit is contained in:
Yousef Khadadeh 2025-09-16 16:44:33 +03:00
parent ffc9d42c5b
commit 47232ec7e9
8 changed files with 179 additions and 74 deletions

View file

@ -1,4 +1,5 @@
#include "GridManager.hpp"
#include "World.hpp"
GridManager::GridManager(World& w):
world(w) {}
@ -8,6 +9,7 @@ void GridManager::init_client_callbacks() {
void GridManager::add_grid(const std::string& name) {
WorldGrid g;
g.color = color_mul_alpha(convert_vec4<Vector4f>(world.canvasTheme.toolFrontColor), 0.6f);
grids[name] = g;
changed = true;
}