mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Fix selecting None for Stain.
This commit is contained in:
parent
ccb29ef9b2
commit
1fecc0a7cf
1 changed files with 5 additions and 2 deletions
|
|
@ -260,8 +260,11 @@ public class EquipmentDrawer
|
|||
? _stainCombo.Draw($"##stain{slot}", stain.RgbaColor, stain.Name, found, stain.Gloss)
|
||||
: _stainCombo.Draw($"##stain{slot}", stain.RgbaColor, stain.Name, found, stain.Gloss, _comboLength);
|
||||
ret = current;
|
||||
if (change && _stainData.TryGetValue(_stainCombo.CurrentSelection.Key, out stain))
|
||||
ret = stain.RowIndex;
|
||||
if (change)
|
||||
if (_stainData.TryGetValue(_stainCombo.CurrentSelection.Key, out stain))
|
||||
ret = stain.RowIndex;
|
||||
else if (_stainCombo.CurrentSelection.Key == Stain.None.RowIndex)
|
||||
ret = Stain.None.RowIndex;
|
||||
|
||||
if (!locked && ret != Stain.None.RowIndex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue