mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Fix ImGui ID confusion
This commit is contained in:
parent
040cd5c9db
commit
fec5c31d7b
1 changed files with 2 additions and 2 deletions
|
|
@ -367,7 +367,7 @@ public partial class MtrlTab
|
||||||
ImGui.SetCursorScreenPos(ImGui.GetCursorScreenPos() with { Y = cursor.Y });
|
ImGui.SetCursorScreenPos(ImGui.GetCursorScreenPos() with { Y = cursor.Y });
|
||||||
ImGui.SetNextItemWidth(scalarSize + itemSpacing + 64.0f);
|
ImGui.SetNextItemWidth(scalarSize + itemSpacing + 64.0f);
|
||||||
using var dis = ImRaii.Disabled();
|
using var dis = ImRaii.Disabled();
|
||||||
CtSphereMapIndexPicker("###SphereMapIndexDye"u8, "Dye Preview for Sphere Map"u8, dyePack?.SphereMapIndex ?? ushort.MaxValue, false,
|
CtSphereMapIndexPicker("###dyePreviewSphereMapIndex"u8, "Dye Preview for Sphere Map"u8, dyePack?.SphereMapIndex ?? ushort.MaxValue, false,
|
||||||
Nop);
|
Nop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -384,7 +384,7 @@ public partial class MtrlTab
|
||||||
b => dyeTable[rowIdx].SphereMapMask = b);
|
b => dyeTable[rowIdx].SphereMapMask = b);
|
||||||
ImUtf8.SameLineInner();
|
ImUtf8.SameLineInner();
|
||||||
ImGui.SetNextItemWidth(scalarSize);
|
ImGui.SetNextItemWidth(scalarSize);
|
||||||
CtDragScalar("##dyeSphereMapMask"u8, "Dye Preview for Sphere Map Intensity"u8, (float?)dyePack?.SphereMapMask * 100.0f, "%.0f%%"u8);
|
CtDragScalar("##dyePreviewSphereMapMask"u8, "Dye Preview for Sphere Map Intensity"u8, (float?)dyePack?.SphereMapMask * 100.0f, "%.0f%%"u8);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.Dummy(new Vector2(ImGui.GetTextLineHeight() / 2));
|
ImGui.Dummy(new Vector2(ImGui.GetTextLineHeight() / 2));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue