wippatern_preview: Adding patern preview

This adds a preview of the patern placement, checking out of bound
This commit is contained in:
2026-01-14 13:33:48 +01:00
parent 6f5ec1d811
commit 3c37d9aca4
9 changed files with 132 additions and 13 deletions

View File

@@ -22,6 +22,7 @@ class SelectionMenu;
class ControlMenu;
class Selection;
class PaternsMenu;
class PaternPreview;
typedef struct ctx {
std::shared_ptr<World> world = nullptr;
@@ -32,6 +33,7 @@ typedef struct ctx {
std::shared_ptr<ControlMenu> control_menu = nullptr;
std::shared_ptr<Selection> selection = nullptr;
std::shared_ptr<PaternsMenu> paterns_menu = nullptr;
std::shared_ptr<PaternPreview> patern_preview = nullptr;
nlohmann::json config_json;
std::filesystem::path program_dir;
} ctx;