Now the body_ui handles the toughness and attack rating, and applies colors to show your body part status.

This commit is contained in:
Zed A. Shaw 2026-04-03 23:42:49 -04:00
parent 009c5c1cd2
commit 831b46fa3f
11 changed files with 92 additions and 20 deletions

View file

@ -66,11 +66,11 @@ namespace gui {
void FSM::INTRO(Event ev) {
dbc::check($story != nullptr, "you forgot the stroy");
if($story->playing()) {
if(ev == game::Event::MOUSE_CLICK) {
$story->stop();
}
} else {
if(ev == game::Event::MOUSE_CLICK) {
$story->stop();
}
if(!$story->playing()) {
$story = nullptr;
state(State::IDLE);
}