doodle/render/sdl
Noah Petherbridge b4a366baa9 Introduce Drawing Tools Concept, Pencil and Actor
The uix.Canvas widget now maintains a selected Tool which configures how
the mouse interacts with the (editable) Canvas widget.

The default Tool is the PencilTool and implements the old behavior: it
draws pixels when clicked and dragged based on your currently selected
Color Swatch. This tool automatically becomes active when you toggle the
Palette tab in the editor mode.

A new Tool is the ActorTool which becomes active when you select the
Doodads tab. In the ActorTool you can't draw pixels on the level, but
when you mouse over a Doodad instance (Actor) in your level, you may
pick it up and drag it someplace else.

Left-click an Actor to pick it up and drag it somewhere else.
Right-click to delete it completely.

You can also delete an Actor by dragging it OFF of the Canvas, like back
onto the palette drawer or onto the menu bar.
2018-10-20 17:08:20 -07:00
..
canvas.go Abstract Drawing Canvas into Reusable Widget 2018-08-16 20:37:19 -07:00
events.go Introduce Drawing Tools Concept, Pencil and Actor 2018-10-20 17:08:20 -07:00
fps.go Abstract away all SDL logic into isolated package 2018-07-21 17:12:22 -07:00
log.go Draw Actors Embedded in Levels in Edit Mode 2018-10-19 13:32:25 -07:00
sdl.go Draw Actors Embedded in Levels in Edit Mode 2018-10-19 13:32:25 -07:00
text.go Menu Toolbar for Editor + Shell Prompts + Theme 2018-08-11 17:30:00 -07:00
texture.go Drag Doodads Onto Levels in Edit Mode 2018-10-20 16:03:59 -07:00
utils.go Add ui.Supervisor for Widget Event Handling 2018-07-25 20:25:02 -07:00