When things die you get their things.
This commit is contained in:
parent
fb064ffbf1
commit
6a72d1160f
3 changed files with 6 additions and 2 deletions
|
@ -234,6 +234,8 @@ namespace gui {
|
|||
void DNDLoot::render() {
|
||||
if($grab_source && $grab_sprite) {
|
||||
$window.draw(*$grab_sprite);
|
||||
} else {
|
||||
dbc::log("nothing to render!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -370,8 +370,10 @@ namespace gui {
|
|||
$status_ui.render($window);
|
||||
$combat_ui.render($window);
|
||||
|
||||
// BUG: no matter how I order this the dnd sprite renders behind the loot ui
|
||||
if($loot_ui.active) $loot_ui.render($window);
|
||||
$dnd_loot.render();
|
||||
|
||||
if(in_state(State::LOOTING)) $dnd_loot.render();
|
||||
|
||||
if($map_open) {
|
||||
$map_ui.render($window, $main_ui.$compass_dir);
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
|
|||
while(main.active()) {
|
||||
main.render();
|
||||
|
||||
// ZED: need to sort out how to deal with this in the FSM
|
||||
// BUG: need to sort out how to deal with this in the FSM
|
||||
if(main.in_state(gui::State::IDLE)
|
||||
|| main.in_state(gui::State::NEXT_LEVEL)
|
||||
|| main.in_state(gui::State::LOOTING)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue