mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
Made Fipps larger
This commit is contained in:
parent
a11cc4703a
commit
ea1c741fe7
2 changed files with 13 additions and 11 deletions
|
@ -345,15 +345,16 @@ void OTRGlobals::Initialize() {
|
|||
context->InitWindow(sohFast3dWindow);
|
||||
|
||||
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
|
||||
// Currently, differently sized fonts require preloading (reloading font at runtime crashes the game)
|
||||
// Currently, differently sized fonts require preloading
|
||||
// (loading a font at any point after here crashes the game with "INVALID ACCESS TO STORAGE")
|
||||
overlay->LoadFont("Press Start 2P", 12.0f, "fonts/PressStart2P-Regular.ttf");
|
||||
overlay->LoadFont("Press Start 2P Normal", 24.0f, "fonts/PressStart2P-Regular.ttf");
|
||||
overlay->LoadFont("Press Start 2P Large", 32.0f, "fonts/PressStart2P-Regular.ttf");
|
||||
overlay->LoadFont("Press Start 2P X-Large", 40.0f, "fonts/PressStart2P-Regular.ttf");
|
||||
overlay->LoadFont("Fipps", 24.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps Normal", 32.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps Large", 40.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps X-Large", 48.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps", 32.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps Normal", 40.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps Large", 48.0f, "fonts/Fipps-Regular.otf");
|
||||
overlay->LoadFont("Fipps X-Large", 52.0f, "fonts/Fipps-Regular.otf");
|
||||
LoadOverlayTextFont();
|
||||
|
||||
context->InitAudio({ .SampleRate = 32000, .SampleLength = 1024, .DesiredBuffered = 1680 });
|
||||
|
|
|
@ -514,12 +514,13 @@ void SohMenu::AddMenuSettings() {
|
|||
AddWidget(path, "Overlay Text Font:", WIDGET_CVAR_COMBOBOX)
|
||||
.CVar(CVAR_SETTING("OverlayTextFont"))
|
||||
.RaceDisable(false)
|
||||
.Options(ComboboxOptions()
|
||||
.ComboMap(overlayTextFontOptions)
|
||||
.Tooltip("Changes the font type of Overlay Text.")
|
||||
.DefaultIndex(0)
|
||||
.ComponentAlignment(ComponentAlignments::Right)
|
||||
.LabelPosition(LabelPositions::Far))
|
||||
.Options(
|
||||
ComboboxOptions()
|
||||
.ComboMap(overlayTextFontOptions)
|
||||
.Tooltip("Changes the font type of Overlay Text.\nNote: Fipps is generally smaller than Press Start 2P")
|
||||
.DefaultIndex(0)
|
||||
.ComponentAlignment(ComponentAlignments::Right)
|
||||
.LabelPosition(LabelPositions::Far))
|
||||
.Callback([](WidgetInfo& info) { OTRGlobals::Instance->LoadOverlayTextFont(); });
|
||||
AddWidget(path, "Test Overlay Text", WIDGET_BUTTON)
|
||||
.RaceDisable(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue