MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / dismissed

Method dismissed

source/frontend/StarMerchantInterface.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void MerchantPane::dismissed() {
118 Pane::dismissed();
119
120 for (auto unsold : m_itemBag->takeAll())
121 m_player->giveItem(unsold);
122
123 if (m_sourceEntityId != NullEntityId)
124 m_worldClient->sendEntityMessage(m_sourceEntityId, "onMerchantClosed");
125}
126
127PanePtr MerchantPane::createTooltip(Vec2I const& screenPosition) {
128 if (m_tabSet->selectedTab() == 0) {

Callers

nothing calls this directly

Calls 3

takeAllMethod · 0.80
giveItemMethod · 0.80
sendEntityMessageMethod · 0.45

Tested by

no test coverage detected