mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Refactoring of GeneralTextHandler to reduce boilerplate code in callers
This commit is contained in:
@@ -303,7 +303,7 @@ void CQuest::getRolloverText(MetaString &ms, bool onHover) const
|
||||
std::string questName = missionName(Emission(missionType-1));
|
||||
std::string questState = missionState(onHover ? 3 : 4);
|
||||
|
||||
ms << VLC->generaltexth->translate("core.seerhut.quest." + questName + "." + questState,textOption);
|
||||
ms << VLC->generaltexth->translate("core.seerhut.quest", questName, questState,textOption);
|
||||
|
||||
switch(missionType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user