mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +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 UseOwnerNameForCharacterCollection { get; set; } = true;
|
||||
public bool UseNoModsInInspect { get; set; } = false;
|
||||
public bool HideChangedItemFilters { get; set; } = false;
|
||||
|
||||
public bool HideRedrawBar { get; set; } = false;
|
||||
public int OptionGroupCollapsibleMin { get; set; } = 5;
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ public class ModDataEditor
|
|||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,6 +141,9 @@ public class ChangedItemDrawer : IDisposable
|
|||
/// <summary> Draw a header line with the different icon types to filter them. </summary>
|
||||
public void DrawTypeFilter()
|
||||
{
|
||||
if (_config.HideChangedItemFilters)
|
||||
return;
|
||||
|
||||
using var _ = ImRaii.PushId("ChangedItemIconFilter");
|
||||
var size = new Vector2(2 * ImGui.GetTextLineHeight());
|
||||
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
||||
|
|
|
|||
|
|
@ -372,6 +372,13 @@ public class SettingsTab : ITab
|
|||
_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.",
|
||||
_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();
|
||||
DrawCollapsibleGroupMin();
|
||||
}
|
||||
|
|
@ -687,9 +694,9 @@ public class SettingsTab : ITab
|
|||
$"Reset minimum dimensions to ({Configuration.Constants.MinimumSizeX}, {Configuration.Constants.MinimumSizeY}).",
|
||||
x == Configuration.Constants.MinimumSizeX && y == Configuration.Constants.MinimumSizeY))
|
||||
{
|
||||
x = Configuration.Constants.MinimumSizeX;
|
||||
y = Configuration.Constants.MinimumSizeY;
|
||||
edited = true;
|
||||
x = Configuration.Constants.MinimumSizeX;
|
||||
y = Configuration.Constants.MinimumSizeY;
|
||||
edited = true;
|
||||
}
|
||||
|
||||
ImGuiUtil.LabeledHelpMarker("Minimum Window Dimensions",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue