mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 20:33:44 +01:00
Make all panels configurable.
This commit is contained in:
parent
c96f009fb4
commit
6e685b96d1
11 changed files with 176 additions and 25 deletions
|
|
@ -14,6 +14,7 @@ namespace Glamourer.Gui.Tabs.DesignTab;
|
|||
public class DesignDetailTab
|
||||
{
|
||||
private readonly SaveService _saveService;
|
||||
private readonly Configuration _config;
|
||||
private readonly DesignFileSystemSelector _selector;
|
||||
private readonly DesignFileSystem _fileSystem;
|
||||
private readonly DesignManager _manager;
|
||||
|
|
@ -30,19 +31,20 @@ public class DesignDetailTab
|
|||
private DesignFileSystem.Leaf? _changeLeaf;
|
||||
|
||||
public DesignDetailTab(SaveService saveService, DesignFileSystemSelector selector, DesignManager manager, DesignFileSystem fileSystem,
|
||||
DesignColors colors)
|
||||
DesignColors colors, Configuration config)
|
||||
{
|
||||
_saveService = saveService;
|
||||
_selector = selector;
|
||||
_manager = manager;
|
||||
_fileSystem = fileSystem;
|
||||
_colors = colors;
|
||||
_config = config;
|
||||
_colorCombo = new DesignColorCombo(_colors, false);
|
||||
}
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
using var h = ImUtf8.CollapsingHeaderId("Design Details"u8);
|
||||
using var h = DesignPanelFlag.DesignDetails.Header(_config);
|
||||
if (!h)
|
||||
return;
|
||||
|
||||
|
|
@ -159,7 +161,8 @@ public class DesignDetailTab
|
|||
ImGui.TableNextColumn();
|
||||
if (ImUtf8.Checkbox("##ResetTemporarySettings"u8, ref resetTemporarySettings))
|
||||
_manager.ChangeResetTemporarySettings(_selector.Selected!, resetTemporarySettings);
|
||||
ImUtf8.HoverTooltip("Set this design to reset any temporary settings previously applied to the associated collection when it is applied through any means."u8);
|
||||
ImUtf8.HoverTooltip(
|
||||
"Set this design to reset any temporary settings previously applied to the associated collection when it is applied through any means."u8);
|
||||
|
||||
ImUtf8.DrawFrameColumn("Color"u8);
|
||||
var colorName = _selector.Selected!.Color.Length == 0 ? DesignColors.AutomaticName : _selector.Selected!.Color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue