mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
chore: fix old references, Rider didn't bother refactoring the rest
This commit is contained in:
parent
36f0d1d87d
commit
c2bce23fc3
2 changed files with 4 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ namespace Dalamud.Interface.Internal
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the font gamma value to use.
|
/// Gets the font gamma value to use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float FontGamma => Math.Max(0.1f, this.FontGammaOverride.GetValueOrDefault(Service<DalamudConfiguration>.Get().FontGamma));
|
public float FontGamma => Math.Max(0.1f, this.FontGammaOverride.GetValueOrDefault(Service<DalamudConfiguration>.Get().FontGammaLevel));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether to override configuration for FontResolutionLevel.
|
/// Gets or sets a value indicating whether to override configuration for FontResolutionLevel.
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
this.doMbCollect = configuration.IsMbCollect;
|
this.doMbCollect = configuration.IsMbCollect;
|
||||||
|
|
||||||
this.globalUiScale = configuration.GlobalUiScale;
|
this.globalUiScale = configuration.GlobalUiScale;
|
||||||
this.fontGamma = configuration.FontGamma;
|
this.fontGamma = configuration.FontGammaLevel;
|
||||||
this.doUseAxisFontsFromGame = configuration.UseAxisFontsFromGame;
|
this.doUseAxisFontsFromGame = configuration.UseAxisFontsFromGame;
|
||||||
this.fontResolutionLevel = configuration.FontResolutionLevel;
|
this.fontResolutionLevel = configuration.FontResolutionLevel;
|
||||||
this.doToggleUiHide = configuration.ToggleUiHide;
|
this.doToggleUiHide = configuration.ToggleUiHide;
|
||||||
|
|
@ -197,7 +197,7 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
var interfaceManager = Service<InterfaceManager>.Get();
|
var interfaceManager = Service<InterfaceManager>.Get();
|
||||||
|
|
||||||
var rebuildFont = interfaceManager.FontGamma != configuration.FontGamma;
|
var rebuildFont = interfaceManager.FontGamma != configuration.FontGammaLevel;
|
||||||
|
|
||||||
ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale;
|
ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale;
|
||||||
interfaceManager.FontGammaOverride = null;
|
interfaceManager.FontGammaOverride = null;
|
||||||
|
|
@ -930,7 +930,7 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
|
|
||||||
configuration.UseAxisFontsFromGame = this.doUseAxisFontsFromGame;
|
configuration.UseAxisFontsFromGame = this.doUseAxisFontsFromGame;
|
||||||
configuration.FontResolutionLevel = this.fontResolutionLevel;
|
configuration.FontResolutionLevel = this.fontResolutionLevel;
|
||||||
configuration.FontGamma = this.fontGamma;
|
configuration.FontGammaLevel = this.fontGamma;
|
||||||
|
|
||||||
// This is applied every frame in InterfaceManager::CheckViewportState()
|
// This is applied every frame in InterfaceManager::CheckViewportState()
|
||||||
configuration.IsDisableViewport = !this.doViewport;
|
configuration.IsDisableViewport = !this.doViewport;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue