ehouse
9f7b5e077c
Ignore async responses if handles don't match to drop outdated
...
requests.
2009-09-26 18:27:28 +00:00
ehouse
5e3d40a691
up wince version to beta 3
2009-09-26 14:38:23 +00:00
ehouse
17cbbe563f
replace remaining binary bmps with ascii pgms
2009-09-24 04:37:59 +00:00
ehouse
91ccf3bac5
Replace four bitmaps with one drawn on top of background of green and
...
red based on connection progress. Store the bitmap as a pgm, and
generate the .bmp from it at build time.
2009-09-24 04:26:28 +00:00
ehouse
98e175965d
Replace letters as indicators of network status with icons. So far
...
just rects that change from red to green as we connect -- which could
be done in less space by painting.
2009-09-22 03:49:26 +00:00
ehouse
086d480fe3
cleanup
2009-09-22 03:47:21 +00:00
ehouse
6e276510eb
More tweaks from across the pond.
2009-09-22 03:46:04 +00:00
ehouse
6008633712
No link as part of dll .cab
2009-09-22 03:42:29 +00:00
ehouse
0395c5d26f
b1 -> b2
2009-09-21 12:49:57 +00:00
ehouse
a13e1d6488
add util_clearTimer, implement on all platforms, and call when closing
...
comms to fix crash on Wince when timer fired after comms had been
deleted. The closure stored and passed in was no longer a valid ptr.
2009-09-21 12:49:08 +00:00
ehouse
f8848321c4
Didn't mean to check in not deleting tmp files
2009-09-21 12:46:36 +00:00
ehouse
63fc1e048a
Fix crash going from connected to standalone game: don't invoke sockrw
...
code when its "self" is null.
2009-09-20 22:23:56 +00:00
ehouse
5fa3e2209c
build .cabs for .dlls (based on same for .exes)
2009-09-20 21:55:31 +00:00
ehouse
e8b372c274
fix more release build unused var warnings
2009-09-20 21:11:58 +00:00
ehouse
7d48ad714f
fix some warnings when building without debugging
2009-09-20 20:49:37 +00:00
ehouse
a3b326205a
Do a better job of handling failure to connect or loss of connection:
...
look for errors coming with FD_CONNECT message, look for FD_CLOSE
message, and inform relay when connection is lost so its reconnect
logic is triggered. This seems at least to handle the case where I
kill the relay mid-game.
2009-09-20 19:00:54 +00:00
ehouse
cd2da3b1c3
Let's call this beta rather than alpha in first release: it's solid.
2009-09-20 18:58:40 +00:00
ehouse
ad2cf1a7ea
Tweaks prior to sending to new translator
2009-09-20 18:58:05 +00:00
ehouse
765a36508e
Fix so can really be the main language; two static labels shouldn't
...
have been in Polish.
2009-09-19 04:46:11 +00:00
ehouse
f1b355b1ce
Move english resources into l10n directory, and change build so that
...
any of the languges can be the one built-in and english can be in a
.dll. English can now serve as a template for translation.
2009-09-19 04:16:19 +00:00
ehouse
cfad371bb6
use D-A instead of arbitrary letters for conn state -- which will be icons soon anyway.
2009-09-17 03:49:25 +00:00
ehouse
048dccebae
Don't force conns dialog open on new game.
2009-09-17 03:48:45 +00:00
ehouse
1117e76f64
Invite->Room; tweak some phrases
2009-09-17 03:45:13 +00:00
ehouse
283a249548
More tweaks from translator
2009-09-16 03:50:16 +00:00
ehouse
4ce9a87be5
Use new relay status callback, and similar callback added to socket
...
read/writer, to provide connection status beside scoreboard (in area
outside that managed by code in common/). Simple letters now, it'll
be icons eventually.
2009-09-15 13:04:34 +00:00
ehouse
18e9301e87
rename Cookie to Invite, a change that may change. Rename everywhere
...
in clients but not in relay where cookie is too pervasive. (There are
no code changes in this checkin.)
2009-09-14 03:11:11 +00:00
ehouse
b42e1adb0a
New phrase and tweaks from translator, including shortening that
...
allows reverting color dialog changes; change xWords->Crosswords for
consistency.
2009-09-13 14:47:50 +00:00
ehouse
535e97b855
replace array of indices with array of ptrs for faster & smaller code
2009-09-13 05:28:12 +00:00
ehouse
5c95c7b603
fix wince to compile with new APIs
2009-09-12 23:31:48 +00:00
ehouse
f83f6d64ed
drop a bit of logging
2009-09-12 23:17:04 +00:00
ehouse
85f9ac8598
revert to iso_8859-2 until have time to figure out why utf-8 doesn't
...
convert correctly (though it does for Polish)
2009-09-12 15:05:26 +00:00
ehouse
f0737e1356
prevent label overlap
2009-09-12 04:23:53 +00:00
ehouse
d0127c503a
fix some allcaps; mark what needs tranlation.
2009-09-11 07:49:19 +00:00
ehouse
35449825bc
Add new error string; convert to utf-8.
2009-09-11 07:45:14 +00:00
ehouse
2f0ec7e583
fix some string display bugs by using utf8 when converting; handle
...
Resend Messages menuitem (with error when standalone); add string for
that new error.
2009-09-11 07:44:27 +00:00
ehouse
df9b7bea2b
More translations.
2009-09-11 07:05:31 +00:00
ehouse
448ea05443
Start adding logging to sockets code...
2009-09-07 18:23:49 +00:00
ehouse
03eeb93925
Prefs file is created HIDDEN; open it that way too.
2009-09-07 18:22:52 +00:00
ehouse
4e8d340304
Don't re-open conns dlg if in standalone mode
2009-09-07 16:55:54 +00:00
ehouse
13e50dd149
when only one conn mode available localized versions shouldn't show
...
choice either
2009-09-07 16:46:55 +00:00
ehouse
615603b66b
Add define set to number of conn types compiled in; use it to compile
...
out conn type choice where there's only one (none to be made). Refuse
to dismiss conns dialog when cookie not chosen.
2009-09-05 13:08:46 +00:00
ehouse
044c38e02f
change formatting, variable name
2009-09-04 12:32:16 +00:00
ehouse
1c865eb2cc
static linking for recent cegcc; don't ask mingw windres to do utf8
2009-09-04 12:31:15 +00:00
ehouse
3a1c2572dd
Merge in unicode changes to read in utf-8 dictionary format
2009-09-04 12:30:10 +00:00
ehouse
c010a73098
copy over tall-narrow game info dialog layout from other .rc files
2009-09-04 12:18:46 +00:00
ehouse
8acbe2c08f
Don't sort tiles in blank picker!
2009-09-01 13:59:45 +00:00
ehouse
f72a8a5904
updates from translator
2009-09-01 12:41:56 +00:00
ehouse
dd666472a3
Fix compiler warning in non-debug case.
2009-08-30 15:20:18 +00:00
ehouse
1d2bd69251
Some fixup, e.g. missing or duplicated IDs, left from merge.
2009-08-29 16:10:56 +00:00
ehouse
9ae95366eb
merge in changes from 2546 to current HEAD on wince_42_branch to catch up with localizability. Tested only on win32 so far, where can switch locales and play via relay
2009-08-29 13:37:37 +00:00
ehouse
c347bbd963
tweak new game dialog
2009-05-01 04:36:58 +00:00
ehouse
e19e8411cb
fix compilation error
2009-05-01 04:29:13 +00:00
ehouse
927c363edf
Move more (hopefully this is it) strings into resources; make sure all
...
three .rc files have all strings.
2009-04-30 04:25:17 +00:00
ehouse
ce09a83b12
script to check that .rc files have all expected ids defined
2009-04-30 04:20:30 +00:00
ehouse
ee2e1e1234
Move another string from code into resources.
2009-04-26 20:21:21 +00:00
ehouse
0c5088192d
remove logging
2009-04-26 20:20:14 +00:00
ehouse
e4977e2c5f
Add ability to scroll dialogs by dragging. Works only on
...
touchscreens, and has no sense of momentum.
2009-04-26 20:10:28 +00:00
ehouse
eb5ee8431b
check string ids back in rather than generating; move macro from .rc
...
file into new .h all can include; use XWCOMBO more; build shippable
files in new built directory within obj_*; don't tell windres that
french is english.
2009-04-24 05:36:31 +00:00
ehouse
6638b251e0
Give all labels real IDs so can be moved; flesh out locale picker
...
dialog; add macro to replace listbox/combo triplet; rename some ids.
2009-04-23 12:37:07 +00:00
ehouse
568c75ba9a
list dlls by name rather than pattern
2009-04-23 12:31:03 +00:00
ehouse
e573fa4fb5
add missing include
2009-04-23 12:12:57 +00:00
ehouse
3ae06069b4
Fix typo
2009-04-22 12:50:31 +00:00
ehouse
efe9fdf974
When resize dialog, put half the now-wider right margin on the left.
2009-04-21 12:42:51 +00:00
ehouse
984ec5934b
get rid of translate comments. no code change.
2009-04-21 04:44:30 +00:00
ehouse
d06ade3cd7
Tweak resource layout to fit French translations better.
2009-04-21 04:29:37 +00:00
ehouse
173b49c2e2
Latest French translations; copyright catchup.
2009-04-19 17:36:28 +00:00
ehouse
c5ade1431a
Move a few more strings into resources.
2009-04-19 17:34:14 +00:00
ehouse
481e2acb92
Add dialog for choosing localization .dll; save choice in prefs and open on boot.
2009-04-19 17:33:39 +00:00
ehouse
a7bf9f611d
strip .dlls for size -- and since this seems to work around cegcc's problem with winmo 6.1
2009-04-19 17:12:55 +00:00
ehouse
8d6150e025
First cut from translator.
2009-04-14 03:38:33 +00:00
ehouse
80b9fde2da
Starting point for French translation.
2009-04-14 03:34:41 +00:00
ehouse
51b0fd5e4e
Changes to use .dll on wince: create window, which creates its menu,
...
after loading prefs since that's where language pref will be stored.
But for now, hard-code to load French so translator can see it
immediately. Also, create l10n directory in which localized .rc files
will live and modify Make file to .dlls from all.
2009-04-14 03:33:46 +00:00
ehouse
61fc087c5d
annotate template for translators. No code change.
2009-04-11 16:49:04 +00:00
ehouse
d19f052503
Track HINSTANCE of localization .dll separately, passing it where
...
appropriate; move rest (I think) of strings into resource; load menu
for win32 app after loading localization .dll.
2009-04-11 15:45:59 +00:00
ehouse
be7fe94650
add more strings
2009-04-11 15:41:40 +00:00
ehouse
aeb6d94248
generate string resource IDs from a list to avoid the trouble of keeping them sequential.
2009-04-11 15:40:19 +00:00
ehouse
d5afc6f252
generate string resource IDs from a list to avoid the trouble of keeping them sequential.
2009-04-11 15:40:01 +00:00
ehouse
848ccaaff7
remove resources (e.g. colors) that don't need localization; add more strings.
2009-04-11 15:38:40 +00:00
ehouse
2727cacae0
Start factoring out strings for localization: move most to resource,
...
add new file that loads resources (working around LoadString not
working as docs say it should). Add all-caps version for testing and
not-yet-working cmdline change to use it.
2009-04-09 13:48:38 +00:00
ehouse
669e423ca8
Use new dict API to get rid of XP_UCHAR4 type, replacing with const XP_UCHAR*.
2009-04-07 04:23:56 +00:00
ehouse
f3b53e4aaf
When dict is utf8, convert to wchar_t assuming CP_UTF8 rather than CP_ACP.
2009-04-05 20:18:46 +00:00
ehouse
f0d6dda9dd
A couple of new types for xp code dealing with utf8.
2009-04-05 19:27:30 +00:00
ehouse
241b24c862
Read new dicts and old into new format.
2009-04-05 19:24:10 +00:00
ehouse
f9e6c5631d
Move WSACleanup into main where it can be called once per launch
...
rather than per use of relay, parallel to WSAStartup.
2009-03-08 20:01:47 +00:00
ehouse
f874183475
Use nwgamest support for separate config button beside role combo, and
...
remove hack responding to tap (without change) on that combo.
2009-03-08 20:00:20 +00:00
ehouse
f598340239
relay name defaults to eehouse.org, easier to set at compile time for testing
2009-03-08 19:47:36 +00:00
ehouse
4909ae0137
Close down relay connection when comms going away. Fixes crashes when
...
new game is standalone and prev used relay. Add logging code in comms.
2009-03-06 13:43:03 +00:00
ehouse
8fd1d5b2a9
cleanup for new compiler: -D option, winsock2.h, fix warning
2009-03-06 04:53:56 +00:00
ehouse
44ef132d85
swprintf->_snwprintf to make newer cegcc happy
2009-03-06 04:52:06 +00:00
ehouse
14cb742b38
don't pass wrong proc ptr
2009-03-02 01:45:16 +00:00
ehouse
9cb1f8ab59
minimal test for comparing cegcc versions
2009-02-25 03:45:14 +00:00
ehouse
b2112371b2
Make it possible to see comms dialog in read-only mode when role
...
selector is disabled (for game info use of new game dialog.)
2009-02-21 17:03:30 +00:00
ehouse
44a3888d6d
Add enum to debug-only logging.
2009-02-14 16:24:06 +00:00
ehouse
2be682b4e9
Use new bufqueue util
2009-02-09 02:51:43 +00:00
ehouse
9ce82a7c94
fix leak of packet buffers; get rid of multithread code.
2009-02-07 18:20:16 +00:00
ehouse
326e57e742
commented-out setting of default relay host name
2009-02-07 18:18:24 +00:00
ehouse
5a5cba9d1b
Handle case where packet contains several messages; attempt to send on
...
socket-writable and on receiving message to be sent; cleanup. With
this change full robot-vs-robot game has worked over relay, but not
reliably. I think it's the relay's fault. Still tested only on Win32.
2009-02-01 16:46:00 +00:00
ehouse
8d1da3ee0e
Put back code initiating connection when starting client game.
2009-02-01 16:43:01 +00:00
ehouse
53b27c96c9
Helps to compile platforms too before checking in...
2009-02-01 16:20:18 +00:00
ehouse
c672fcfafd
Make it possible to run same binary against relay with relay heartbeat
...
and direct with comms heartbeat. This mostly means changing ifdefs.
2009-02-01 15:50:58 +00:00
ehouse
1a99dc7e1c
Beginning of rewrite of socket code for communication with relay,
...
replacing dedicated threads for read and write with non-blocking
sockets driven from the main window proc. So far it can do a
round-trip against the relay on win32, and compiles but isn't tested
on wince.
2009-01-31 18:06:09 +00:00
ehouse
9e7144d8c9
comment about APIs to use for implementation (probably the last checkin of this file.)
2009-01-31 18:03:06 +00:00
ehouse
0d08147472
Turn off SMS by default (pending confirming a way to use the apis in unsigned app); add commented-out NO_DRAW option.
2009-01-31 18:02:02 +00:00
ehouse
52a4a92e14
If smallest bitmap is too big, use it anyway at full size.
2009-01-18 19:52:46 +00:00
ehouse
50a6f93b99
Pick largest possible bitmap; fix inconsistency between cedict's idea
...
of bitmap format and cedraw's: rows are padded to 8-bit boundary, not
necessarily 16-bit.
2009-01-18 18:29:27 +00:00
ehouse
06632f5495
get rid of excess logging (one line)
2009-01-18 18:17:08 +00:00
ehouse
e1bc780beb
In tray, when values are hidden draw letters instead of bitmap if
...
they'll fit.
2009-01-17 20:30:49 +00:00
ehouse
e6132b3dde
Scale bitmaps for specials to the size of an M so they look right next
...
to other letters.
2009-01-17 18:49:35 +00:00
ehouse
dd1f9aa8ca
Include function name in assertion failure message; always print to
...
file before putting up warning.
2009-01-17 18:44:45 +00:00
ehouse
d58d9bedd7
return TRUE after handling WM_INITDIALOG
2009-01-17 18:41:15 +00:00
ehouse
2e488374f1
bug fix: fix reversed width and height params to StretchBlt
2009-01-17 15:45:24 +00:00
ehouse
08ceeb85b7
Fix size test for bitmap caching
2009-01-14 13:27:56 +00:00
ehouse
8aadcb3406
Get rid of unused parameter
2009-01-14 13:02:08 +00:00
ehouse
aee316372e
Use new api. Use small for cell and large for tile still, but now
...
create and cache an actual HBITMAP, and prefer it to letters. This is
needed for Catalan where "L-L" will never fit. Still to be done:
prefer letters to bitmap where they'll actually fit (devices where
tiles drawn wider), and position better in tray. May also want to
allow scaling.
2009-01-13 13:11:05 +00:00
ehouse
88364775a1
cleanup: get rid of confusing but harmless *
2009-01-13 13:03:59 +00:00
ehouse
ac8c06d9cf
Turn on and enable UI for relay and sms transport. relay doensn't
...
work, at least on win32 where threading code is broken, and former is
completely stubbed out.
2009-01-05 14:13:40 +00:00
ehouse
4595191395
Always use GetForegroundWindow to find parent
2009-01-05 14:06:52 +00:00
ehouse
0b82d75bc8
add controls for sms connecting
2009-01-05 14:05:56 +00:00
ehouse
4698b835e8
Fix to compile with relay enabled and not STANDALONE_ONLY. Verified
...
that win32 build can open games saved by previous version, but nothing
else (e.g. use of network or even dialogs to set up relay connection
parameters.)
2009-01-04 00:00:45 +00:00
ehouse
cefd69d8b3
Since there's now a flag indicating whether to show the value of a
...
tile, make value unsigned. Adjust/fix platforms. Add cmdline flag to
linux apps for hiding values.
2008-12-29 03:09:35 +00:00
ehouse
270006f47b
rename variables; fix compiler warning.
2008-12-20 04:25:41 +00:00
ehouse
bc01341f95
When values are hidden, draw letters as large as possible in the tile.
2008-12-13 07:34:16 +00:00
ehouse
3666235462
App name and game name don't fit most titlebars, so use app name only
...
when game has none yet.
2008-12-13 07:29:47 +00:00
ehouse
dab2f23479
Use Ok for stringbox, Done for Saved games dialog; next release to be
...
rc1, not b7
2008-12-13 04:39:06 +00:00
ehouse
9e7bfe0ff7
Provide default player names in game info dialog rather than when
...
creating the very first game to fix bug where creating a game with n+m
players from a saved game with n yields m blank default names.
2008-12-12 13:42:52 +00:00
ehouse
59cd2a83d1
Make tray tiles one pixel taller, extending all the way to bottom of
...
screen.
2008-12-12 13:40:41 +00:00
ehouse
cb7b8bf84f
Back out change: button to dismiss Saved games dialog is "Done" again,
...
not "Ok".
2008-12-12 05:28:53 +00:00
ehouse
e28363f369
Warn when unable to open a saved game (generally when an older version
...
of the app tries to open game saved by newer version.)
2008-12-11 13:48:59 +00:00
ehouse
909bcb1dca
Don't open saved games dialog unless current game has a name:
...
cancelling name request cancels saved games dlg too.
2008-12-08 05:51:21 +00:00
ehouse
5aa7289dfe
Don't remove extension if there's isn't one (fixes new segfault.)
2008-12-08 05:50:25 +00:00
ehouse
19d8f307b1
Add appropriate icon flags to all uses of MessageBox; remove a couple
...
of unnecessary Cancel buttons.
2008-12-07 16:24:26 +00:00
ehouse
c38297711e
Fix other sites putting up dialogs claiming main window as parent when
...
it isn't.
2008-12-07 05:21:13 +00:00
ehouse
c791010603
Don't let smartphone users set hintlimits checkbox, and explain
...
why. Fix bug calling MessageBox with main window ptr from dialog.
Include name of preexisting file when warning user who enters it while
saving/renaming.
2008-12-07 01:30:18 +00:00
ehouse
e37cfa6ce8
up version to b7
2008-12-06 22:21:38 +00:00
ehouse
c82fb50055
Use SetBkMode to prevent overlapping tile face/value pairs from
...
erasing each other.
2008-12-06 22:14:40 +00:00
ehouse
57197f8b2c
Mods to saved games dialog: allow to rename the current game; after
...
renaming or duplicating a game, make that new name the one initially
selected in the listbox; remove sorting code relying on OS to sort
when CBS_SORT set.
2008-12-06 20:28:01 +00:00
ehouse
6da758b5fa
set text color before drawing star bitmap to make color consistent;
...
add utility function for setting colors to reduce code size.
2008-12-06 16:22:43 +00:00
ehouse
af1ca9af84
Quash some compile-time warnings. snprintf instead of sprintf.
2008-12-06 15:59:30 +00:00
ehouse
5508ae4593
Add testcases for Treo-sized screens.
2008-12-04 06:17:14 +00:00
ehouse
a9fbd3c027
Ignore bitmap for tiles, using string instead.
2008-12-04 06:16:37 +00:00
ehouse
dbb8dd4713
Fix blank picker on PPC by making dropdown tall enough to drop.
2008-12-04 06:15:57 +00:00
ehouse
088ab1451e
Use minimum height for tile value; draw bitmaps (clipped) even if too large.
2008-12-03 13:42:30 +00:00
ehouse
62aca48673
Make Show values the left softkey after chosen once.
2008-12-03 13:40:07 +00:00
ehouse
1c6460f64a
Add "Hide tile values" checkbox and support it.
2008-12-03 13:37:55 +00:00
ehouse
de6f6dcdef
draw bitmaps larger when will fit; draw hint region border thicker and
...
in player color; rename constants.
2008-12-02 13:47:18 +00:00
ehouse
b3d3f80860
Lots of little tweaks to dialog item locations. Also, don't make
...
phonies combo/list box sorted since that screws up order of choices.
2008-12-01 13:19:14 +00:00
ehouse
3bb15ab093
add (unused) missing defines for IME stuff, which can't work until I
...
figure out how to test for presence of qwerty keyboard
2008-12-01 13:16:58 +00:00
ehouse
5c53620470
if scrollbar has focus when removed due to screen resize, don't
...
continue to draw indicator rects in focus color
2008-12-01 13:11:58 +00:00
ehouse
7d9259f16a
update readme
2008-11-22 16:49:55 +00:00
ehouse
44ae99a075
remove redundant set of #defines for whether we're compiling for desktop or wince
2008-11-22 16:43:55 +00:00