1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

Renamed LibClasses * VLC to GameLibrary * LIBRARY

This commit is contained in:
Ivan Savenko
2025-02-14 16:23:37 +00:00
parent 156de5b17e
commit 645b95ba02
287 changed files with 2032 additions and 2032 deletions

View File

@ -35,7 +35,7 @@
#include "../../lib/json/JsonUtils.h"
#include "../../lib/texts/CGeneralTextHandler.h"
#include "../../lib/filesystem/ResourcePath.h"
#include "../../lib/VCMI_Lib.h"
#include "../../lib/GameLibrary.h"
InterfaceObjectConfigurable::InterfaceObjectConfigurable(const JsonNode & config, int used, Point offset):
InterfaceObjectConfigurable(used, offset)
@ -186,7 +186,7 @@ std::string InterfaceObjectConfigurable::readText(const JsonNode & config) const
if(s.empty())
return s;
logGlobal->debug("Reading text from translations by key: %s", s);
return VLC->generaltexth->translate(s);
return LIBRARY->generaltexth->translate(s);
}
Point InterfaceObjectConfigurable::readPosition(const JsonNode & config) const
@ -304,8 +304,8 @@ std::pair<std::string, std::string> InterfaceObjectConfigurable::readHintText(co
if(config.getType() == JsonNode::JsonType::DATA_STRING)
{
logGlobal->debug("Reading hint text (help) from generaltext handler:%sd", config.String());
result.first = VLC->generaltexth->translate( config.String(), "hover");
result.second = VLC->generaltexth->translate( config.String(), "help");
result.first = LIBRARY->generaltexth->translate( config.String(), "hover");
result.second = LIBRARY->generaltexth->translate( config.String(), "help");
}
}
return result;