mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-20 06:27:43 +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;
|
_currentDesign = currentDesign;
|
||||||
InnerWidth = 400 * ImGuiHelpers.GlobalScale;
|
InnerWidth = 400 * ImGuiHelpers.GlobalScale;
|
||||||
var name = label ?? "Select Design Here...";
|
var name = label ?? "Select Design Here...";
|
||||||
var ret = Draw("##design", name, string.Empty, width, ImGui.GetTextLineHeightWithSpacing())
|
bool ret;
|
||||||
&& CurrentSelection != null;
|
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)
|
if (currentDesign != null)
|
||||||
{
|
{
|
||||||
|
|
@ -195,7 +199,6 @@ public sealed class RevertDesignCombo : DesignComboBase, IDisposable
|
||||||
_autoDesignManager = autoDesignManager;
|
_autoDesignManager = autoDesignManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Draw(AutoDesignSet set, AutoDesign? design, int autoDesignIndex)
|
public void Draw(AutoDesignSet set, AutoDesign? design, int autoDesignIndex)
|
||||||
{
|
{
|
||||||
if (!Draw(design?.Design, design?.Name(Incognito), ImGui.GetContentRegionAvail().X))
|
if (!Draw(design?.Design, design?.Name(Incognito), ImGui.GetContentRegionAvail().X))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue