doodle/pkg/windows
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
..
about.go Menu Bar Update 2020-06-04 21:55:54 -07:00
add_edit_level.go Window Icon, UI Polish 2021-12-30 16:31:45 -08:00
doodad_dropper.go Add Technical Doodads + UI Fixes 2021-10-02 20:52:16 -07:00
doodad_properties.go Small typo fix 2021-09-03 21:45:48 -07:00
filesystem_window.go Manage Embedded Files In Levels 2021-06-13 16:03:32 -07:00
layers_window.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
levelpack_open.go Centralize cheats, detect cheated player character 2022-01-08 18:27:37 -08:00
license_key.go Diverge Free vs. Paid Features 2021-06-16 22:35:01 -07:00
open_level_editor.go Window Icon, UI Polish 2021-12-30 16:31:45 -08:00
palette_editor.go Add the ui.ColorPicker 2022-01-01 18:48:34 -08:00
pip_canvas.go Spit and polish 2022-01-02 22:36:32 -08:00
publish_level.go Refactor Level Publishing + MagicForm 2022-01-17 18:51:11 -08:00
settings.go Game Controller Support 2022-02-19 18:31:22 -08:00
text_tool.go Text Tool and Pan Tool 2022-03-05 15:34:20 -08:00