ehouse
c4de8b5ba5
disable juggle button if only one player active; copy all four players when saving game state after dismissal.
2006-06-18 19:02:47 +00:00
ehouse
851946ffbc
add ifdef for compile with some optional condition
2006-06-16 01:46:47 +00:00
ehouse
3fc8fdcc18
add commented-out code to draw juggle icon instead of "J" button. It's too much work to get it looking good before ship.
2006-06-16 01:30:20 +00:00
ehouse
9259d5e91d
move randIntArray to strutils, and use instead of similar code to juggle tiles in tray.
2006-06-16 01:19:11 +00:00
ehouse
4561d86601
Allow no space for REM text when no tiles left to allow more room for scores.
2006-06-16 01:15:44 +00:00
ehouse
cc4ebf2ad2
Fix juggle so it works for 3 players too.
2006-06-15 13:05:56 +00:00
ehouse
29621ec4d1
Run server after gameinfo dialog dismissed in case a player's become a robot.
2006-06-15 12:39:54 +00:00
ehouse
91bfaae902
call server_do after gameinfo dialog returns in case a player has
...
become a robot.
2006-06-14 06:22:21 +00:00
ehouse
c956b0858a
cleanup; fix compile of non-debug win32 version
2006-06-11 20:12:20 +00:00
ehouse
9d18e8df95
Add "Save current game as" to save file dialog; remove frequent-save hack.
2006-06-11 05:27:16 +00:00
ehouse
f7ee793df3
Catch up with changes including three enabled states for control and
...
setting dialog strings. Align titles with columns for standalone version.
2006-06-10 16:15:31 +00:00
ehouse
c56b7d0b94
You can always change passwd for local player.
2006-06-10 16:10:33 +00:00
ehouse
97ccccad48
Support new tri-part enabled type; add "game info" dialog/menu to test
...
read-only side; support new attributes for column head and nplayers
label; hide labels as well as controls that go with them.
2006-06-10 05:50:27 +00:00
ehouse
3b82ae9c13
Add new attributes to cover strings for number of players and remote
...
column head; make enabled an enum to differentiate between hidden and
disabled.
2006-06-10 05:45:53 +00:00
ehouse
8b892bcf19
Tweak widget positions to fit juggle button on device
2006-06-08 02:03:33 +00:00
ehouse
8c8313a2ca
Fix to compile in STANDALONE mode, e.g. for current PPC.
2006-06-08 01:51:34 +00:00
ehouse
7d9fec90d3
First cut at using new nwgamest common code to replace PPC-only logic
...
for updating fields of new game dialog as players are added, made
remote, robots enabled, etc. Removes a lot of code and fixes some
bugs in (non-yet-shipped) multi-device version. As a bonus, added "J"
button to juggle players. Seems to work well on Win32. Haven't
tested on PPC yet.
2006-06-08 01:35:20 +00:00
ehouse
cbe5ed2779
Refer to players as "remote" rather than "not local" to be consistent
...
with Palm and PPC; fix juggle bug by adjusting lines after moving them.
2006-06-08 01:26:18 +00:00
ehouse
00291dc997
change newgame api names; implement juggle; change getter to take a
...
callback to copy strings that will go out of scope before the getter
returns (e.g. wince). Use changed API in gtk dialog.
2006-06-07 01:45:03 +00:00
ehouse
6c7e4b37f4
use common/nwgamest.c. Lots of code removed, and the dialog works now.
2006-06-07 01:28:37 +00:00
ehouse
cd2d88fd5e
make a param const
2006-06-07 01:26:55 +00:00
ehouse
db53197bdd
add common/nwgamest.{c,h} to make new game dialog logic cross-platform
2006-06-07 01:26:04 +00:00
ehouse
e2fd99e3ef
up version number; add to list of dirs searched for .xwd files
2006-06-07 01:20:56 +00:00
ehouse
12daa9bfbb
Turned on leak-checking at shutdown for debug version, and fixed leaks and
...
crashes in destructors that had never been called before. Seems now to
free all allocated memory before exiting.
2006-05-30 05:12:02 +00:00
ehouse
995192ad56
trivial optimization: add 1 only once
2006-05-30 04:34:35 +00:00
ehouse
d66c27cd35
To show it and to prevent it's being cleared, write current password
...
into field in game info dialog.
2006-05-28 18:16:08 +00:00
ehouse
b498d3d18d
silence compiler warnings.
2006-05-28 16:16:46 +00:00
ehouse
091dc33ae8
fix scrolling and invalidation for flipped boards, and especially
...
where the board is still not fully visible when the tray is hidden.
2006-05-28 16:08:58 +00:00
ehouse
c3bcff83e0
use signed types to avoid overflow and disappearing scores
2006-05-28 16:02:16 +00:00
ehouse
9776c57eea
center letter in tile even when it's too big.
2006-05-28 15:04:57 +00:00
ehouse
35f8004d43
fix a couple of compile warnings
2006-05-28 14:53:02 +00:00
ehouse
e252d51669
define CALLBACK to quiet warnings for CE build.
2006-05-28 00:42:34 +00:00
ehouse
5846a0f8f6
Move button size #defines into .rc file. They're scaled by the time C
...
code sees them and so shouldn't be relied on outside the .rc file.
2006-05-28 00:41:44 +00:00
ehouse
9f0df402ce
Calculate old window width correctly when figuring new width. Fixes
...
problem of buttons drawn too close to right edge.
2006-05-28 00:40:28 +00:00
ehouse
af7a0ad216
Before putting dialog into landscape mode, make sure it won't be wider
...
than the screen. That is, don't be fooled when in portrait mode by a
screen height that's SIP-reduced.
2006-05-27 22:52:10 +00:00
ehouse
21df8e09d8
Cleanup password dialog
2006-05-27 22:47:33 +00:00
ehouse
fd0e2370aa
Lots of little tweaks to dialogs to get them looking better and to
...
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:21 +00:00
ehouse
9558cc902e
Lots of little tweaks to dialogs to get them looking better and to
...
work better in landscape mode; got rid of multiple DEFPUSHBUTTONs.
2006-05-27 22:21:09 +00:00
ehouse
62fe2be84b
Move buttons in landscape mode for color sel dialogs too.
2006-05-27 22:19:30 +00:00
ehouse
c2ddb62591
modify API for "portraitizing" dialogs, and space the buttons evenly
...
rather than stacking all from bottom. This doesn't quit work on ce
since GetWindowInfo isn't available and IsWindowVisible does the wrong
thing.
2006-05-27 17:18:42 +00:00
ehouse
75431f774c
strcat becomes strcpy: trivial optimization
2006-05-25 04:07:49 +00:00
ehouse
3ca36f57fc
For dialogs in portrait-mode, move OK and Cancel buttons to the right
...
side and shrink up from the bottom
2006-05-25 03:41:32 +00:00
ehouse
fbe384d431
remove trailing <cr> to sometimes eliminate scrollbar
2006-05-23 02:01:26 +00:00
ehouse
b6d30d9009
clear multiple tile selection when trade ends even if cancelled
2006-05-23 01:53:18 +00:00
ehouse
633d9eef55
Get rid of hard-coded tile number limit in server_formatRemainingTiles
2006-05-23 01:52:20 +00:00
ehouse
f3c56df8aa
n## Lines starting with '## ' will be removed from the log message.
...
change version string to include b8
2006-05-21 02:09:03 +00:00
ehouse
033a19e032
Increase size of buffer used to accumulate letters for "tiles left"
...
dialog. French has 15 "E"s, and the old buffer size allowed an
overflow (crash) when at least 13 of any letter were left.
2006-05-21 01:54:48 +00:00
ehouse
54468b01bb
update nHiddenRows so scrolling finally works
2006-05-20 06:22:33 +00:00
ehouse
c096b77561
draw lines rather than bullets to indicate whose turn it is in vertical mode
2006-05-20 06:21:53 +00:00
ehouse
b51cdd32b0
Change misleading function name; no code change.
2006-05-19 13:45:48 +00:00