MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / DrawLevelUpIcon

Function DrawLevelUpIcon

Source/control.cpp:1237–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237void DrawLevelUpIcon(const Surface &out)
1238{
1239 if (IsLevelUpButtonVisible()) {
1240 int nCel = lvlbtndown ? 2 : 1;
1241 DrawString(out, _("Level Up"), { GetMainPanel().position + Displacement { 0, -62 }, { 120, 0 } }, { UiFlags::ColorWhite | UiFlags::AlignCenter });
1242 ClxDraw(out, GetMainPanel().position + Displacement { 40, -17 }, (*pChrButtons)[nCel]);
1243 }
1244}
1245
1246void CheckChrBtns()
1247{

Callers 1

DrawViewFunction · 0.85

Calls 3

IsLevelUpButtonVisibleFunction · 0.85
ClxDrawFunction · 0.85
DrawStringFunction · 0.50

Tested by

no test coverage detected