mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Improve mod associations display.
This commit is contained in:
parent
3d6d04dde1
commit
8a87ff16b4
1 changed files with 15 additions and 10 deletions
|
|
@ -88,13 +88,14 @@ public class ModAssociationsTab(PenumbraService penumbra, DesignFileSystemSelect
|
|||
|
||||
private void DrawTable()
|
||||
{
|
||||
using var table = ImUtf8.Table("Mods"u8, 7, ImGuiTableFlags.RowBg);
|
||||
using var table = ImUtf8.Table("Mods"u8, config.UseTemporarySettings ? 7 : 6, ImGuiTableFlags.RowBg);
|
||||
if (!table)
|
||||
return;
|
||||
|
||||
ImUtf8.TableSetupColumn("##Buttons"u8, ImGuiTableColumnFlags.WidthFixed,
|
||||
ImGui.GetFrameHeight() * 3 + ImGui.GetStyle().ItemInnerSpacing.X * 2);
|
||||
ImUtf8.TableSetupColumn("Mod Name"u8, ImGuiTableColumnFlags.WidthStretch);
|
||||
if (config.UseTemporarySettings)
|
||||
ImUtf8.TableSetupColumn("Remove"u8, ImGuiTableColumnFlags.WidthFixed, ImUtf8.CalcTextSize("Remove"u8).X);
|
||||
ImUtf8.TableSetupColumn("Inherit"u8, ImGuiTableColumnFlags.WidthFixed, ImUtf8.CalcTextSize("Inherit"u8).X);
|
||||
ImUtf8.TableSetupColumn("State"u8, ImGuiTableColumnFlags.WidthFixed, ImUtf8.CalcTextSize("State"u8).X);
|
||||
|
|
@ -184,12 +185,16 @@ public class ModAssociationsTab(PenumbraService penumbra, DesignFileSystemSelect
|
|||
penumbra.OpenModPage(mod);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip($"Mod Directory: {mod.DirectoryName}\n\nClick to open mod page in Penumbra.");
|
||||
if (config.UseTemporarySettings)
|
||||
{
|
||||
ImGui.TableNextColumn();
|
||||
var remove = settings.Remove;
|
||||
if (TwoStateCheckbox.Instance.Draw("##Remove"u8, ref remove))
|
||||
updatedMod = (mod, settings with { Remove = remove });
|
||||
ImUtf8.HoverTooltip(
|
||||
"Remove any temporary settings applied by Glamourer instead of applying the configured settings. Only works when using temporary settings, ignored otherwise."u8);
|
||||
}
|
||||
|
||||
ImGui.TableNextColumn();
|
||||
var inherit = settings.ForceInherit;
|
||||
if (TwoStateCheckbox.Instance.Draw("##Enabled"u8, ref inherit))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue