mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 23:36:59 -04:00
Add resolution hints to launcher
This commit is contained in:
parent
a68107712c
commit
dca83c2500
@ -240,23 +240,35 @@ void Launcher::GraphicsPage::slotFullScreenChanged(int mode)
|
||||
|
||||
void Launcher::GraphicsPage::handleWindowModeChange(Settings::WindowMode mode)
|
||||
{
|
||||
if (mode == Settings::WindowMode::Fullscreen)
|
||||
if (mode == Settings::WindowMode::Fullscreen || mode == Settings::WindowMode::WindowedFullscreen)
|
||||
{
|
||||
QString customSizeMessage = tr("Custom window size is available only in Windowed mode.");
|
||||
QString windowBorderMessage = tr("Window border is available only in Windowed mode.");
|
||||
|
||||
standardRadioButton->toggle();
|
||||
customRadioButton->setEnabled(false);
|
||||
customWidthSpinBox->setEnabled(false);
|
||||
customHeightSpinBox->setEnabled(false);
|
||||
windowBorderCheckBox->setEnabled(false);
|
||||
windowBorderCheckBox->setToolTip(windowBorderMessage);
|
||||
customWidthSpinBox->setToolTip(customSizeMessage);
|
||||
customHeightSpinBox->setToolTip(customSizeMessage);
|
||||
customRadioButton->setToolTip(customSizeMessage);
|
||||
}
|
||||
|
||||
if (mode == Settings::WindowMode::Fullscreen)
|
||||
{
|
||||
resolutionComboBox->setEnabled(true);
|
||||
resolutionComboBox->setToolTip("");
|
||||
standardRadioButton->setToolTip("");
|
||||
}
|
||||
else if (mode == Settings::WindowMode::WindowedFullscreen)
|
||||
{
|
||||
standardRadioButton->toggle();
|
||||
customRadioButton->setEnabled(false);
|
||||
customWidthSpinBox->setEnabled(false);
|
||||
customHeightSpinBox->setEnabled(false);
|
||||
windowBorderCheckBox->setEnabled(false);
|
||||
QString fullScreenMessage = tr("Windowed Fullscreen mode always uses the native display resolution.");
|
||||
|
||||
resolutionComboBox->setEnabled(false);
|
||||
resolutionComboBox->setToolTip(fullScreenMessage);
|
||||
standardRadioButton->setToolTip(fullScreenMessage);
|
||||
|
||||
// Assume that a first item is a native screen resolution
|
||||
resolutionComboBox->setCurrentIndex(0);
|
||||
@ -268,6 +280,12 @@ void Launcher::GraphicsPage::handleWindowModeChange(Settings::WindowMode mode)
|
||||
customHeightSpinBox->setEnabled(true);
|
||||
windowBorderCheckBox->setEnabled(true);
|
||||
resolutionComboBox->setEnabled(true);
|
||||
resolutionComboBox->setToolTip("");
|
||||
standardRadioButton->setToolTip("");
|
||||
windowBorderCheckBox->setToolTip("");
|
||||
customWidthSpinBox->setToolTip("");
|
||||
customHeightSpinBox->setToolTip("");
|
||||
customRadioButton->setToolTip("");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ WaterShaderTextureQuality: "Качество текстуры воды"
|
||||
WindowBorder: "Рамка окна"
|
||||
WindowMode: "Режим окна"
|
||||
WindowModeFullscreen: "Полный экран"
|
||||
WindowModeHint: "Подсказка: режим Оконный без полей\nвсегда использует родное разрешение экрана."
|
||||
WindowModeHint: "Подсказка: режим \"Оконный без полей\"\nвсегда использует родное разрешение экрана."
|
||||
WindowModeWindowed: "Оконный"
|
||||
WindowModeWindowedFullscreen: "Оконный без полей"
|
||||
WobblyShores: "Колеблющиеся берега"
|
||||
|
@ -425,6 +425,18 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov
|
||||
<source><br><b>SDL_GetDisplayMode failed:</b><br><br></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom window size is available only in Windowed mode.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Window border is available only in Windowed mode.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Windowed Fullscreen mode always uses the native display resolution.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Launcher::ImportPage</name>
|
||||
|
@ -425,6 +425,18 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov
|
||||
<source><br><b>SDL_GetDisplayMode failed:</b><br><br></source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom window size is available only in Windowed mode.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Window border is available only in Windowed mode.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Windowed Fullscreen mode always uses the native display resolution.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Launcher::ImportPage</name>
|
||||
|
@ -425,6 +425,18 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov
|
||||
<source><br><b>SDL_GetDisplayMode failed:</b><br><br></source>
|
||||
<translation><br><b>SDL_GetDisplayMode failed:</b><br><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom window size is available only in Windowed mode.</source>
|
||||
<translation>La taille personalisée de fenêtre n'est disponible qu'en mode fenêtré.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Window border is available only in Windowed mode.</source>
|
||||
<translation>Les bordures de fenêtres ne sont disponibles qu'en mode fenêtré.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Windowed Fullscreen mode always uses the native display resolution.</source>
|
||||
<translation>Le mode "Fenêtré plein écran" utilise toujours la résolution native de l'écran.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Launcher::ImportPage</name>
|
||||
|
@ -427,6 +427,18 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov
|
||||
<source><br><b>SDL_GetDisplayMode failed:</b><br><br></source>
|
||||
<translation><br><b>Вызов SDL_GetDisplayMode завершился с ошибкой:</b><br><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom window size is available only in Windowed mode.</source>
|
||||
<translation>Особый размер окна доступен только в оконном режиме.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Window border is available only in Windowed mode.</source>
|
||||
<translation>Рамка окна доступна только в оконном режиме.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Windowed Fullscreen mode always uses the native display resolution.</source>
|
||||
<translation>Режим "Оконный без полей" всегда использует родное разрешение экрана.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Launcher::ImportPage</name>
|
||||
|
@ -428,6 +428,18 @@ de ordinarie fonterna i Morrowind. Bocka denna ruta om du ändå föredrar ordin
|
||||
<source><br><b>SDL_GetDisplayMode failed:</b><br><br></source>
|
||||
<translation><br><b>SDL_GetDisplayMode misslyckades:</b><br><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom window size is available only in Windowed mode.</source>
|
||||
<translation>Anpassad fönsterstorlek finns endast tillgänglig i fönsterläge.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Window border is available only in Windowed mode.</source>
|
||||
<translation>Fönsterram finns endast tillgänglig i fönsterläge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Windowed Fullscreen mode always uses the native display resolution.</source>
|
||||
<translation>Helskärm i fönsterläge använder alltid skärmens nativa upplösning.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Launcher::ImportPage</name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user