mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 00:49:18 +01:00
Add font reloading button.
This commit is contained in:
parent
4189d240de
commit
46c8b811ad
2 changed files with 67 additions and 0 deletions
|
|
@ -1,8 +1,10 @@
|
|||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Interop;
|
||||
using Penumbra.UI.Classes;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
|
@ -24,6 +26,7 @@ public partial class ConfigWindow
|
|||
DrawEnableDebugModeBox();
|
||||
DrawEnableFullResourceLoggingBox();
|
||||
DrawReloadResourceButton();
|
||||
DrawReloadFontsButton();
|
||||
ImGui.NewLine();
|
||||
}
|
||||
|
||||
|
|
@ -168,5 +171,13 @@ public partial class ConfigWindow
|
|||
ImGuiUtil.HoverTooltip( "Reload some specific files that the game keeps in memory at all times.\n"
|
||||
+ "You usually should not need to do this." );
|
||||
}
|
||||
|
||||
private static void DrawReloadFontsButton()
|
||||
{
|
||||
if( ImGuiUtil.DrawDisabledButton( "Reload Fonts", Vector2.Zero, "Force the game to reload its font files.", !FontReloader.Valid ) )
|
||||
{
|
||||
FontReloader.Reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue