Bazaar developer reference

CvLeague::GetLeagueSplashTitle(LeagueSpecialSessionTypes, bool)

Defined in
CvVotingClasses.cpp, line 5071
Class
CvLeague
Hook name
CivHooks::CvLeague_GetLeagueSplashTitle

Hooks

static bool BeforeCvLeague_GetLeagueSplashTitle(CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded, CvString& result);static void AfterCvLeague_GetLeagueSplashTitle(CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded, CvString& result);static CvString ReplaceCvLeague_GetLeagueSplashTitle(CvString (*original)(CvLeague*, LeagueSpecialSessionTypes, bool), CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded);CivRegisterBefore<CivHooks::CvLeague_GetLeagueSplashTitle>(host, &BeforeCvLeague_GetLeagueSplashTitle);CivRegisterAfter<CivHooks::CvLeague_GetLeagueSplashTitle>(host, &AfterCvLeague_GetLeagueSplashTitle);CivRegisterReplace<CivHooks::CvLeague_GetLeagueSplashTitle>(host, &ReplaceCvLeague_GetLeagueSplashTitle);

Code

5071CvString CvLeague::GetLeagueSplashTitle(LeagueSpecialSessionTypes eGoverningSpecialSession, bool bJustFounded)5072{5073	CvString s = "";5074	CvLeagueSpecialSessionEntry* pInfo = GC.getLeagueSpecialSessionInfo(eGoverningSpecialSession);50755076	if (!bJustFounded && pInfo != NULL)5077	{5078		Localization::String sTemp = Localization::Lookup(pInfo->GetDescriptionKey());5079		s += sTemp.toUTF8();5080	}5081	else5082	{5083		Localization::String sTemp = Localization::Lookup("TXT_KEY_LEAGUE_SPLASH_TITLE_FOUNDED");5084		s += sTemp.toUTF8();5085	}50865087	return s;5088}

Calls

Called by