Mod Edit Window: Highlight paths of files on player

This commit is contained in:
Exter-N 2023-11-29 14:31:47 +01:00
parent 43c6b52d0b
commit 18d38a9974
5 changed files with 45 additions and 14 deletions

View file

@ -285,7 +285,9 @@ public class FileEditor<T> : IDisposable where T : class, IWritable
protected override bool DrawSelectable(int globalIdx, bool selected)
{
var file = Items[globalIdx];
var ret = ImGui.Selectable(file.RelPath.ToString(), selected);
bool ret;
using (var c = ImRaii.PushColor(ImGuiCol.Text, ColorId.HandledConflictMod.Value(), file.IsOnPlayer))
ret = ImGui.Selectable(file.RelPath.ToString(), selected);
if (ImGui.IsItemHovered())
{