MCPcopy Create free account
hub / github.com/diasurgical/devilution / DrawManaFlask

Function DrawManaFlask

Source/control.cpp:654–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654void DrawManaFlask()
655{
656 int filled = plr[myplr]._pManaPer;
657 if (filled > 80)
658 filled = 80;
659 filled = 80 - filled;
660 if (filled > 11)
661 filled = 11;
662 filled += 2;
663
664 DrawFlask(pManaBuff, 88, 277, gpBuffer, SCREENXY(PANEL_LEFT + 475, PANEL_TOP - 13), filled);
665 if (filled != 13)
666 DrawFlask(pBtmBuff, PANEL_WIDTH, PANEL_WIDTH * (filled + 3) + 475, gpBuffer, SCREENXY(PANEL_LEFT + 475, PANEL_TOP - 13 + filled), 13 - filled);
667}
668
669void control_update_life_mana()
670{

Callers 1

DrawViewFunction · 0.85

Calls 1

DrawFlaskFunction · 0.85

Tested by

no test coverage detected