Improved View Cursor; now also displays context information around the

cursor during operation (e.g. grab)
This commit is contained in:
brunoherbelin
2020-06-07 12:45:28 +02:00
parent 04541f23ee
commit d0c31f0331
7 changed files with 97 additions and 32 deletions

View File

@@ -77,10 +77,10 @@ void ImGuiVisitor::visit(Group &n)
ImGui::SameLine(0, 10);
float scale[2] = { n.scale_.x, n.scale_.y} ;
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
if ( ImGui::SliderFloat2("Scale", scale, -5.0, 5.0, "%.2f") )
if ( ImGui::SliderFloat2("Scale", scale, -MAX_SCALE, MAX_SCALE, "%.2f") )
{
n.scale_.x = scale[0];
n.scale_.y = scale[1];
n.scale_.x = CLAMP_SCALE(scale[0]);
n.scale_.y = CLAMP_SCALE(scale[1]);
}
// // loop over members of a group