Skip to content

Commit b818e21

Browse files
committed
Improve BPO selector
1 parent b47c073 commit b818e21

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Splatoon/Gui/CGui.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
using ECommons.Interop;
1818
using Dalamud.Game.ClientState.Conditions;
1919
using Dalamud.Game.ClientState.Objects.SubKinds;
20-
using ECommons.GameHelpers;
20+
using ECommons.GameHelpers.LegacyPlayer;
21+
using ECommons.ExcelServices;
22+
using ECommons.GameFunctions;
2123

2224
namespace Splatoon;
2325

@@ -110,8 +112,13 @@ private void Draw()
110112
{
111113
if(col) ImGui.PopStyleColor();
112114
if(ImGui.Selectable("No Override", BasePlayerOverride == "")) BasePlayerOverride = "";
113-
foreach(var x in Svc.Objects.OfType<IPlayerCharacter>())
115+
foreach(var x in Svc.Objects.OfType<IPlayerCharacter>().OrderBy(x => x.GetRole()).ThenBy(x => x.GetJob().IsRangedDps()).ThenBy(x => x.GetJob().IsMagicalRangedDps()))
114116
{
117+
if(ThreadLoadImageHandler.TryGetIconTextureWrap(x.GetJob().GetIcon(), false, out var tex))
118+
{
119+
ImGui.Image(tex.Handle, new(ImGui.GetTextLineHeight()));
120+
ImGui.SameLine();
121+
}
115122
if(ImGui.Selectable($"{x.GetNameWithWorld()}", x.GetNameWithWorld() == BasePlayerOverride))
116123
{
117124
BasePlayerOverride = x.GetNameWithWorld();

Splatoon/Splatoon.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Authors>NightmareXIV</Authors>
5-
<Version>3.9.0.10</Version>
5+
<Version>3.9.0.11</Version>
66
</PropertyGroup>
77

88
<PropertyGroup>

0 commit comments

Comments
 (0)