mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Remove checking for negative values in colorset editing, show gamepath info in file selection.
This commit is contained in:
parent
95d7bc0023
commit
69703ed97f
3 changed files with 25 additions and 7 deletions
|
|
@ -3,12 +3,10 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Game.Command;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Utility;
|
||||
using EmbedIO;
|
||||
using EmbedIO.WebApi;
|
||||
using ImGuiNET;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.ImGuiFileDialog;
|
||||
|
|
@ -150,6 +151,29 @@ public partial class ModEditWindow
|
|||
{
|
||||
UpdateCurrentFile( file );
|
||||
}
|
||||
|
||||
if( ImGui.IsItemHovered() )
|
||||
{
|
||||
using var tt = ImRaii.Tooltip();
|
||||
ImGui.TextUnformatted( "All Game Paths" );
|
||||
ImGui.Separator();
|
||||
using var t = ImRaii.Table( "##Tooltip", 2, ImGuiTableFlags.SizingFixedFit );
|
||||
foreach( var (option, gamePath) in file.SubModUsage )
|
||||
{
|
||||
ImGui.TableNextColumn();
|
||||
ConfigWindow.Text( gamePath.Path );
|
||||
ImGui.TableNextColumn();
|
||||
using var color = ImRaii.PushColor( ImGuiCol.Text, ColorId.ItemId.Value() );
|
||||
ImGui.TextUnformatted( option.FullName );
|
||||
}
|
||||
}
|
||||
|
||||
if( file.SubModUsage.Count > 0 )
|
||||
{
|
||||
ImGui.SameLine();
|
||||
using var color = ImRaii.PushColor( ImGuiCol.Text, ColorId.ItemId.Value() );
|
||||
ImGuiUtil.RightAlign( file.SubModUsage[ 0 ].Item2.Path.ToString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -363,11 +363,7 @@ public partial class ModEditWindow
|
|||
{
|
||||
static bool FixFloat( ref float val, float current )
|
||||
{
|
||||
if( val < 0 )
|
||||
{
|
||||
val = 0;
|
||||
}
|
||||
|
||||
val = ( float )( Half )val;
|
||||
return val != current;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue