You are browsing as a guest. Sign up (or log in) to start making projects!

2h 7m 49s logged

ui editing gizmos!!!1

you can finally drag UI elements around in the editor
(instead of typing position/scale values into the inspector)

changes

ui gizmo

added a proper UI gizmo with resize handles and dragging support and that

  • corners resize both axes, edges resize one axis
  • dragging the body moves the element
  • resizing from the top/left keeps the opposite edge anchored
  • added a small drag deadzone so clicking doesn’t accidentally create an undo step
  • UI transforms now go through TransformUIElementCommand, so they’re undo/redo -able

also renamed the existing entity gizmo code and naming gets confusing otherwise…

coordinate stuff

the gizmo needed mouse coordinates relative to the viewport rather than the whole window, so added some better viewport coordinate handling for that… maybe a lil late

ui editing mode

buttons won’t randomly enter their hover/pressed states just because your mouse is sitting over them now in the editor beccause its a lil annoying when editing

small optimization

also fixed UIText and UIButton recalculating their text layout every frame when nothing changes

feels nice :)

0
51

Comments 0

No comments yet. Be the first!