Noah Petherbridge
336a949ed0
* 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.
27 lines
1.1 KiB
Modula-2
27 lines
1.1 KiB
Modula-2
module git.kirsle.net/apps/doodle
|
|
|
|
go 1.15
|
|
|
|
replace git.kirsle.net/go/render => /home/kirsle/SketchyMaze/render
|
|
replace git.kirsle.net/go/ui => /home/kirsle/SketchyMaze/ui
|
|
|
|
require (
|
|
git.kirsle.net/go/audio v0.0.0-20200429055451-ae3b0695ba6f
|
|
git.kirsle.net/go/log v0.0.0-20200902035305-70ac2848949b
|
|
git.kirsle.net/go/render v0.0.0-20200710023247-e5f4c3a16860
|
|
git.kirsle.net/go/ui v0.0.0-20200710023146-e2a561fbd04c
|
|
github.com/google/uuid v1.1.2
|
|
github.com/kirsle/configdir v0.0.0-20170128060238-e45d2f54772f
|
|
github.com/robertkrimen/otto v0.0.0-20200922221731-ef014fd054ac
|
|
github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e // indirect
|
|
github.com/urfave/cli v1.22.5
|
|
github.com/urfave/cli/v2 v2.3.0
|
|
github.com/veandco/go-sdl2 v0.4.4
|
|
github.com/vmihailenco/msgpack v3.3.3+incompatible
|
|
golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9 // indirect
|
|
golang.org/x/image v0.0.0-20200927104501-e162460cd6b5
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
gopkg.in/sourcemap.v1 v1.0.5 // indirect
|
|
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
|
|
)
|