MCPcopy Create free account
hub / github.com/EasyRPG/Player / DrawMinMax

Method DrawMinMax

src/window_actorstatus.cpp:67–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void Window_ActorStatus::DrawMinMax(int cx, int cy, int min, int max, int color) {
68 std::stringstream ss;
69 if (max >= 0) {
70 ss << min;
71 } else {
72 ss << actor.GetExpString(true);
73 }
74 contents->TextDraw(cx, cy, color, ss.str(), Text::AlignRight);
75 contents->TextDraw(cx, cy, Font::ColorDefault, "/");
76 ss.str("");
77 if (max >= 0) {
78 ss << max;
79 } else {
80 ss << actor.GetNextExpString(true);
81 }
82 contents->TextDraw(cx + 48, cy, Font::ColorDefault, ss.str(), Text::AlignRight);
83}

Callers

nothing calls this directly

Calls 3

GetExpStringMethod · 0.80
TextDrawMethod · 0.80
GetNextExpStringMethod · 0.80

Tested by

no test coverage detected