mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Merge branch 'net5'
This commit is contained in:
commit
9a2e2f1024
4 changed files with 6 additions and 5 deletions
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
|
@ -86,6 +86,7 @@ jobs:
|
|||
echo "DVER=${newVersion}" >> $Env:GITHUB_ENV
|
||||
} else {
|
||||
Write-Host "Deployment folder doesn't exist. Not doing anything."
|
||||
Remove-Item .\canary.zip
|
||||
}
|
||||
|
||||
- name: Commit changes
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ namespace Dalamud.Configuration.Internal
|
|||
/// * ...TTF fonts loaded with stb or FreeType are in linear space.
|
||||
/// * ...the game's prebaked AXIS fonts are in gamma space with gamma value of 1.4.
|
||||
/// </summary>
|
||||
public float FontGamma { get; set; } = 1.4f;
|
||||
public float FontGammaLevel { get; set; } = 1.4f;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating the level of font resolution between 1 to 5.
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ namespace Dalamud.Interface.Internal
|
|||
/// <summary>
|
||||
/// Gets the font gamma value to use.
|
||||
/// </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>
|
||||
/// 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.globalUiScale = configuration.GlobalUiScale;
|
||||
this.fontGamma = configuration.FontGamma;
|
||||
this.fontGamma = configuration.FontGammaLevel;
|
||||
this.doUseAxisFontsFromGame = configuration.UseAxisFontsFromGame;
|
||||
this.fontResolutionLevel = configuration.FontResolutionLevel;
|
||||
this.doToggleUiHide = configuration.ToggleUiHide;
|
||||
|
|
@ -197,7 +197,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
var configuration = Service<DalamudConfiguration>.Get();
|
||||
var interfaceManager = Service<InterfaceManager>.Get();
|
||||
|
||||
var rebuildFont = interfaceManager.FontGamma != configuration.FontGamma;
|
||||
var rebuildFont = interfaceManager.FontGamma != configuration.FontGammaLevel;
|
||||
|
||||
ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale;
|
||||
interfaceManager.FontGammaOverride = null;
|
||||
|
|
@ -930,7 +930,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
configuration.UseAxisFontsFromGame = this.doUseAxisFontsFromGame;
|
||||
configuration.FontResolutionLevel = this.fontResolutionLevel;
|
||||
configuration.FontGamma = this.fontGamma;
|
||||
configuration.FontGammaLevel = this.fontGamma;
|
||||
|
||||
// This is applied every frame in InterfaceManager::CheckViewportState()
|
||||
configuration.IsDisableViewport = !this.doViewport;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue