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

Method closeCalloutMenuGUI

src/interface/interface.cpp:29457–29486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29455}
29456
29457void CalloutRadialMenu::closeCalloutMenuGUI()
29458{
29459 if ( calloutMenuIsOpen() )
29460 {
29461 players[gui_player]->worldUI.reset();
29462 }
29463 bOpen = false;
29464 lockOnEntityUid = 0;
29465 selectMoveTo = false;
29466 menuX = -1;
29467 menuY = -1;
29468 moveToX = -1;
29469 moveToY = -1;
29470 menuToggleClick = false;
29471 holdWheel = false;
29472 optionSelected = -1;
29473 if ( calloutFrame )
29474 {
29475 calloutFrame->setDisabled(true);
29476 for ( auto f : calloutFrame->getFrames() )
29477 {
29478 f->removeSelf();
29479 }
29480 }
29481 animTitle = 0.0;
29482 animWheel = 0.0;
29483 openedThisTick = 0;
29484 animInvalidAction = 0.0;
29485 animInvalidActionTicks = 0;
29486}
29487
29488std::string& CalloutRadialMenu::WorldIconEntry_t::getPlayerIconPath(const int playernum)
29489{

Callers 11

handleActionsMethod · 0.80
actPlayerFunction · 0.80
gameLogicFunction · 0.80
doConsoleCommandsFunction · 0.80
mainFunction · 0.80
doNewGameFunction · 0.80
doEndgameFunction · 0.80
changeLevelFunction · 0.80
openStatusScreenMethod · 0.80
closeAllGUIsMethod · 0.80
openGUIMethod · 0.80

Calls 3

removeSelfMethod · 0.80
resetMethod · 0.45
setDisabledMethod · 0.45

Tested by

no test coverage detected