No, ImGui, these buttons aren't the same.

This commit is contained in:
Exter-N 2024-08-05 09:18:57 +02:00
parent f68e919421
commit 16fecd5e37

View file

@ -91,15 +91,21 @@ public partial class MtrlTab
var dyePackB = _stainService.GudStmFile.GetValueOrNull(dyeB.Template, previewDyeB); var dyePackB = _stainService.GudStmFile.GetValueOrNull(dyeB.Template, previewDyeB);
using (var columns = ImUtf8.Columns(2, "ColorTable"u8)) using (var columns = ImUtf8.Columns(2, "ColorTable"u8))
{ {
ColorTableCopyClipboardButton(_colorTableSelectedPair << 1); using (ImUtf8.PushId("ClipboardA"u8))
ImUtf8.SameLineInner(); {
retA |= ColorTablePasteFromClipboardButton(_colorTableSelectedPair << 1, disabled); ColorTableCopyClipboardButton(_colorTableSelectedPair << 1);
ImUtf8.SameLineInner();
retA |= ColorTablePasteFromClipboardButton(_colorTableSelectedPair << 1, disabled);
}
ImGui.SameLine(); ImGui.SameLine();
CenteredTextInRest($"Row {_colorTableSelectedPair + 1}A"); CenteredTextInRest($"Row {_colorTableSelectedPair + 1}A");
columns.Next(); columns.Next();
ColorTableCopyClipboardButton((_colorTableSelectedPair << 1) | 1); using (ImUtf8.PushId("ClipboardB"u8))
ImUtf8.SameLineInner(); {
retB |= ColorTablePasteFromClipboardButton((_colorTableSelectedPair << 1) | 1, disabled); ColorTableCopyClipboardButton((_colorTableSelectedPair << 1) | 1);
ImUtf8.SameLineInner();
retB |= ColorTablePasteFromClipboardButton((_colorTableSelectedPair << 1) | 1, disabled);
}
ImGui.SameLine(); ImGui.SameLine();
CenteredTextInRest($"Row {_colorTableSelectedPair + 1}B"); CenteredTextInRest($"Row {_colorTableSelectedPair + 1}B");
} }