Have a few basic monochrome test items and the first little leather pouches on the 'tool belt'.
This commit is contained in:
parent
d7ff7d6acf
commit
5af9a6664e
27 changed files with 41 additions and 28 deletions
|
@ -29,6 +29,15 @@ namespace gui {
|
|||
}
|
||||
|
||||
void RitualUI::init() {
|
||||
std::vector<std::string> junk_list{
|
||||
{"chess_pawn"},
|
||||
{"dirty_kerchief"},
|
||||
{"mushroom"},
|
||||
{"pocket_watch"},
|
||||
{"rusty_nails"},
|
||||
{"severed_finger"}
|
||||
};
|
||||
|
||||
for(auto& [name, cell] : $gui.cells()) {
|
||||
auto button = $gui.entity(name);
|
||||
|
||||
|
@ -38,15 +47,8 @@ namespace gui {
|
|||
[&](auto ent, auto){ ritual_circle_clicked(ent); }
|
||||
});
|
||||
} else if(name.starts_with("inv_slot")) {
|
||||
|
||||
if(button % 5 == 0) {
|
||||
$gui.set<Sprite>(button, {"cinqueda"});
|
||||
} else if(button % 9 == 0) {
|
||||
$gui.set<Sprite>(button, {"healing_potion_small"});
|
||||
} else if(button % 3 == 0) {
|
||||
$gui.set<Sprite>(button, {"torch_horizontal_floor"});
|
||||
}
|
||||
|
||||
$gui.set<Sprite>(button, {
|
||||
fmt::format("{}-64", junk_list[button % junk_list.size()])});
|
||||
$gui.set<Clickable>(button, {
|
||||
[&](auto ent, auto){ inv_slot_clicked(ent); }
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue