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

Method closeBookGUI

src/interface/bookgui.cpp:492–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490-------------------------------------------------------------------------------*/
491
492void Player::BookGUI_t::closeBookGUI()
493{
494 bBookOpen = false;
495 openBookName = "";
496 openBookItem = nullptr;
497
498 if ( bookFrame )
499 {
500 bookFrame->setDisabled(true);
501 }
502
503 player.GUI.returnToPreviousActiveModule();
504}
505
506/*-------------------------------------------------------------------------------
507

Callers 3

ingameHudFunction · 0.80
dropItemFunction · 0.80
closeAllGUIsMethod · 0.80

Calls 2

setDisabledMethod · 0.45

Tested by

no test coverage detected