Worked out the status UI more, setup the color scheme, and fixed various small problems with looting causing a crash.

This commit is contained in:
Zed A. Shaw 2026-03-29 13:15:39 -04:00
parent db60f75bd9
commit 36a49ef768
6 changed files with 48 additions and 40 deletions

View file

@ -18,12 +18,13 @@ namespace gui {
$gui.init();
}
inline void make_clickable_area(guecs::UI &gui, const std::string &name) {
inline void make_clickable_area(guecs::UI &gui, const std::string name) {
auto area = gui.entity(name);
gui.set<Clickable>(area, {
[&](auto) {
[=](auto) {
auto world = GameDB::current_world();
fmt::println("CLICK {}", name);
world->send<game::Event>(game::Event::AIM_CLICK, area, {});
}
});