mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
LAUNCHER: Improved clear soundfont button
This commit is contained in:
parent
d99e855606
commit
202cce30b3
@ -26,6 +26,7 @@
|
|||||||
#include "gui/options.h"
|
#include "gui/options.h"
|
||||||
#include "gui/widgets/popup.h"
|
#include "gui/widgets/popup.h"
|
||||||
#include "gui/widgets/tab.h"
|
#include "gui/widgets/tab.h"
|
||||||
|
#include "gui/ThemeEval.h"
|
||||||
|
|
||||||
#include "common/fs.h"
|
#include "common/fs.h"
|
||||||
#include "common/config-manager.h"
|
#include "common/config-manager.h"
|
||||||
@ -846,7 +847,14 @@ void OptionsDialog::addMIDIControls(GuiObject *boss, const Common::String &prefi
|
|||||||
else
|
else
|
||||||
_soundFontButton = new ButtonWidget(boss, prefix + "mcFontButton", _c("SoundFont:", "lowres"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"), kChooseSoundFontCmd);
|
_soundFontButton = new ButtonWidget(boss, prefix + "mcFontButton", _c("SoundFont:", "lowres"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"), kChooseSoundFontCmd);
|
||||||
_soundFont = new StaticTextWidget(boss, prefix + "mcFontPath", _c("None", "soundfont"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"));
|
_soundFont = new StaticTextWidget(boss, prefix + "mcFontPath", _c("None", "soundfont"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"));
|
||||||
_soundFontClearButton = new ButtonWidget(boss, prefix + "mcFontClearButton", "C", _("Clear value"), kClearSoundFontCmd);
|
#ifndef DISABLE_FANCY_THEMES
|
||||||
|
if (g_gui.xmlEval()->getVar("Globals.ShowSearchPic") == 1 && g_gui.theme()->supportsImages()) {
|
||||||
|
_soundFontClearButton = new PicButtonWidget(boss, prefix + "mcFontClearButton", _("Clear value"), kClearSoundFontCmd);
|
||||||
|
((PicButtonWidget *)_soundFontClearButton)->useThemeTransparency(true);
|
||||||
|
((PicButtonWidget *)_soundFontClearButton)->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEraser));
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
|
_soundFontClearButton = new ButtonWidget(boss, prefix + "mcFontClearButton", "C", _("Clear value"), kClearSoundFontCmd);
|
||||||
|
|
||||||
// Multi midi setting
|
// Multi midi setting
|
||||||
_multiMidiCheckbox = new CheckboxWidget(boss, prefix + "mcMixedCheckbox", _("Mixed AdLib/MIDI mode"), _("Use both MIDI and AdLib sound generation"));
|
_multiMidiCheckbox = new CheckboxWidget(boss, prefix + "mcMixedCheckbox", _("Mixed AdLib/MIDI mode"), _("Use both MIDI and AdLib sound generation"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user