mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Merge branch 'develop' into chinese
This commit is contained in:
@@ -174,17 +174,13 @@ void CSettingsView::loadSettings()
|
||||
ui->sliderControllerSticksAcceleration->setValue(settings["input"]["controllerAxisScale"].Float() * 100);
|
||||
ui->lineEditGameLobbyHost->setText(QString::fromStdString(settings["lobby"]["hostname"].String()));
|
||||
ui->spinBoxNetworkPortLobby->setValue(settings["lobby"]["port"].Integer());
|
||||
|
||||
auto mainWindow = getMainWindow();
|
||||
if(mainWindow)
|
||||
{
|
||||
bool fontModAvailable = mainWindow->getModView()->isModInstalled("vcmi-extras.truetypefonts");
|
||||
if(!fontModAvailable)
|
||||
{
|
||||
ui->labelTtfFont->hide();
|
||||
ui->buttonTtfFont->hide();
|
||||
}
|
||||
}
|
||||
|
||||
if (settings["video"]["fontsType"].String() == "auto")
|
||||
ui->buttonFontAuto->setChecked(true);
|
||||
else if (settings["video"]["fontsType"].String() == "original")
|
||||
ui->buttonFontOriginal->setChecked(true);
|
||||
else
|
||||
ui->buttonFontScalable->setChecked(true);
|
||||
|
||||
loadToggleButtonSettings();
|
||||
}
|
||||
@@ -210,9 +206,9 @@ void CSettingsView::loadToggleButtonSettings()
|
||||
int cursorTypeIndex = vstd::find_pos(cursorTypesList, cursorType);
|
||||
setCheckbuttonState(ui->buttonCursorType, cursorTypeIndex);
|
||||
|
||||
auto mainWindow = getMainWindow();
|
||||
if(mainWindow)
|
||||
setCheckbuttonState(ui->buttonTtfFont, mainWindow->getModView()->isModEnabled("vcmi-extras.truetypefonts"));
|
||||
int fontScalingPercentage = settings["video"]["fontScalingFactor"].Float() * 100;
|
||||
ui->sliderScalingFont->setValue(fontScalingPercentage / 5);
|
||||
|
||||
}
|
||||
|
||||
void CSettingsView::fillValidResolutions()
|
||||
@@ -770,12 +766,28 @@ void CSettingsView::on_sliderControllerSticksSensitivity_valueChanged(int value)
|
||||
node->Integer() = value;
|
||||
}
|
||||
|
||||
void CSettingsView::on_buttonTtfFont_toggled(bool value)
|
||||
void CSettingsView::on_sliderScalingFont_valueChanged(int value)
|
||||
{
|
||||
auto mainWindow = getMainWindow();
|
||||
if(value)
|
||||
mainWindow->getModView()->enableModByName("vcmi-extras.truetypefonts");
|
||||
else
|
||||
mainWindow->getModView()->disableModByName("vcmi-extras.truetypefonts");
|
||||
updateCheckbuttonText(ui->buttonTtfFont);
|
||||
int actualValuePercentage = value * 5;
|
||||
ui->labelScalingFontValue->setText(QString("%1%").arg(actualValuePercentage));
|
||||
Settings node = settings.write["video"]["fontScalingFactor"];
|
||||
node->Float() = actualValuePercentage / 100.0;
|
||||
}
|
||||
|
||||
void CSettingsView::on_buttonFontAuto_clicked(bool checked)
|
||||
{
|
||||
Settings node = settings.write["video"]["fontsType"];
|
||||
node->String() = "auto";
|
||||
}
|
||||
|
||||
void CSettingsView::on_buttonFontScalable_clicked(bool checked)
|
||||
{
|
||||
Settings node = settings.write["video"]["fontsType"];
|
||||
node->String() = "scalable";
|
||||
}
|
||||
|
||||
void CSettingsView::on_buttonFontOriginal_clicked(bool checked)
|
||||
{
|
||||
Settings node = settings.write["video"]["fontsType"];
|
||||
node->String() = "original";
|
||||
}
|
||||
|
||||
@@ -88,7 +88,13 @@ private slots:
|
||||
|
||||
void on_sliderControllerSticksSensitivity_valueChanged(int value);
|
||||
|
||||
void on_buttonTtfFont_toggled(bool value);
|
||||
//void on_buttonTtfFont_toggled(bool value);
|
||||
|
||||
void on_sliderScalingFont_valueChanged(int value);
|
||||
|
||||
void on_buttonFontAuto_clicked(bool checked);
|
||||
void on_buttonFontScalable_clicked(bool checked);
|
||||
void on_buttonFontOriginal_clicked(bool checked);
|
||||
|
||||
private:
|
||||
Ui::CSettingsView * ui;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -102,7 +102,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistmodel_moc.cpp" line="44"/>
|
||||
<source>Test</source>
|
||||
<translation>Testa</translation>
|
||||
<translation>Test</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistmodel_moc.cpp" line="45"/>
|
||||
@@ -224,7 +224,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.ui" line="86"/>
|
||||
<source>Active</source>
|
||||
<translation>Tillgångar</translation>
|
||||
<translation>Aktiv</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.ui" line="91"/>
|
||||
@@ -290,7 +290,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.ui" line="340"/>
|
||||
<source>Abort</source>
|
||||
<translation>Ge upp</translation>
|
||||
<translation>Avbryt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="289"/>
|
||||
@@ -315,7 +315,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="296"/>
|
||||
<source>Download size</source>
|
||||
<translation>Nedladdningsstorlek</translation>
|
||||
<translation>Nedladdnings-storlek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="298"/>
|
||||
@@ -346,7 +346,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="321"/>
|
||||
<source>Supported VCMI version</source>
|
||||
<translation>Stödd VCMI-version</translation>
|
||||
<translation>VCMI-version som stöds</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="321"/>
|
||||
@@ -357,7 +357,7 @@
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="193"/>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="824"/>
|
||||
<source>mods repository index</source>
|
||||
<translation>Modd-repositorie index</translation>
|
||||
<translation>Modd-repositorie-index</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="323"/>
|
||||
@@ -392,22 +392,22 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="359"/>
|
||||
<source>This mod can not be enabled because the following mods are incompatible with it</source>
|
||||
<translation>Denna modd kan inte aktiveras eftersom följande beroenden är inkompatibla med den</translation>
|
||||
<translation>Denna modd kan inte aktiveras eftersom följande moddar är inkompatibla med den</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="360"/>
|
||||
<source>This mod cannot be disabled because it is required by the following mods</source>
|
||||
<translation>Denna modd kan inte inaktiveras eftersom den krävs för följande beroenden</translation>
|
||||
<translation>Denna modd kan inte inaktiveras eftersom den krävs för följande modd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="361"/>
|
||||
<source>This mod cannot be uninstalled or updated because it is required by the following mods</source>
|
||||
<translation>Denna modd kan inte avinstalleras eller uppdateras eftersom den krävs för följande beroenden</translation>
|
||||
<translation>Denna modd kan inte avinstalleras eller uppdateras eftersom den krävs för följande modd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="362"/>
|
||||
<source>This is a submod and it cannot be installed or uninstalled separately from its parent mod</source>
|
||||
<translation>Denna undermodd/submodd kan inte installeras eller uppdateras separat från huvud-modden</translation>
|
||||
<translation>Detta är en undermodd/submodd och den kan inte installeras eller avinstalleras separat från huvud-modden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="377"/>
|
||||
@@ -467,7 +467,7 @@
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="720"/>
|
||||
<source>Downloading %1. %p% (%v MB out of %m MB) finished</source>
|
||||
<translation>Ladda ner %1. %p% (%v MB av %m MB) slutfört</translation>
|
||||
<translation>Laddar ner %1. %p% (%v MB av %m MB) slutfört</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="745"/>
|
||||
@@ -494,7 +494,7 @@ Fel påträffat:
|
||||
Install successfully downloaded?</source>
|
||||
<translation>
|
||||
|
||||
Installera lyckade nedladdningar?</translation>
|
||||
Installation framgångsrikt nedladdad?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="852"/>
|
||||
@@ -504,7 +504,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="925"/>
|
||||
<source>Installing mod %1</source>
|
||||
<translation>Installera mod %1</translation>
|
||||
<translation>Installera modd %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="994"/>
|
||||
@@ -526,7 +526,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="1036"/>
|
||||
<source>Screenshot %1</source>
|
||||
<translation>Skriv ut skärm %1</translation>
|
||||
<translation>Skärmbild %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodlistview_moc.cpp" line="284"/>
|
||||
@@ -570,7 +570,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="200"/>
|
||||
<source>Mod is not compatible, please update VCMI and checkout latest mod revisions</source>
|
||||
<translation>Modden är inte kompatibel. Vänligen uppdatera VCMI och kontrollera att du har den senaste versionen av modden</translation>
|
||||
<translation>Modden är inte kompatibel. Vänligen uppdatera VCMI och kontrollera att du har den senaste kompatibla versionen av modden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="205"/>
|
||||
@@ -580,7 +580,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="210"/>
|
||||
<source>Required mod %1 is not enabled</source>
|
||||
<translation>Den obligatorisk modden %1 är inte aktiverad</translation>
|
||||
<translation>Den obligatoriska modden %1 är inte aktiverad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="219"/>
|
||||
@@ -616,7 +616,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="322"/>
|
||||
<source>Failed to extract mod data</source>
|
||||
<translation>Det gick inte att extrahera data från modd</translation>
|
||||
<translation>Misslyckades att extrahera data från modd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../modManager/cmodmanager.cpp" line="350"/>
|
||||
@@ -661,7 +661,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="593"/>
|
||||
<source>VSync</source>
|
||||
<translation>Vertikal synkronisering</translation>
|
||||
<translation>Vertikal-synkronisering (VSync)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="490"/>
|
||||
@@ -691,7 +691,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="835"/>
|
||||
<source>Software Cursor</source>
|
||||
<translation>Programvarumarkör (muspekare)</translation>
|
||||
<translation>Programvarustyrd muspekare</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="1166"/>
|
||||
@@ -731,7 +731,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="1158"/>
|
||||
<source>Upscaling Filter</source>
|
||||
<translation>Förstoringsfilter</translation>
|
||||
<translation>Uppskalnings-filter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="317"/>
|
||||
@@ -766,7 +766,7 @@ Installera lyckade nedladdningar?</translation>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="1144"/>
|
||||
<source>Show Tutorial again</source>
|
||||
<translation>Visa övningsgenomgången igen</translation>
|
||||
<translation>Visa handledningen/övningsgenomgången igen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="1151"/>
|
||||
@@ -853,7 +853,7 @@ Exklusivt helskärmsläge - spelet kommer att täcka hela skärmen och använda
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="407"/>
|
||||
<source>Borderless fullscreen</source>
|
||||
<translation>Kantlöst fönsterläge</translation>
|
||||
<translation>Kantlös helskärm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="412"/>
|
||||
@@ -923,7 +923,7 @@ Exklusivt helskärmsläge - spelet kommer att täcka hela skärmen och använda
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="646"/>
|
||||
<source>Check on startup</source>
|
||||
<translation>Kontrollera vid start</translation>
|
||||
<translation>Kontrollera vid uppstart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../settingsView/csettingsview_moc.ui" line="828"/>
|
||||
@@ -1151,12 +1151,12 @@ Exklusivt helskärmsläge - spelet kommer att täcka hela skärmen och använda
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="504"/>
|
||||
<source>If you own Heroes III on gog.com you can download backup offline installer from gog.com, and VCMI will import Heroes III data using offline installer.
|
||||
Offline installer consists of two parts, .exe and .bin. Make sure you download both of them.</source>
|
||||
<translation>Om du äger Heroes III från GOG.com kan du ladda ner backup offline-installationsprogrammet från GOG.com - VCMI kommer att importera Heroes III-data med hjälp av offline-installationsprogrammet. Offline-installationsprogrammet består av två delar, en .exe och en .bin. Se till att ladda ner båda.</translation>
|
||||
<translation>Om du äger Heroes III från GOG.com kan du ladda ner backup offline-installationsprogrammet från 'GOG.com'. VCMI kommer att importera Heroes III-data med hjälp av offline-installationsprogrammet. Offline-installationsprogrammet består av två delar, en '.exe'- och en '.bin'fil. Se till att ladda ner båda.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="622"/>
|
||||
<source>Install a translation of Heroes III in your preferred language</source>
|
||||
<translation>Installera en översättning av Heroes III på ditt föredragna språk</translation>
|
||||
<translation>Installera en översättning av Heroes III på det språk du föredrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="867"/>
|
||||
@@ -1166,12 +1166,12 @@ Offline installer consists of two parts, .exe and .bin. Make sure you download b
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="155"/>
|
||||
<source>VCMI on Github</source>
|
||||
<translation>VCMI på Github</translation>
|
||||
<translation>VCMI på 'Github'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="162"/>
|
||||
<source>VCMI on Discord</source>
|
||||
<translation>VCMI på Discord</translation>
|
||||
<translation>VCMI på 'Discord'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="178"/>
|
||||
@@ -1245,7 +1245,7 @@ Heroes® of Might and Magic® III HD stöds för närvarande inte!</translation>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="689"/>
|
||||
<source>Optionally, you can install additional mods either now, or at any point later, using the VCMI Launcher</source>
|
||||
<translation>Valfritt kan du installera ytterligare moddar antingen nu eller när som helst senare med hjälp av 'VCMI Launcher'</translation>
|
||||
<translation>Du kan välja att installera ytterligare moddar, antingen nu eller vid ett senare tillfälle med hjälp av 'VCMI Launchern'</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.ui" line="788"/>
|
||||
@@ -1276,7 +1276,7 @@ Heroes® of Might and Magic® III HD stöds för närvarande inte!</translation>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="313"/>
|
||||
<source>Select %1 file...</source>
|
||||
<comment>param is file extension</comment>
|
||||
<translation>Välj filen %1...</translation>
|
||||
<translation>Välj filen %1 ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="314"/>
|
||||
@@ -1307,7 +1307,7 @@ Heroes® of Might and Magic® III HD stöds för närvarande inte!</translation>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="342"/>
|
||||
<source>GOG installer</source>
|
||||
<translation>GOG installationsprogram</translation>
|
||||
<translation>GOG-Installationsprogram</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="339"/>
|
||||
@@ -1336,7 +1336,7 @@ Heroes® of Might and Magic® III HD stöds för närvarande inte!</translation>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="445"/>
|
||||
<source>Failed to detect valid Heroes III data in chosen directory.
|
||||
Please select directory with installed Heroes III data.</source>
|
||||
<translation>Det går inte att upptäcka giltiga Heroes III-data i den valda katalogen. Välj en mapp där Heroes III-data finns.</translation>
|
||||
<translation>Misslyckades med att upptäcka giltiga Heroes III-data i den valda mappen. Vänligen välj en mapp där Heroes III-data finns installerat.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="383"/>
|
||||
@@ -1346,14 +1346,14 @@ Please select directory with installed Heroes III data.</source>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="399"/>
|
||||
<source>Extracting error!</source>
|
||||
<translation>Extraktionsfel!</translation>
|
||||
<translation>Fel vid extrahering!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="469"/>
|
||||
<source>Heroes III: HD Edition files are not supported by VCMI.
|
||||
Please select directory with Heroes III: Complete Edition or Heroes III: Shadow of Death.</source>
|
||||
<translation>Heroes III HD Edition-filer stöds inte av VCMI.
|
||||
Välj en mapp som innehåller data från Heroes III: Complete Edition eller Heroes III: Shadow of Death.</translation>
|
||||
Vänligen välj en mapp som innehåller data från Heroes III: Complete Edition eller Heroes III: Shadow of Death.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../firstLaunch/firstlaunch_moc.cpp" line="474"/>
|
||||
@@ -1489,7 +1489,7 @@ Orsak till fel: </translation>
|
||||
<message>
|
||||
<location filename="../mainwindow_moc.ui" line="20"/>
|
||||
<source>VCMI Launcher</source>
|
||||
<translation>VCMI Launcher</translation>
|
||||
<translation>VCMI-startprogram (VCMI Launcher)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow_moc.ui" line="53"/>
|
||||
@@ -1514,7 +1514,7 @@ Orsak till fel: </translation>
|
||||
<message>
|
||||
<location filename="../mainwindow_moc.ui" line="259"/>
|
||||
<source>Start game</source>
|
||||
<translation>Starta ett spel</translation>
|
||||
<translation>Starta spelet</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
||||
Reference in New Issue
Block a user