Commit graph

44 commits

Author SHA1 Message Date
Eric House
1aa3ddcde0 cleanup and tweaks 2021-03-19 14:30:17 -07:00
Eric House
01c7bcf9e3 fix get-string dialog 2021-03-19 14:29:49 -07:00
Eric House
af5c116a78 new game choices stored for next time; change dicts path
Lots of tweaks. Main was from realizing that storing special-names files
and can-be-anything files in the same directory isn't good.
2021-03-19 14:29:49 -07:00
Eric House
b50ac07271 add option to disable hints 2021-03-19 14:29:49 -07:00
Eric House
585f55c040 use notifications and other tweaks 2021-03-19 14:29:49 -07:00
Eric House
0d7b81ac72 tweak UI for small screens 2021-03-19 14:29:49 -07:00
Eric House
1b0acd87ee prevent dbg and rel from conflicting 2021-03-19 14:29:49 -07:00
Eric House
99baf4bf3b pass dbg and host info via register 2021-03-19 14:29:49 -07:00
Eric House
f3b76da8e1 add more info to game "buttons"
Toward a games-list substitute. New game_summarize method will get
fleshed out and eventually replace what's in jni?
2021-03-19 14:29:48 -07:00
Eric House
3c770e023f also grab native wordlist 2021-03-19 14:29:48 -07:00
Eric House
e61e1e9fb2 set newgame choices to defaults 2021-03-19 14:29:48 -07:00
Eric House
21b8cc0d95 store langauge name, display in title 2021-03-19 14:29:48 -07:00
Eric House
829242c9bb fix to deal with failed downloads 2021-03-19 14:29:48 -07:00
Eric House
ef673d8df0 prune some logging 2021-03-19 14:29:20 -07:00
Eric House
c19d82541d allow language selection in newgame dialog 2021-03-19 14:28:34 -07:00
Eric House
4f524d0bb0 download wordlists when needed for invitation 2021-03-19 14:28:34 -07:00
Eric House
567c3dbf9e show mempool stats (DEBUG builds) 2021-03-19 14:27:04 -07:00
Eric House
55f590ca0b choose the smallest dict available
I'm running out of memory when using the largest English
dicts. Something other than LocalStorage will have to be used for
Polish, but for now limp along with smaller wordlists.
2021-03-19 14:27:04 -07:00
Eric House
5e9863adaf snapshot: downloading wordlist seems to work 2021-03-19 14:27:04 -07:00
Eric House
2ab2f5642e add name button and store wordlist
As a p.o.c., load the built-in wordlist into storage once, and
thereafter use it from there rather than as a file. Now it can go away
and a wordlist for the user's locale be downloaded and stored instead.
2021-03-19 14:27:04 -07:00
Eric House
39161a1170 just some notes 2021-03-19 14:27:04 -07:00
Eric House
4eede76780 add callback called when window regains focus
I need to redraw the canvas then, but haven't figured out yet.
2021-03-19 14:27:04 -07:00
Eric House
30e6182c7a sort game names in opengames dialog 2021-03-19 14:27:04 -07:00
Eric House
280390990f use new scheme to simplify blank picking 2021-03-19 14:27:04 -07:00
Eric House
ae05e62a5a Don't fail when two games have same name
Needed to change how callbacks worked, and that temporarily killed
sorting. Will fix.
2021-03-19 14:27:04 -07:00
Eric House
5cd4b31648 fix to do num-based comparison 2021-03-19 14:27:04 -07:00
Eric House
c8f22f5fb1 register with mqtt host 2021-03-19 14:27:04 -07:00
Eric House
033290bd69 cleanup, esp around js callbacks 2021-03-19 14:27:04 -07:00
Eric House
940e2569c9 fix exiting when another tab opened. And cleanup. 2021-03-19 14:27:04 -07:00
Eric House
e2beccc85c sort games, fix buttons 2021-03-19 14:27:04 -07:00
Eric House
b386abcf9d make stuff better 2021-03-19 14:27:04 -07:00
Eric House
43874a6a5d new game works
Only two options: local game with one robot, or networked needing to
invite someone.
2021-03-19 14:27:04 -07:00
Eric House
57783756d6 rename and open seem to work 2021-03-19 14:27:04 -07:00
Eric House
3a0d0befc7 toward allowing multiple games 2021-03-19 14:27:04 -07:00
Eric House
c79d634458 add blank-picker dialog 2021-03-19 14:27:04 -07:00
Eric House
07d5bd9883 refactor: one method for rows of buttons 2021-03-19 14:27:04 -07:00
Eric House
007e1e4acb add alert for asking user for string 2021-03-19 14:27:04 -07:00
Eric House
52773c577f make dialogs stackable 2021-03-19 14:27:04 -07:00
Eric House
540cf73496 cleanup: fetch checkboxes rather than pass in 2021-03-19 14:27:04 -07:00
Eric House
74109ce172 fix to send after connect 2021-03-19 14:27:04 -07:00
Eric House
5a061f5786 notify, and stop using, when another tab starts up
I'm wrestling with how to have concurrent tabs open. They can't be on
the same game because both can't connect using same MQTT dev id (and
they'd quickly get the saved state screwed up.) Only problem is
sometimes a tab in a new window doesn't have access to localstorage and
so is able to connect on its own. But later that state isn't reachable
any more: relaunch firefox and you get back the to the older state.
2021-03-19 14:27:04 -07:00
Eric House
dc90823e9b move alert to on top of board 2021-03-19 14:27:04 -07:00
Eric House
eec86e099d make alert and confirm non-blocking
Using a custom div and callbacks. TODO: make it floating so it's more
dialog-like. But that's just css at this point.
2021-03-19 14:27:04 -07:00
Eric House
76139c43f6 move most of my js into separate file 2021-03-19 14:27:04 -07:00