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

@ -11,14 +11,8 @@ TEST_CASE("color palette test", "[color-palette]") {
// confirm it's idempotent
palette::init();
sf::Color expect{10, 10, 10, 255};
auto gui_text = palette::get("gui/theme:dark_dark");
REQUIRE(gui_text == expect);
gui_text = palette::get("gui/theme", "mid");
REQUIRE(gui_text != expect);
expect = {100, 100, 100, 255};
REQUIRE(gui_text == expect);
REQUIRE(gui_text.r > 0);
REQUIRE(gui_text.g > 0);
REQUIRE(gui_text.b > 0);
}