doodle/pkg/uix
Noah Petherbridge 336a949ed0 Global UI Popup Modals
* Adds global modal support in the pkg/modal/ package. It has easy
  Alert() and Confirm() methods to prompt the user before calling a
  callback function on affirmative response.
* Modals have global app state: they're processed in the main loop in
  pkg/doodle.go similar to the global command shell.
* When a modal is active, a semitransparent black frame covers the
  screen (gameplay loop paused, last game frame rendered below) and the
  modal window appears on top.
* The developer console retains higher priority than the modal system
  and always renders on top.
* Editor Mode: track when the level pixels have been modified, and
  confirm the user about unsaved changes when they attempt to close the
  level (New, Open, Close, etc.)
* Global: the Escape key no longer immediately shuts down the game, but
  will confirm the user's intent via a modal.
* File->Quit in the Editor Mode also invokes the confirm shutdown modal.
2020-11-15 18:02:35 -08:00
..
actor_animation.go Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
actor_collision.go Fix getting stuck atop solid doodads 2020-04-04 21:21:11 -07:00
actor_events.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
actor.go The Window Manager Update 2020-04-06 23:21:17 -07:00
canvas_actors.go Tighten Doodad JavaScript API, User Documentation 2020-04-21 23:50:45 -07: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 Global UI Popup Modals 2020-11-15 18:02:35 -08:00
canvas_link_tool.go Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
canvas_present.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
canvas_scrolling.go Level Collision and Scrolling Fixes 2020-01-02 20:23:27 -08:00
canvas_strokes.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
canvas_wallpaper.go Level Collision and Scrolling Fixes 2020-01-02 20:23:27 -08:00
canvas.go Global UI Popup Modals 2020-11-15 18:02:35 -08:00