|
|
@ -136,12 +136,6 @@ namespace gui { |
|
|
|
void FSM::IDLE(Event ev, std::any data) { |
|
|
|
void FSM::IDLE(Event ev, std::any data) { |
|
|
|
using enum Event; |
|
|
|
using enum Event; |
|
|
|
|
|
|
|
|
|
|
|
auto& player_pos = System::player_position($level); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fmt::println("AIMING AT: {},{}; POS: {},{}", |
|
|
|
|
|
|
|
player_pos.aiming_at.x, player_pos.aiming_at.y, |
|
|
|
|
|
|
|
player_pos.location.x, player_pos.location.y); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sound::stop("walk"); |
|
|
|
sound::stop("walk"); |
|
|
|
|
|
|
|
|
|
|
|
switch(ev) { |
|
|
|
switch(ev) { |
|
|
@ -387,8 +381,6 @@ namespace gui { |
|
|
|
|
|
|
|
|
|
|
|
$status_ui.render($window); |
|
|
|
$status_ui.render($window); |
|
|
|
$combat_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); |
|
|
|
if($loot_ui.active) $loot_ui.render($window); |
|
|
|
|
|
|
|
|
|
|
|
if(in_state(State::LOOTING)) $dnd_loot.render(); |
|
|
|
if(in_state(State::LOOTING)) $dnd_loot.render(); |
|
|
|