Basic loot UI mostly working. Each time you open there's a torch and you can place it visually on any slot on your character.
This commit is contained in:
parent
4b34de2109
commit
5c47a0151c
13 changed files with 123 additions and 46 deletions
|
@ -4,6 +4,8 @@ namespace guecs {
|
|||
|
||||
Clickable make_action(DinkyECS::World& target, Events::GUI event) {
|
||||
return {[&, event](auto ent, auto data){
|
||||
// BUG: I think entityt here shifted and isn't part of the world anymore
|
||||
// BUG: it's actually coming from the GUI so passing it here is wrong
|
||||
// remember that ent is passed in from the UI::mouse handler
|
||||
target.send<Events::GUI>(event, ent, data);
|
||||
}};
|
||||
|
@ -11,6 +13,8 @@ namespace guecs {
|
|||
|
||||
Clickable make_action(DinkyECS::World& target, Events::GUI event, std::any data) {
|
||||
return {[&, event, data](auto ent, auto){
|
||||
// BUG: I think entityt here shifted and isn't part of the world anymore
|
||||
// BUG: it's actually coming from the GUI so passing it here is wrong
|
||||
// remember that ent is passed in from the UI::mouse handler
|
||||
target.send<Events::GUI>(event, ent, data);
|
||||
}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue