Finally can pick things up, but it's really bad so far. Need a bunch of refactoring in how the collision system works, and make it so collision and maps can have multiple entities in the same square.
This commit is contained in:
parent
2458f01ebd
commit
2aa4f0a2e8
13 changed files with 78 additions and 43 deletions
|
@ -15,7 +15,7 @@ namespace gui {
|
|||
$gui.position(STATUS_UI_X, STATUS_UI_Y, STATUS_UI_WIDTH, STATUS_UI_HEIGHT);
|
||||
$gui.layout(
|
||||
"[ritual_ui]"
|
||||
"[earing|armor_head|amulet]"
|
||||
"[earring|armor_head|amulet]"
|
||||
"[back|*%(200,300)character_view|_|armor_bdy]"
|
||||
"[hand_r|_|_ |hand_l]"
|
||||
"[ring_r|_|_ |ring_l]"
|
||||
|
@ -43,7 +43,7 @@ namespace gui {
|
|||
} else {
|
||||
$gui.set<Textual>(button, {guecs::to_wstring(name)});
|
||||
$gui.set<Clickable>(button, {
|
||||
guecs::make_action(*$level.world, Events::GUI::INV_SELECT, {button})
|
||||
guecs::make_action($level, Events::GUI::INV_SELECT, {button})
|
||||
});
|
||||
$gui.set<DropTarget>(button, {
|
||||
.commit=[&, button](DinkyECS::Entity world_target) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue