Bazaar developer reference

CvPlot::showPopupText(PlayerTypes, const char *)

Defined in
CvPlot.cpp, line 10437
Class
CvPlot
Hook name
CivHooks::CvPlot_showPopupText

Hooks

static bool BeforeCvPlot_showPopupText(CvPlot* self, PlayerTypes ePlayer, const char* szMessage);static void AfterCvPlot_showPopupText(CvPlot* self, PlayerTypes ePlayer, const char* szMessage);static void ReplaceCvPlot_showPopupText(void (*original)(CvPlot*, PlayerTypes, const char*), CvPlot* self, PlayerTypes ePlayer, const char* szMessage);CivRegisterBefore<CivHooks::CvPlot_showPopupText>(host, &BeforeCvPlot_showPopupText);CivRegisterAfter<CivHooks::CvPlot_showPopupText>(host, &AfterCvPlot_showPopupText);CivRegisterReplace<CivHooks::CvPlot_showPopupText>(host, &ReplaceCvPlot_showPopupText);

Code

10436#if defined(SHOW_PLOT_POPUP)10437void CvPlot::showPopupText(PlayerTypes ePlayer, const char* szMessage)10438{10439	if (ePlayer == NO_PLAYER || isVisible(GET_PLAYER(ePlayer).getTeam()))10440	{10441		DLLUI->AddPopupText(getX(), getY(), szMessage, m_fPopupDelay);10442		m_fPopupDelay += 0.5;10443	}10444}

Calls

Called by