Skip to content

Commit

Permalink
Health to new sprite #316
Browse files Browse the repository at this point in the history
  • Loading branch information
kremius committed Sep 10, 2018
1 parent e2f3bb8 commit bff861a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions exec/icons/screen1.dmi.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{
"dirs": 1,
"frames": 1,
"state": "health0old"
"state": "health0"
},
{
"dirs": 1,
Expand Down Expand Up @@ -456,7 +456,7 @@
{
"dirs": 1,
"frames": 1,
"state": "health0"
"state": "health0_new"
},
{
"dirs": 1,
Expand Down
6 changes: 3 additions & 3 deletions sources/core/objects/mobs/HumanInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ kv::HumanInterface::HumanInterface()
{
Button lay;
lay.position = {15, 11};
lay.view.SetSprite(OLD_INTERFACE_SPRITE);
lay.view.SetSprite(DEFAULT_INTERFACE_SPRITE);
lay.view.SetState(states::NOT_LAY);
lay.name = LAY;
buttons_.append(lay);
Expand All @@ -183,7 +183,7 @@ kv::HumanInterface::HumanInterface()
{
Button health;
health.position = {15, 10};
health.view.SetSprite(OLD_INTERFACE_SPRITE);
health.view.SetSprite(DEFAULT_INTERFACE_SPRITE);
health.view.SetState("health0");
health.name = HEALTH;
buttons_.append(health);
Expand All @@ -192,7 +192,7 @@ kv::HumanInterface::HumanInterface()
{
Button oxygen;
oxygen.position = {15, 12};
oxygen.view.SetSprite(OLD_INTERFACE_SPRITE);
oxygen.view.SetSprite(DEFAULT_INTERFACE_SPRITE);
oxygen.view.SetState(states::OXYGEN);
oxygen.name = OXYGEN;
buttons_.append(oxygen);
Expand Down

0 comments on commit bff861a

Please sign in to comment.