Commit graph

11428 commits

Author SHA1 Message Date
Eric House
3f5b9f5992 get "sms" games going on curses 2020-01-29 20:40:14 -08:00
Eric House
ca8c84b9ae make it possible to run without an open game 2020-01-29 20:40:14 -08:00
Eric House
f60914ac85 include redirection in script 2020-01-29 20:40:14 -08:00
Andrea Hernandiz Lopez
cacece02b2 Translated using Weblate (Spanish)
Currently translated at 22.1% (172 of 778 strings)
2020-01-27 11:30:59 -08:00
Eric House
e91a66b48a cleanup 2020-01-26 22:21:32 -08:00
Eric House
9e09d9cd47 make alt-return like long-tap to get prev score
The hack to pass alt modifier with key might work for others, but for
now it's used in that one place.
2020-01-26 22:12:36 -08:00
Eric House
4bc39a0291 copy in some missing config 2020-01-26 21:00:05 -08:00
Eric House
db26f6baa7 fix keyboard nav not recognizing down-on-rem-text 2020-01-26 20:44:52 -08:00
Eric House
dd1e91301a add show-tiles; make cells square
draw will be responsible for wrapping stuff like Catalan's L-dot-L.
2020-01-26 07:53:12 -08:00
Eric House
a398cffaa5 fix some menus, hide others that don't work 2020-01-25 09:19:19 -08:00
Eric House
b78ad28d0e draw multi-type cell contents correctly
As long as it's not too long for the space! But the curses draw function
that knows how to measure the length-in-bytes of a multi-byte string
doesn't seem to be available to me. So pass -1 as the length and it'll
draw correctly out to the NULL terminator.
2020-01-24 21:57:35 -08:00
Eric House
b96c9cc438 fix flip 2020-01-24 09:22:49 -08:00
Eric House
598be04bef make curses app more like the rest
Lots of changes adding a games-list view to the app from which you
create new games, open and delete existing ones, etc. There's still
plenty that's unimplemented, but it's already more useful for testing
and development. Which is the point.
2020-01-24 09:05:16 -08:00
Eric House
9f0324f8ae remove assert firing in field
There must be some race condition. Better than crashing is to fail to
dispose a game's memory, which hopefully will be the effect here. I
don't understand how this happens to can't test.
2020-01-14 08:48:15 -08:00
Eric House
4ee1a2bab2 up strings for new release 2020-01-13 12:30:30 -08:00
Eric House
6386aef512 cleanup -- oops 2020-01-13 12:15:55 -08:00
Eric House
7e570cff2c use make to avoid reprocessing res_src strings.xml files
They never change, so use make's understanding of dependencies.
2020-01-13 12:10:40 -08:00
Eric House
3f78263f54 Fix board not drawing after chat dismissed
A race condition meant the dict chars never got set, which meant no
drawing.
2020-01-13 09:28:02 -08:00
Eric House
2cd94671fd cleanup, e.g. add @Override, found while debugging 2020-01-13 09:15:44 -08:00
Eric House
97bec5ca73 new script (mostly for use inside UserLAnd) 2020-01-12 12:12:55 -08:00
Eric House
d6cf1d2f95 add comment about work needing doing 2020-01-11 20:44:12 -08:00
Eric House
9bb6f8c390 don't show NFC in network stats unless it's been used 2020-01-11 15:23:06 -08:00
Eric House
4fa1b3faf4 Don't join a game that's been idle for more than two weeks
The two weeks is configurable. But the idea is somebody creates a game
with a random name but it's never joined. Eventually the name is used
again and the first to connect joins the existing game that will never
progress. I could just prune from the DB, but this is less work ongoing.
2020-01-10 20:13:06 -08:00
Eric House
dfb33c01af remove some asserts from non-DEBUG builds
I don't want to be bitten by a default: Assert.fail() again.
2020-01-10 15:35:34 -08:00
Eric House
8291b70842 Merge branch 'android_branch' into android_translate 2020-01-10 14:03:12 -08:00
Eric House
a9a5cc14ca up strings for new release 2020-01-10 13:47:53 -08:00
Eric House
9b0d4cc88e Merge remote-tracking branch 'weblate/android_translate' into android_translate 2020-01-10 13:12:25 -08:00
Eric House
f7b312d3a5 up copyright: it's a new year! 2020-01-10 12:56:42 -08:00
Eric House
5874ccf5c2 up copyright: it's a new year! 2020-01-10 12:54:01 -08:00
Eric House
6417236505 add not-again checkbox to ask-phone-permission dialog
Otherwise if you're saying "no" you keep getting asked each time you
invite.
2020-01-10 12:43:25 -08:00
Eric House
e4bc2d99ed fix crash inviting via SMS/Text
Was asserting when NFC type came through. Bad.
2020-01-10 11:44:14 -08:00
Andrea Hernandiz Lopez
712b463ee9
Translated using Weblate (Spanish)
Currently translated at 20.4% (159 of 778 strings)
2020-01-10 20:21:25 +01:00
Eric House
2bfe91b6e8 Merge remote-tracking branch 'weblate/android_translate' into android_translate 2020-01-10 09:47:50 -08:00
Eric House
9406297c03 transmit sms phone in nli (and hard-code port=1)
This fixes on gtk version being able to invite to an SMS game using
relayID. I don't know why not transmitting port is ok; maybe android
doesn't use the port or gets it some other way, e.g. it's hard-coded for
each variant.
2020-01-09 21:24:38 -08:00
Andrea Hernandiz Lopez
6df6350061
Translated using Weblate (Catalan)
Currently translated at 94.9% (738 of 778 strings)
2020-01-09 16:33:03 +01:00
Eric House
cdbf574c0e add new files device{c,h}
I've long wanted common code and state that outlast a single game. The
smsproto stuff is a step in that direction, but this file will be a
place for anything new. Starting, perhaps, with a mapping of deviceID ->
addressInfo (e.g. BT name or SMS number of opponent device) that will
let me stop duplicating that stuff in every game's comms state. We'll
see. It's guarded by a compile-time flag so I can play with in on the
Linux version until ready.
2020-01-08 11:20:51 -08:00
Eric House
68890cdf86 don't pass relayDevID unless inviting using relay
And do some cleanup to make things more clear
2020-01-08 11:20:51 -08:00
Eric House
90903c24da Merge remote-tracking branch 'weblate/android_translate' into android_translate 2019-12-30 22:53:08 -08:00
Eric House
ef9a148eb4 Merge branch 'android_branch' into android_translate 2019-12-30 22:40:38 -08:00
Eric House
1eb3c7e2e0 Write relayID conditionally so we can drop it later 2019-12-30 22:26:07 -08:00
Eric House
864648c5b9 up changes for new release 2019-12-30 22:15:51 -08:00
Eric House
c663d33f88 fix string script to detect mismatch of format specifiers
Crash due to typo introduced by Weblate made me realize I wasn't running
the script that ensures translated strings have the same set of format
specifiers as the English -- which might not be strictly necessary, but
it's safer to enforce it for now. Moved a few remaining %s to %1$s style
while at it.
2019-12-30 22:09:23 -08:00
Eric House
278275a9cb get rid of pixelation using svg instead of png
There was only one size of png for the net status arrows. Now there are
svgs that generate the whole range. Also set color programatically to
avoid having to maintain four.
2019-12-30 13:50:24 -08:00
Eric House
2268d48fe2 remove dead code (old GCM stuff) 2019-12-30 10:53:27 -08:00
Eric House
15239d4a6c Control showing message count via a prefs checkbox
Off by default on non-DEBUG builds, but still available.
2019-12-29 08:33:38 -08:00
Eric House
381efc9ddb refactor to avoid ClassNotFound crash where SDK<19 2019-12-29 06:45:41 -08:00
Eric House
42da9b1ebf don't allow devid of 0 2019-12-28 09:43:01 -08:00
Eric House
d4d4693def makefile for new French wordlist 2019-12-28 09:01:10 -08:00
Eric House
8b06cde971 up strings for new release and cleanup 2019-12-28 08:35:49 -08:00
Bernard Massot
329428c791
Translated using Weblate (French)
Currently translated at 95.5% (743 of 778 strings)
2019-12-27 23:21:15 +01:00