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

Method DrawActorLevel

src/window_base.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void Window_Base::DrawActorLevel(const Game_Actor& actor, int cx, int cy) const {
131 // Draw LV-String
132 contents->TextDraw(cx, cy, 1, lcf::Data::terms.lvl_short);
133
134 // Draw Level of the Actor
135 contents->TextDraw(cx + (lcf::Data::system.easyrpg_max_level >= 100 ? 30 : 24), cy, Font::ColorDefault, std::to_string(actor.GetLevel()), Text::AlignRight);
136}
137
138void Window_Base::DrawActorState(const Game_Battler& actor, int cx, int cy) const {
139 // Unit has Normal state if no state is set

Callers

nothing calls this directly

Calls 2

TextDrawMethod · 0.80
GetLevelMethod · 0.80

Tested by

no test coverage detected