mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Add toggle for the Changed Item category filter.
This commit is contained in:
parent
0521cf0d18
commit
2bc7eb165e
4 changed files with 18 additions and 7 deletions
|
|
@ -48,6 +48,7 @@ public class Configuration : IPluginConfiguration, ISavable
|
||||||
public bool UseCharacterCollectionInTryOn { get; set; } = true;
|
public bool UseCharacterCollectionInTryOn { get; set; } = true;
|
||||||
public bool UseOwnerNameForCharacterCollection { get; set; } = true;
|
public bool UseOwnerNameForCharacterCollection { get; set; } = true;
|
||||||
public bool UseNoModsInInspect { get; set; } = false;
|
public bool UseNoModsInInspect { get; set; } = false;
|
||||||
|
public bool HideChangedItemFilters { get; set; } = false;
|
||||||
|
|
||||||
public bool HideRedrawBar { get; set; } = false;
|
public bool HideRedrawBar { get; set; } = false;
|
||||||
public int OptionGroupCollapsibleMin { get; set; } = 5;
|
public int OptionGroupCollapsibleMin { get; set; } = 5;
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ public class ModDataEditor
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Penumbra.Log.Error($"Could not load mod meta:\n{e}");
|
Penumbra.Log.Error($"Could not load mod meta for {metaFile}:\n{e}");
|
||||||
return ModDataChangeType.Deletion;
|
return ModDataChangeType.Deletion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,9 @@ public class ChangedItemDrawer : IDisposable
|
||||||
/// <summary> Draw a header line with the different icon types to filter them. </summary>
|
/// <summary> Draw a header line with the different icon types to filter them. </summary>
|
||||||
public void DrawTypeFilter()
|
public void DrawTypeFilter()
|
||||||
{
|
{
|
||||||
|
if (_config.HideChangedItemFilters)
|
||||||
|
return;
|
||||||
|
|
||||||
using var _ = ImRaii.PushId("ChangedItemIconFilter");
|
using var _ = ImRaii.PushId("ChangedItemIconFilter");
|
||||||
var size = new Vector2(2 * ImGui.GetTextLineHeight());
|
var size = new Vector2(2 * ImGui.GetTextLineHeight());
|
||||||
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
||||||
|
|
|
||||||
|
|
@ -372,6 +372,13 @@ public class SettingsTab : ITab
|
||||||
_config.PrintSuccessfulCommandsToChat, v => _config.PrintSuccessfulCommandsToChat = v);
|
_config.PrintSuccessfulCommandsToChat, v => _config.PrintSuccessfulCommandsToChat = v);
|
||||||
Checkbox("Hide Redraw Bar in Mod Panel", "Hides the lower redraw buttons in the mod panel in your Mods tab.",
|
Checkbox("Hide Redraw Bar in Mod Panel", "Hides the lower redraw buttons in the mod panel in your Mods tab.",
|
||||||
_config.HideRedrawBar, v => _config.HideRedrawBar = v);
|
_config.HideRedrawBar, v => _config.HideRedrawBar = v);
|
||||||
|
Checkbox("Hide Changed Item Filters", "Hides the category filter line in the Changed Items tab and the Changed Items mod panel.",
|
||||||
|
_config.HideChangedItemFilters, v =>
|
||||||
|
{
|
||||||
|
_config.HideChangedItemFilters = v;
|
||||||
|
if (v)
|
||||||
|
_config.ChangedItemFilter = ChangedItemDrawer.AllFlags;
|
||||||
|
});
|
||||||
DrawSingleSelectRadioMax();
|
DrawSingleSelectRadioMax();
|
||||||
DrawCollapsibleGroupMin();
|
DrawCollapsibleGroupMin();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue