| 35 | } |
| 36 | |
| 37 | void Window_SkillStatus::Refresh() { |
| 38 | contents->ClearRect(Rect(0, 0, contents->GetWidth(), 16)); |
| 39 | |
| 40 | // Actors are guaranteed to be valid |
| 41 | int x = 0; |
| 42 | int y = 2; |
| 43 | DrawActorName(*actor, x, y); |
| 44 | x += 80; |
| 45 | DrawActorLevel(*actor, x, y); |
| 46 | x += 44; |
| 47 | DrawActorState(*actor, x, y); |
| 48 | int hpdigits = (actor->MaxHpValue() >= 1000) ? 4 : 3; |
| 49 | int spdigits = (actor->MaxSpValue() >= 1000) ? 4 : 3; |
| 50 | x += (96 - hpdigits * 6 - spdigits * 6); |
| 51 | DrawActorHp(*actor, x, y, hpdigits); |
| 52 | x += (66 + hpdigits * 6 - spdigits * 6); |
| 53 | DrawActorSp(*actor, x, y, spdigits); |
| 54 | } |
nothing calls this directly
no test coverage detected