GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Add context menu item to center view on the scene editor

Open AlexandreSi opened this issue 2 years ago • 0 comments

Add new methods to:

  • ✅ Return to initial position (view matches the game resolution)
  • ✅ Fit zoom to selected instances (center of the rectangle that contains them all
  • ✅ Fit zoom to the whole scene
image

Technical side quests done:

  • Use Rectangle class everywhere the former rectangle object ({x, y, width, height}) was defined
  • Remove deprecated keyboard shortcuts class
  • Add missing types a bit everywhere it was needed (mainly for instance measurer)

Notes:

  • There was a condition that prevented to detect mouse mid button clicks in the deprecated keyboard shortcuts class for Mac-like machines (that prevented to move the scene keeping the mouse mid button pressed) => I didn't keep it

AlexandreSi avatar Sep 16 '22 13:09 AlexandreSi