mirror of https://github.com/stella-emu/stella.git
replace launcher's small font with bold version
add 'small medium' font to launcher font options doc update for variable ROM viewer widths and new launcher font size
This commit is contained in:
parent
4b66fc08f1
commit
da3d183e75
|
@ -119,9 +119,10 @@
|
||||||
|
|
||||||
* Added option to change pitch of Pitfall II music.
|
* Added option to change pitch of Pitfall II music.
|
||||||
|
|
||||||
* ROM Info Launcher can now display multiple lines per property and
|
* ROM Info Viewer size is not limited to fixed zoom steps anymore.
|
||||||
bank switching type. Related to this, added fractional (25% increments)
|
|
||||||
snapshot zooms.
|
* ROM Info Viewer can now display multiple lines per property and the
|
||||||
|
bank switching type.
|
||||||
|
|
||||||
* In file listings, you can now select directories by holding 'Shift' on
|
* In file listings, you can now select directories by holding 'Shift' on
|
||||||
the first character entered. Entering characters in lowercase still
|
the first character entered. Entering characters in lowercase still
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 3.3 KiB |
|
@ -2371,7 +2371,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><pre>-launcherfont <small|medium|large></pre></td>
|
<td><pre>-launcherfont <small|small medium|medium|large></pre></td>
|
||||||
<td>Set the size of the font in the ROM launcher.</td>
|
<td>Set the size of the font in the ROM launcher.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -2382,9 +2382,10 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><pre>-romviewer <0|1|2></pre></td>
|
<td><pre>-romviewer <float></pre></td>
|
||||||
<td>Hide ROM Info Viewer in ROM launcher mode (0), or use the
|
<td>Hide ROM Info Viewer in ROM launcher mode (0) or use the
|
||||||
given zoom level (1 or 2).</td>
|
given zoom level.</br>
|
||||||
|
Note: The zoom level is converted into a percentage in the UI.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -3079,8 +3080,8 @@
|
||||||
launcher and fonts, as well as the 'ROM Info Viewer' can be changed in
|
launcher and fonts, as well as the 'ROM Info Viewer' can be changed in
|
||||||
<b>UI Settings - Launcher</b> dialog, as shown below:</p>
|
<b>UI Settings - Launcher</b> dialog, as shown below:</p>
|
||||||
<img src="graphics/options_ui.png">
|
<img src="graphics/options_ui.png">
|
||||||
<p>Most of the options are self-explanatory, except for the 'ROM Info
|
<p>Most of the options are self-explanatory, except for the 'ROM info
|
||||||
viewer', which is described below.</p>
|
width', which is described below.</p>
|
||||||
|
|
||||||
<h3><b><a name="ROMInfoViewer">ROM Info Viewer</a></b></h3>
|
<h3><b><a name="ROMInfoViewer">ROM Info Viewer</a></b></h3>
|
||||||
|
|
||||||
|
@ -3092,27 +3093,21 @@
|
||||||
for each new release of Stella. Note that the snapshots can be any size
|
for each new release of Stella. Note that the snapshots can be any size
|
||||||
generated by Stella; they will be resized accordingly.</p>
|
generated by Stella; they will be resized accordingly.</p>
|
||||||
|
|
||||||
<p>Currently, there are several restrictions for this feature:</p>
|
The ROM Info Viewer's width can be defined between 0% (off) and 100%. The
|
||||||
<ol>
|
value is relative to the launcher width. For too small or too large values,
|
||||||
<li>The ROM Info Viewer can be shown in 1x or 2x mode only.</li>
|
Stella will automatically correct the width at runtime so that the ROM names
|
||||||
<li>To view snapshots in 1x mode, the ROM launcher window must be sized at
|
and the current ROM's information always have enough space.
|
||||||
least 640x480. If the launcher isn't large enough, the functionality
|
|
||||||
will be disabled.</li>
|
|
||||||
<li>To view snapshots in 2x mode, the ROM launcher window must be sized at
|
|
||||||
least 1000x720. If the launcher isn't large enough, an attempt will
|
|
||||||
be made to use 1x mode.</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<p>The following snapshots illustrate the various font sizes and rom info
|
<p>The following snapshots illustrate the various font sizes and rom info
|
||||||
zoom levels:</p>
|
widths:</p>
|
||||||
|
|
||||||
<p>ROM Info Viewer in 1x mode, UI sized 800x480, small launcher font:</p>
|
<p>ROM Info Viewer width at 40%, UI sized 800x480, small launcher font:</p>
|
||||||
<img src="graphics/rominfo_1x_small.png">
|
<img src="graphics/rominfo_1x_small.png">
|
||||||
|
|
||||||
<p>ROM Info Viewer in 1x mode, UI sized 1000x720, medium launcher font:</p>
|
<p>ROM Info Viewer width at 32%, UI sized 1000x720, medium launcher font:</p>
|
||||||
<img src="graphics/rominfo_1x_large.png">
|
<img src="graphics/rominfo_1x_large.png">
|
||||||
|
|
||||||
<p>ROM Info Viewer in 2x mode, UI sized 1280x900, large launcher font:</p>
|
<p>ROM Info Viewer width at 50% , UI sized 1280x900, large launcher font:</p>
|
||||||
<img src="graphics/rominfo_2x_small.png">
|
<img src="graphics/rominfo_2x_small.png">
|
||||||
|
|
||||||
<p>The text box in the upper right corner can be used to narrow down the
|
<p>The text box in the upper right corner can be used to narrow down the
|
||||||
|
|
|
@ -36,9 +36,11 @@
|
||||||
#ifdef GUI_SUPPORT
|
#ifdef GUI_SUPPORT
|
||||||
#include "Font.hxx"
|
#include "Font.hxx"
|
||||||
#include "StellaFont.hxx"
|
#include "StellaFont.hxx"
|
||||||
|
#include "ConsoleMediumBFont.hxx"
|
||||||
#include "StellaMediumFont.hxx"
|
#include "StellaMediumFont.hxx"
|
||||||
#include "StellaLargeFont.hxx"
|
#include "StellaLargeFont.hxx"
|
||||||
#include "ConsoleFont.hxx"
|
#include "ConsoleFont.hxx"
|
||||||
|
#include "ConsoleBFont.hxx"
|
||||||
#include "Launcher.hxx"
|
#include "Launcher.hxx"
|
||||||
#include "Menu.hxx"
|
#include "Menu.hxx"
|
||||||
#include "CommandMenu.hxx"
|
#include "CommandMenu.hxx"
|
||||||
|
@ -106,7 +108,7 @@ bool FrameBuffer::initialize()
|
||||||
// This font is used in a variety of situations when a really small
|
// This font is used in a variety of situations when a really small
|
||||||
// font is needed; we let the specific widget/dialog decide when to
|
// font is needed; we let the specific widget/dialog decide when to
|
||||||
// use it
|
// use it
|
||||||
mySmallFont = make_unique<GUI::Font>(GUI::stellaDesc);
|
mySmallFont = make_unique<GUI::Font>(GUI::stellaDesc); // 6x10
|
||||||
|
|
||||||
// The general font used in all UI elements
|
// The general font used in all UI elements
|
||||||
// This is determined by the size of the framebuffer
|
// This is determined by the size of the framebuffer
|
||||||
|
@ -117,16 +119,18 @@ bool FrameBuffer::initialize()
|
||||||
|
|
||||||
// The info font used in all UI elements
|
// The info font used in all UI elements
|
||||||
// This is determined by the size of the framebuffer
|
// This is determined by the size of the framebuffer
|
||||||
myInfoFont = make_unique<GUI::Font>(GUI::consoleDesc);
|
myInfoFont = make_unique<GUI::Font>(GUI::consoleDesc); // 8x13
|
||||||
|
|
||||||
// The font used by the ROM launcher
|
// The font used by the ROM launcher
|
||||||
const string& lf = myOSystem.settings().getString("launcherfont");
|
const string& lf = myOSystem.settings().getString("launcherfont");
|
||||||
if(lf == "small")
|
if(lf == "small")
|
||||||
myLauncherFont = make_unique<GUI::Font>(GUI::consoleDesc);
|
myLauncherFont = make_unique<GUI::Font>(GUI::consoleBDesc); // 8x13
|
||||||
|
else if(lf == "small medium")
|
||||||
|
myLauncherFont = make_unique<GUI::Font>(GUI::consoleMediumBDesc); // 9x15
|
||||||
else if(lf == "medium")
|
else if(lf == "medium")
|
||||||
myLauncherFont = make_unique<GUI::Font>(GUI::stellaMediumDesc);
|
myLauncherFont = make_unique<GUI::Font>(GUI::stellaMediumDesc); // 9x18
|
||||||
else
|
else
|
||||||
myLauncherFont = make_unique<GUI::Font>(GUI::stellaLargeDesc);
|
myLauncherFont = make_unique<GUI::Font>(GUI::stellaLargeDesc); // 10x20
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Determine possible TIA windowed zoom levels
|
// Determine possible TIA windowed zoom levels
|
||||||
|
|
|
@ -342,7 +342,7 @@ void Settings::validate()
|
||||||
setValue("palette", "standard");
|
setValue("palette", "standard");
|
||||||
|
|
||||||
s = getString("launcherfont");
|
s = getString("launcherfont");
|
||||||
if(s != "small" && s != "medium" && s != "large")
|
if(s != "small" && s != "small medium" && s != "medium" && s != "large")
|
||||||
setValue("launcherfont", "medium");
|
setValue("launcherfont", "medium");
|
||||||
|
|
||||||
s = getString("dbg.fontsize");
|
s = getString("dbg.fontsize");
|
||||||
|
@ -478,10 +478,10 @@ void Settings::usage() const
|
||||||
<< " -exitlauncher <1|0> On exiting a ROM, go back to the ROM launcher\n"
|
<< " -exitlauncher <1|0> On exiting a ROM, go back to the ROM launcher\n"
|
||||||
<< " -launcherres <WxH> The resolution to use in ROM launcher mode\n"
|
<< " -launcherres <WxH> The resolution to use in ROM launcher mode\n"
|
||||||
<< " -launcherfont <small|medium| Use the specified font in the ROM launcher\n"
|
<< " -launcherfont <small|medium| Use the specified font in the ROM launcher\n"
|
||||||
<< " large>\n"
|
<< " small medium|large>\n"
|
||||||
<< " -launcherroms <1|0> Show only ROMs in the launcher (vs. all files)\n"
|
<< " -launcherroms <1|0> Show only ROMs in the launcher (vs. all files)\n"
|
||||||
<< " -romviewer <0|1|2> Show ROM info viewer at given zoom level in ROM\n"
|
<< " -romviewer <float> Show ROM info viewer at given zoom level in ROM\n"
|
||||||
<< " launcher (0 for off)\n"
|
<< " launcher (use 0 for off)\n"
|
||||||
<< " -lastrom <name> Last played ROM, automatically selected in launcher\n"
|
<< " -lastrom <name> Last played ROM, automatically selected in launcher\n"
|
||||||
<< " -romloadcount <number> Number of ROM to load next from multicard\n"
|
<< " -romloadcount <number> Number of ROM to load next from multicard\n"
|
||||||
<< " -uipalette <standard| Selects GUI theme\n"
|
<< " -uipalette <standard| Selects GUI theme\n"
|
||||||
|
|
|
@ -217,6 +217,7 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
pwidth = font.getStringWidth("2x (1000x760)");
|
pwidth = font.getStringWidth("2x (1000x760)");
|
||||||
items.clear();
|
items.clear();
|
||||||
VarList::push_back(items, "Small", "small");
|
VarList::push_back(items, "Small", "small");
|
||||||
|
VarList::push_back(items, "Small Medium", "small medium");
|
||||||
VarList::push_back(items, "Medium", "medium");
|
VarList::push_back(items, "Medium", "medium");
|
||||||
VarList::push_back(items, "Large", "large");
|
VarList::push_back(items, "Large", "large");
|
||||||
myLauncherFontPopup =
|
myLauncherFontPopup =
|
||||||
|
|
Loading…
Reference in New Issue