doodle/pkg/uix
Noah Petherbridge 77297fd60d Text Tool and Pan Tool
Two new tools added to the Level Editor:

* Pan Tool: left-click to scroll the level around safely.
* Text Tool: write text onto your level.

Features of the Text Tool:

* Can choose from the game's built-in fonts, size and enter the message
  you want to write.
* The mouse cursor previews the text when hovered over the level.
* Click to "stamp" the text onto your level. The currently selected
  color swatch will be used to color the text in.
* Adds two new fonts: Azulian.ttf and Rive.ttf that can be selected in
  the Text Tool.

Some implementation notes:

* Added package native/engine_sdl.go that handles the lower-level
  SDL2_TTF logic to rasterize the text into a black&white image.
* WASM not supported yet (if the game even still built for WASM);
  native/engine_wasm.go stubs out the TextToImage() call with a "not
  supported" error just in case.

Other changes:

* New Toolbar icons: they are 24x24 instead of 32x32 to make more room
  for more tools.
* The toolbar now shows two buttons per row for a more densely packed
  layout. For very narrow screen widths (< 600px) the default Vertical
  Toolbar layout will use one-button-per-row to not eat too much screen
  real estate.
* In the Horizontal Toolbars layout there are 2 buttons per column.
2022-03-05 15:34:20 -08:00
..
magic-form Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
actor_animation.go Switch JavaScript engine to goja 2022-01-16 20:09:27 -08:00
actor_collision.go Checkpoint Flag can Re-assign Player Character 2022-01-18 21:24:36 -08:00
actor_events.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
actor.go Invulnerable Anvil and other fixes 2022-02-20 11:48:36 -08:00
canvas_actors.go Checkpoint Flag can Re-assign Player Character 2022-01-18 21:24:36 -08:00
canvas_cursor.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
canvas_editable.go Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
canvas_link_tool.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
canvas_present.go Remove MsgPack, Fix doodad display on top/left edges 2022-01-09 13:16:29 -08:00
canvas_scrolling.go Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
canvas_strokes.go Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00
canvas_wallpaper.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
canvas_zoom.go Zoom And Edit 2021-09-11 17:02:01 -07:00
canvas.go Checkpoint Flag can Re-assign Player Character 2022-01-18 21:24:36 -08:00
crosshair.go Crosshair Option + Doodad Editor crash fix 2021-10-11 15:57:33 -07:00
scripting.go Invulnerable Anvil and other fixes 2022-02-20 11:48:36 -08:00