Lost-Empire-Entertainment / Elypso-engine

C++ OpenGL game development engine for Windows.
https://elypsoengine.com
Other
14 stars 3 forks source link

Allow dragging all number input fields left and right with middle mouse click to increase or decrease their values faster #27

Closed greeenlaser closed 9 months ago

greeenlaser commented 9 months ago

https://github.com/Lost-Empire-Entertainment/Elypso-engine/blob/eb1a2983bfb929d7c3e3c42f3d10178de443615a/Engine/src/engine/graphics/gui/gui_inspector.cpp#L105

jonesy-b-dev commented 9 months ago

This can be achieved using the ImGui::DragFloat() function example:

               // Label             v*        speed  min      max
ImGui::DragFloat("Near Clip plane", nearClip, 0.01f, 0.0001f, 1000000000);