doodle/pkg/native/file_dialog_fallback.go
Noah Petherbridge 1a9706c09f Level Thumbnails on Story Mode Select
* Rework the Story Mode UI to display level thumbnails.
  * Responsive UI: defaults to wide screen mode and shows 3 levels horizontally
    but on narrow/mobile display, shows 2 levels per page in portrait.
  * Add "Tiny" screenshot size (224x126) to fit the Story Mode UI.
  * Make the pager buttons bigger and more touchable.
* Maximize the game window on startup unless the -w option with a specific
  window resolution is provided.
2023-12-09 14:59:31 -08:00

21 lines
329 B
Go

//go:build js && wasm
// +build js,wasm
package native
import (
"git.kirsle.net/SketchyMaze/doodle/pkg/shmem"
)
func init() {
FileDialogsReady = false
}
// OpenFile fallback uses the shell prompt.
func OpenFile(title string, filter string) (string, error) {
shmem.Prompt(title, func(value string) {
})
return "", nil
}