GUI: Added button for updating shaders

This commit is contained in:
Eugene Sandulenko 2023-01-07 23:59:33 +01:00
parent 8f469af5dc
commit 5de84d8724
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
3 changed files with 14 additions and 1 deletions

View File

@ -96,6 +96,7 @@ enum {
kPluginsPathClearCmd = 'clpl',
kChooseThemeCmd = 'chtf',
kUpdateIconsCmd = 'upic',
kUpdateShadersCmd = 'upsh',
kChooseShaderCmd = 'chsh',
kClearShaderCmd = 'clsh',
kUpdatesCheckCmd = 'updc',
@ -1573,6 +1574,12 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, const Common::String &pr
_shader = new StaticTextWidget(boss, prefix + "grShader", _c("None", "shader"), _("Specifies path to the shader used for scaling the game screen"));
_shaderClearButton = addClearButton(boss, prefix + "grShaderClearButton", kClearShaderCmd);
#ifdef USE_CLOUD
#ifdef USE_LIBCURL
new ButtonWidget(boss, prefix + "UpdateShadersButton", _("Update Shaders"), _("Check for updates of shader packs"), kUpdateShadersCmd);
#endif
#endif
}
// Fullscreen checkbox
@ -2511,7 +2518,7 @@ void GlobalOptionsDialog::addGUIControls(GuiObject *boss, const Common::String &
#ifdef USE_CLOUD
#ifdef USE_LIBCURL
new ButtonWidget(boss, prefix + "UpdateIconsButton", _("Update Icons"), Common::U32String(), kUpdateIconsCmd);
new ButtonWidget(boss, prefix + "UpdateIconsButton", _("Update Icons"), _("Check for updates of icon packs"), kUpdateIconsCmd);
#endif
#endif
}

View File

@ -552,6 +552,9 @@
height = 'Globals.Line.Height'
width = 'Globals.Line.Height'
/>
<widget name = 'UpdateShadersButton'
type = 'Button'
/>
</layout>
<widget name = 'grAspectCheckbox'
type = 'Checkbox'

View File

@ -490,6 +490,9 @@
height = 'Globals.Line.Height'
width = 'Globals.Line.Height'
/>
<widget name = 'UpdateShadersButton'
type = 'Button'
/>
</layout>
<widget name = 'grAspectCheckbox'
type = 'Checkbox'