Skip to content

Commit 62ffb48

Browse files
committed
Add tooltips to pitch/yaw/roll sliders
1 parent c52f2f3 commit 62ffb48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Gui/Documents/MapEditor/ZoneObjectInspector.bf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,22 @@ public static class BaseZoneObjectInspector : IZoneObjectInspector<ZoneObject>
177177
f32 angleMinDeg = -360.0f;
178178
f32 angleMaxDeg = 360.0f;
179179
bool orientChanged = false;
180+
StringView angleTooltip = "Ctrl + left click to type";
180181
if (ImGui.SliderFloat("Pitch", &obj.Pitch, angleMinDeg, angleMaxDeg))
181182
{
182183
orientChanged = true;
183184
}
185+
ImGui.TooltipOnPrevious(angleTooltip);
184186
if (ImGui.SliderFloat("Yaw", &obj.Yaw, angleMinDeg, angleMaxDeg))
185187
{
186188
orientChanged = true;
187189
}
190+
ImGui.TooltipOnPrevious(angleTooltip);
188191
if (ImGui.SliderFloat("Roll", &obj.Roll, angleMinDeg, angleMaxDeg))
189192
{
190193
orientChanged = true;
191194
}
195+
ImGui.TooltipOnPrevious(angleTooltip);
192196

193197
//Make matrices from the angle deltas and multiply Orient by them to rotate it
194198
Mat3 pitchDelta = Mat3.RotationAxis(.(0.0f, 0.0f, 1.0f), Math.ToRadians(obj.Pitch - initialPitch));

0 commit comments

Comments
 (0)