mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Renamed LibClasses * VLC to GameLibrary * LIBRARY
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "../../../lib/texts/CGeneralTextHandler.h"
|
||||
#include "../../../lib/filesystem/ResourcePath.h"
|
||||
#include "../../../lib/VCMI_Lib.h"
|
||||
#include "../../../lib/GameLibrary.h"
|
||||
|
||||
static void setIntSetting(std::string group, std::string field, int value)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ static std::string scalingToEntryString( int scaling)
|
||||
|
||||
static std::string scalingToLabelString( int scaling)
|
||||
{
|
||||
std::string string = VLC->generaltexth->translate("vcmi.systemOptions.scalingButton.hover");
|
||||
std::string string = LIBRARY->generaltexth->translate("vcmi.systemOptions.scalingButton.hover");
|
||||
boost::replace_all(string, "%p", std::to_string(scaling));
|
||||
|
||||
return string;
|
||||
@@ -56,7 +56,7 @@ static std::string scalingToLabelString( int scaling)
|
||||
|
||||
static std::string longTouchToEntryString( int duration)
|
||||
{
|
||||
std::string string = VLC->generaltexth->translate("vcmi.systemOptions.longTouchMenu.entry");
|
||||
std::string string = LIBRARY->generaltexth->translate("vcmi.systemOptions.longTouchMenu.entry");
|
||||
boost::replace_all(string, "%d", std::to_string(duration));
|
||||
|
||||
return string;
|
||||
@@ -64,7 +64,7 @@ static std::string longTouchToEntryString( int duration)
|
||||
|
||||
static std::string longTouchToLabelString( int duration)
|
||||
{
|
||||
std::string string = VLC->generaltexth->translate("vcmi.systemOptions.longTouchButton.hover");
|
||||
std::string string = LIBRARY->generaltexth->translate("vcmi.systemOptions.longTouchButton.hover");
|
||||
boost::replace_all(string, "%d", std::to_string(duration));
|
||||
|
||||
return string;
|
||||
@@ -82,7 +82,7 @@ static std::string resolutionToEntryString( int w, int h)
|
||||
|
||||
static std::string resolutionToLabelString( int w, int h)
|
||||
{
|
||||
std::string string = VLC->generaltexth->translate("vcmi.systemOptions.resolutionButton.hover");
|
||||
std::string string = LIBRARY->generaltexth->translate("vcmi.systemOptions.resolutionButton.hover");
|
||||
|
||||
boost::replace_all(string, "%w", std::to_string(w));
|
||||
boost::replace_all(string, "%h", std::to_string(h));
|
||||
@@ -293,8 +293,8 @@ void GeneralOptionsTab::selectGameResolution()
|
||||
++i;
|
||||
}
|
||||
ENGINE->windows().createAndPushWindow<CObjectListWindow>(items, nullptr,
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.resolutionMenu.hover"),
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.resolutionMenu.help"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.resolutionMenu.hover"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.resolutionMenu.help"),
|
||||
[this](int index)
|
||||
{
|
||||
setGameResolution(index);
|
||||
@@ -376,8 +376,8 @@ void GeneralOptionsTab::selectGameScaling()
|
||||
ENGINE->windows().createAndPushWindow<CObjectListWindow>(
|
||||
items,
|
||||
nullptr,
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.scalingMenu.hover"),
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.scalingMenu.help"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.scalingMenu.hover"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.scalingMenu.help"),
|
||||
[this](int index)
|
||||
{
|
||||
setGameScaling(index);
|
||||
@@ -425,8 +425,8 @@ void GeneralOptionsTab::selectLongTouchDuration()
|
||||
ENGINE->windows().createAndPushWindow<CObjectListWindow>(
|
||||
items,
|
||||
nullptr,
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.longTouchMenu.hover"),
|
||||
VLC->generaltexth->translate("vcmi.systemOptions.longTouchMenu.help"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.longTouchMenu.hover"),
|
||||
LIBRARY->generaltexth->translate("vcmi.systemOptions.longTouchMenu.help"),
|
||||
[this](int index)
|
||||
{
|
||||
setLongTouchDuration(index);
|
||||
|
||||
Reference in New Issue
Block a user