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

Function IsLevelUpButtonVisible

Source/control.cpp:634–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634bool IsLevelUpButtonVisible()
635{
636 if (spselflag || chrflag || MyPlayer->_pStatPts == 0) {
637 return false;
638 }
639 if (ControlMode == ControlTypes::VirtualGamepad) {
640 return false;
641 }
642 if (stextflag != TalkID::None || IsStashOpen) {
643 return false;
644 }
645 if (QuestLogIsOpen && GetLeftPanel().contains(GetMainPanel().position + Displacement { 0, -74 })) {
646 return false;
647 }
648
649 return true;
650}
651
652} // namespace
653

Callers 2

CheckLvlBtnFunction · 0.85
DrawLevelUpIconFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected