This commit is contained in:
2025-08-09 12:43:58 +03:00
parent 5bec99dd48
commit 28fa041cba
31 changed files with 90 additions and 50 deletions

View File

@@ -1,6 +1,6 @@
using Dalamud.Interface;
using Dalamud.Plugin.Services;
using ImGuiNET;
using Dalamud.Bindings.ImGui;
using OtterGui.Classes;
using OtterGui.FileSystem.Selector;
using OtterGui.Filesystem;
@@ -18,6 +18,7 @@ using CustomizePlus.Game.Services;
using CustomizePlus.Profiles.Events;
using CustomizePlus.GameData.Extensions;
using System.Linq;
using OtterGui.Text;
namespace CustomizePlus.UI.Windows.MainWindow.Tabs.Profiles;
@@ -47,6 +48,20 @@ public class ProfileFileSystemSelector : FileSystemSelector<Profile, ProfileStat
public ColorId Color;
}
protected override float MinimumAbsoluteRemainder
=> 670 * ImUtf8.GlobalScale;
protected override void SetSize(Vector2 size)
{
base.SetSize(size);
var adaptedSize = MathF.Round(size.X / ImUtf8.GlobalScale);
}
public ProfileFileSystemSelector(
ProfileFileSystem fileSystem,
IKeyState keyState,