MCPcopy Create free account
hub / github.com/TurningWheel/Barony / bActiveModuleUsesInventory

Method bActiveModuleUsesInventory

src/interface/interface.cpp:1025–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025bool Player::GUI_t::bActiveModuleUsesInventory()
1026{
1027 if ( hoveringOverModuleButton() != MODULE_NONE )
1028 {
1029 return false;
1030 }
1031 switch ( activeModule )
1032 {
1033 case MODULE_INVENTORY:
1034 if ( dropdownMenu.bOpen
1035 && (dropdownMenu.currentName.find("paper_doll") != std::string::npos) )
1036 {
1037 return false;
1038 }
1039 return true;
1040 case MODULE_HOTBAR:
1041 case MODULE_SHOP:
1042 case MODULE_CHEST:
1043 case MODULE_REMOVECURSE:
1044 case MODULE_IDENTIFY:
1045 case MODULE_TINKERING:
1046 case MODULE_FEATHER:
1047 case MODULE_SPELLS:
1048 case MODULE_ALCHEMY:
1049 case MODULE_ASSISTSHRINE:
1050 case MODULE_MAILBOX:
1051 return true;
1052 default:
1053 break;
1054 }
1055 return false;
1056}
1057
1058bool Player::GUI_t::warpControllerToModule(bool moveCursorInstantly)
1059{

Callers 4

updateAlchemyMenuMethod · 0.80
updateAssistShrineMethod · 0.80
updateMailMenuMethod · 0.80
updateInventoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected