Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Penumbra/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Numerics;
using Dalamud.Configuration;
using Dalamud.Logging;

Expand Down Expand Up @@ -36,6 +37,7 @@ public class Configuration : IPluginConfiguration
public Dictionary< string, string > ModSortOrder { get; set; } = new();

public bool InvertModListOrder { internal get; set; }
public Vector2 ManageModsButtonOffset { get; set; } = Vector2.Zero;

public static Configuration Load()
{
Expand Down
2 changes: 1 addition & 1 deletion Penumbra/UI/LaunchButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void Draw()
var ss = ImGui.GetMainViewport().Size + ImGui.GetMainViewport().Pos;
ImGui.SetNextWindowViewport( ImGui.GetMainViewport().ID );

ImGui.SetNextWindowPos( ss - WindowPosOffset, ImGuiCond.Always );
ImGui.SetNextWindowPos( ss - WindowPosOffset + Penumbra.Config.ManageModsButtonOffset, ImGuiCond.Always );

if( ImGui.Begin( MenuButtonsName, ButtonFlags )
&& ImGui.Button( MenuButtonLabel, WindowSize ) )
Expand Down
15 changes: 14 additions & 1 deletion Penumbra/UI/MenuTabs/TabSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ private class TabSettings
private const string LabelDisableNotifications = "Disable filesystem change notifications";
private const string LabelEnableHttpApi = "Enable HTTP API";
private const string LabelReloadResource = "Reload Player Resource";
private const string LabelManageModsOffset = "\"Manage mods\" title screen button offset";

private readonly SettingsInterface _base;
private readonly Configuration _config;
Expand Down Expand Up @@ -155,7 +156,18 @@ private void DrawShowAdvancedBox()
if( ImGui.Checkbox( LabelShowAdvanced, ref showAdvanced ) )
{
_config.ShowAdvanced = showAdvanced;
_configChanged = true;
_configChanged = true;
}
}

private void DrawManageModsButtonOffset()
{
var manageModsButtonOffset = _config.ManageModsButtonOffset;
ImGui.SetNextItemWidth( 150f );
if( ImGui.DragFloat2( LabelManageModsOffset, ref manageModsButtonOffset, 1f ) )
{
_config.ManageModsButtonOffset = manageModsButtonOffset;
_configChanged = true;
}
}

Expand Down Expand Up @@ -305,6 +317,7 @@ public void Draw()
ImGuiCustom.VerticalDistance( DefaultVerticalSpace );
DrawScaleModSelectorBox();
DrawSortFoldersFirstBox();
DrawManageModsButtonOffset();
DrawShowAdvancedBox();

if( _config.ShowAdvanced )
Expand Down