mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Update some files for Luna.
This commit is contained in:
parent
3f48cd6910
commit
a4302c9145
23 changed files with 1669 additions and 1712 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Dalamud.Bindings.ImGui;
|
||||
using ImSharp;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.Import.Structs;
|
||||
|
|
@ -89,12 +90,12 @@ public partial class TexToolsImporter
|
|||
ImGui.TableNextColumn();
|
||||
if (ex == null)
|
||||
{
|
||||
using var color = ImRaii.PushColor(ImGuiCol.Text, ColorId.FolderExpanded.Value());
|
||||
using var color = ImGuiColor.Text.Push(ColorId.FolderExpanded.Value());
|
||||
ImGui.TextUnformatted(dir?.FullName[(_baseDirectory.FullName.Length + 1)..] ?? "Unknown Directory");
|
||||
}
|
||||
else
|
||||
{
|
||||
using var color = ImRaii.PushColor(ImGuiCol.Text, ColorId.ConflictingMod.Value());
|
||||
using var color = ImGuiColor.Text.Push(ColorId.ConflictingMod.Value());
|
||||
ImGui.TextUnformatted(ex.Message);
|
||||
ImGuiUtil.HoverTooltip(ex.ToString());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,9 +125,9 @@ public static class TextureDrawer
|
|||
{
|
||||
var (path, game, isOnPlayer) = Items[globalIdx];
|
||||
bool ret;
|
||||
using (var color = ImRaii.PushColor(ImGuiCol.Text, ColorId.FolderExpanded.Value(), game))
|
||||
using (var color = ImGuiColor.Text.Push(ColorId.FolderExpanded.Value(), game))
|
||||
{
|
||||
color.Push(ImGuiCol.Text, ColorId.HandledConflictMod.Value(), isOnPlayer);
|
||||
color.Push(ImGuiColor.Text, ColorId.HandledConflictMod.Value(), isOnPlayer);
|
||||
var equals = string.Equals(CurrentSelection.Path, path, StringComparison.OrdinalIgnoreCase);
|
||||
var p = game ? $"--> {path}" : path[_skipPrefix..];
|
||||
ret = ImGui.Selectable(p, selected) && !equals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue