Window idea: Picture-in-Picture #50

Closed
opened 2021-10-04 03:03:15 +00:00 by kirsle · 0 comments

For the Workout Editor:

An openable window that can show an independent viewport into the same canvas you are currently editing.

Unknowns:

  • Sharing data? each uix.Canvas is given the *Level and if they both mutate it at the same time?

It may at least safely support a 'read-only' view into the map in case of data sharing problems (edit mode off). It can still be valuable to reference a different part of the map while you're working.


Initial version added in: 1f83300cec

  • Yes it is editable.
  • Strokes drawn in the viewport appear in the main editor and vice versa.
  • Multiple viewports all see live changes to the pixels drawn on the level.

Some quirks to improve:

  • Actor and Link tools don't work. They rely on callback hooks currently only initialized for the main canvas. If that code is made reusable these tools could work.
  • Share a pointer to the editor scene's selected tool? So viewports don't need their own independent control.
  • Viewport should open scrolled near the main editors viewport instead of 0,0.
For the Workout Editor: An openable window that can show an independent viewport into the same canvas you are currently editing. Unknowns: * Sharing data? each uix.Canvas is given the \*Level and if they both mutate it at the same time? It may at least safely support a 'read-only' view into the map in case of data sharing problems (edit mode off). It can still be valuable to reference a different part of the map while you're working. --- Initial version added in: 1f83300cec0a26bb05f887075f709d6be83bf4fa * Yes it is editable. * Strokes drawn in the viewport appear in the main editor and vice versa. * Multiple viewports all see live changes to the pixels drawn on the level. Some quirks to improve: * Actor and Link tools don't work. They rely on callback hooks currently only initialized for the main canvas. If that code is made reusable these tools could work. * Share a pointer to the editor scene's selected tool? So viewports don't need their own independent control. * Viewport should open scrolled near the main editors viewport instead of 0,0.
kirsle added the
enhancement
ui toolkit
labels 2021-10-04 03:03:15 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SketchyMaze/doodle#50
There is no content yet.