mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: Remove WaitForFontRebuild during start, this breaks titleedit again for whatever reason
This commit is contained in:
parent
9f22b00fc6
commit
74a0cbb034
3 changed files with 9 additions and 5 deletions
|
|
@ -197,6 +197,9 @@ namespace Dalamud
|
|||
this.Framework = new Framework(this.SigScanner, this);
|
||||
|
||||
Log.Information("[SPRE] Framework OK!");
|
||||
|
||||
this.Framework.Enable();
|
||||
Log.Information("[SPRE] Framework ENABLE!");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -254,8 +257,6 @@ namespace Dalamud
|
|||
isInterfaceLoaded = true;
|
||||
|
||||
Log.Information("[SPOST] IM OK!");
|
||||
|
||||
this.InterfaceManager.WaitForFontRebuild();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
@ -314,9 +315,6 @@ namespace Dalamud
|
|||
}
|
||||
}
|
||||
|
||||
this.Framework.Enable();
|
||||
Log.Information("[SPOST] Framework ENABLE!");
|
||||
|
||||
this.ClientState.Enable();
|
||||
Log.Information("[SPOST] CS ENABLE!");
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ namespace Dalamud.Interface
|
|||
/// </summary>
|
||||
public event RawDX11Scene.BuildUIDelegate OnDraw;
|
||||
|
||||
public bool FontsReady { get; set; } = false;
|
||||
|
||||
public InterfaceManager(Dalamud dalamud, SigScanner scanner)
|
||||
{
|
||||
|
|
@ -380,6 +381,8 @@ namespace Dalamud.Interface
|
|||
japaneseRangeHandle.Free();
|
||||
gameRangeHandle.Free();
|
||||
iconRangeHandle.Free();
|
||||
|
||||
this.FontsReady = true;
|
||||
}
|
||||
|
||||
public void WaitForFontRebuild() {
|
||||
|
|
|
|||
|
|
@ -197,6 +197,9 @@ namespace Dalamud.Interface
|
|||
(this.GposeActive && this.dalamud.Configuration.ToggleUiHideDuringGpose && !(this.DisableGposeUiHide || this.DisableAutomaticUiHide)))
|
||||
return;
|
||||
|
||||
if (!this.dalamud.InterfaceManager.FontsReady)
|
||||
return;
|
||||
|
||||
ImGui.PushID(this.namespaceName);
|
||||
if (DoStats)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue