mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
refactor: rename IsNeverViewport to IsDisableViewport
This commit is contained in:
parent
e17745349a
commit
79a5cc1ed4
3 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ namespace Dalamud.Configuration
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether viewports should always be disabled.
|
/// Gets or sets a value indicating whether viewports should always be disabled.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsNeverViewport { get; set; } = true;
|
public bool IsDisableViewport { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load a configuration from the provided path.
|
/// Load a configuration from the provided path.
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Dalamud.Interface
|
||||||
this.doToggleUiHideDuringGpose = this.dalamud.Configuration.ToggleUiHideDuringGpose;
|
this.doToggleUiHideDuringGpose = this.dalamud.Configuration.ToggleUiHideDuringGpose;
|
||||||
|
|
||||||
this.doDocking = this.dalamud.Configuration.IsDocking;
|
this.doDocking = this.dalamud.Configuration.IsDocking;
|
||||||
this.doViewport = !this.dalamud.Configuration.IsNeverViewport;
|
this.doViewport = !this.dalamud.Configuration.IsDisableViewport;
|
||||||
|
|
||||||
this.doPluginTest = this.dalamud.Configuration.DoPluginTest;
|
this.doPluginTest = this.dalamud.Configuration.DoPluginTest;
|
||||||
this.thirdRepoList = this.dalamud.Configuration.ThirdRepoList.Select(x => x.Clone()).ToList();
|
this.thirdRepoList = this.dalamud.Configuration.ThirdRepoList.Select(x => x.Clone()).ToList();
|
||||||
|
|
@ -375,7 +375,7 @@ namespace Dalamud.Interface
|
||||||
this.dalamud.Configuration.IsDocking = this.doDocking;
|
this.dalamud.Configuration.IsDocking = this.doDocking;
|
||||||
|
|
||||||
// This is applied every frame in InterfaceManager::CheckViewportState()
|
// This is applied every frame in InterfaceManager::CheckViewportState()
|
||||||
this.dalamud.Configuration.IsNeverViewport = !this.doViewport;
|
this.dalamud.Configuration.IsDisableViewport = !this.doViewport;
|
||||||
|
|
||||||
// Apply docking flag
|
// Apply docking flag
|
||||||
if (!this.dalamud.Configuration.IsDocking)
|
if (!this.dalamud.Configuration.IsDocking)
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,7 @@ namespace Dalamud.Interface
|
||||||
|
|
||||||
private void CheckViewportState()
|
private void CheckViewportState()
|
||||||
{
|
{
|
||||||
if (this.dalamud.Configuration.IsNeverViewport || this.scene.SwapChain.IsFullScreen || ImGui.GetPlatformIO().Monitors.Size == 1)
|
if (this.dalamud.Configuration.IsDisableViewport || this.scene.SwapChain.IsFullScreen || ImGui.GetPlatformIO().Monitors.Size == 1)
|
||||||
{
|
{
|
||||||
ImGui.GetIO().ConfigFlags &= ~ImGuiConfigFlags.ViewportsEnable;
|
ImGui.GetIO().ConfigFlags &= ~ImGuiConfigFlags.ViewportsEnable;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue