Skip to content

Commit 0d1ed6a

Browse files
Exter-NOttermandias
authored andcommitted
No, ImGui, these buttons aren't the same.
1 parent f68e919 commit 0d1ed6a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Penumbra/UI/AdvancedWindow/Materials/MtrlTab.ColorTable.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,21 @@ private bool DrawColorTablePairEditor(ColorTable table, ColorDyeTable? dyeTable,
9191
var dyePackB = _stainService.GudStmFile.GetValueOrNull(dyeB.Template, previewDyeB);
9292
using (var columns = ImUtf8.Columns(2, "ColorTable"u8))
9393
{
94-
ColorTableCopyClipboardButton(_colorTableSelectedPair << 1);
95-
ImUtf8.SameLineInner();
96-
retA |= ColorTablePasteFromClipboardButton(_colorTableSelectedPair << 1, disabled);
94+
using (ImUtf8.PushId("ClipboardA"u8))
95+
{
96+
ColorTableCopyClipboardButton(_colorTableSelectedPair << 1);
97+
ImUtf8.SameLineInner();
98+
retA |= ColorTablePasteFromClipboardButton(_colorTableSelectedPair << 1, disabled);
99+
}
97100
ImGui.SameLine();
98101
CenteredTextInRest($"Row {_colorTableSelectedPair + 1}A");
99102
columns.Next();
100-
ColorTableCopyClipboardButton((_colorTableSelectedPair << 1) | 1);
101-
ImUtf8.SameLineInner();
102-
retB |= ColorTablePasteFromClipboardButton((_colorTableSelectedPair << 1) | 1, disabled);
103+
using (ImUtf8.PushId("ClipboardB"u8))
104+
{
105+
ColorTableCopyClipboardButton((_colorTableSelectedPair << 1) | 1);
106+
ImUtf8.SameLineInner();
107+
retB |= ColorTablePasteFromClipboardButton((_colorTableSelectedPair << 1) | 1, disabled);
108+
}
103109
ImGui.SameLine();
104110
CenteredTextInRest($"Row {_colorTableSelectedPair + 1}B");
105111
}

0 commit comments

Comments
 (0)