Now the body_ui handles the toughness and attack rating, and applies colors to show your body part status.
This commit is contained in:
parent
009c5c1cd2
commit
831b46fa3f
11 changed files with 92 additions and 20 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue