mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-01-03 06:13:45 +01:00
Add design color to preview in combos.
This commit is contained in:
parent
c245b30eaa
commit
13bf83b2b7
1 changed files with 7 additions and 4 deletions
|
|
@ -81,9 +81,13 @@ public abstract class DesignComboBase : FilterComboCache<Tuple<Design, string>>,
|
|||
{
|
||||
_currentDesign = currentDesign;
|
||||
InnerWidth = 400 * ImGuiHelpers.GlobalScale;
|
||||
var name = label ?? "Select Design Here...";
|
||||
var ret = Draw("##design", name, string.Empty, width, ImGui.GetTextLineHeightWithSpacing())
|
||||
&& CurrentSelection != null;
|
||||
var name = label ?? "Select Design Here...";
|
||||
bool ret;
|
||||
using (_ = currentDesign != null ? ImRaii.PushColor(ImGuiCol.Text, _designColors.GetColor(currentDesign)) : null)
|
||||
{
|
||||
ret = Draw("##design", name, string.Empty, width, ImGui.GetTextLineHeightWithSpacing())
|
||||
&& CurrentSelection != null;
|
||||
}
|
||||
|
||||
if (currentDesign != null)
|
||||
{
|
||||
|
|
@ -195,7 +199,6 @@ public sealed class RevertDesignCombo : DesignComboBase, IDisposable
|
|||
_autoDesignManager = autoDesignManager;
|
||||
}
|
||||
|
||||
|
||||
public void Draw(AutoDesignSet set, AutoDesign? design, int autoDesignIndex)
|
||||
{
|
||||
if (!Draw(design?.Design, design?.Name(Incognito), ImGui.GetContentRegionAvail().X))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue