ehouse
44eaa36319
More progress on one-handed navigation: fix ncurses board clipped to
...
bottom of tray; add focus-related params to draw*Finished routines
(and simplify to one) so platforms don't have to save from Begin
routines (and stop palm doing that); check version of saved game, and
handle case where older binary tries to open newer version; redraw
Palm tray buttons after focus change to stop focus-rect ghosting; fix
annoying overlap in saved games dialog; palm version goes to a3.
2006-11-05 16:54:18 +00:00
ehouse
3153e2b867
Lots of progress on one-handed navigation: add gadgets to stand in for board
...
scoreboard and tray on palm; make center drill into the focussed object and
spacebar come back up then move the focus among them. Integrate with other
focussable objects on main form. Go from separate drawCursor routines to
same for all three, with cursor only visible when focus is drilled down.
On curses, add a hilite rect routine that can be called after text is laid
down, and use for cursors.
2006-11-03 06:23:54 +00:00
ehouse
a5f71143c0
Fix crash on pre-fiveway palmos where FrmGetFocus always returns -1;
...
add new preference for whether small value nums are drawn in tiles in
tray.
2006-10-29 17:41:14 +00:00
ehouse
878acbc759
Fix opening games and messages saved by last shipping version on Palm
...
by checking version and loading new fields conditionally. (Not yet
tested for current wince version.)
2006-10-05 01:17:03 +00:00
ehouse
4daabf6fe5
Set -Wunused-parameter for those versions of gcc that support it, and
...
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)). There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
27057de11e
Replace a bunch of doMirror parameters with a single function, called
...
after a flip, that invalidates y,x for every x,y that's invalid.
2006-07-07 08:27:13 +00:00
ehouse
354cde389e
remove unused parameter
2006-06-26 04:39:48 +00:00
ehouse
b8d3d477a5
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
65540759b5
clear multiple tile selection when trade ends even if cancelled
2006-05-23 01:53:18 +00:00
ehouse
19414ae505
Finish scrollbar work by passing number of visible rows to
...
util_trayHiddenChange, which means an API change. In board, calculate
bottom of board based on bottom of tray when tray is hidden, and round
so that it's an exact multiple of cell height. In wince, take
advantage of the new parameter to fix the scrollbar so that very
constrained boards can be scrolled even when the tray is hidden.
2006-05-19 13:44:05 +00:00
ehouse
f69d433b7c
Reset divider location on new game.
2006-05-19 13:31:18 +00:00
ehouse
70be257d8c
First attempt to set board bounds based on tray bottom if tray
...
overlaps board.
2006-05-17 06:12:40 +00:00
ehouse
bb7e827703
for vertical scoreboards, force miniwindow to be entirely inside the board.
2006-05-14 15:27:29 +00:00
ehouse
4bb82554e5
Since board can now sometimes only partially hide tray, introduce
...
distinction between obscuring and completely hiding. In former case,
erase the tray rather than draw it partially hidden. This means
drawing the tray before rather than after the board, which is a big
change that so far doesn't seem to have hurt anything. If it does, it
might be necessary to draw it before and after the board.
2006-05-12 08:03:08 +00:00
ehouse
c496593800
tweak score layout, and remove a U8 that was overflowing on win32
2006-05-10 13:42:44 +00:00
ehouse
28411a4466
API change: board is responsible for figuring tile size and giving
...
extra pixels to divider.
2006-05-06 14:42:38 +00:00
ehouse
6b140d641b
fix b5 crasher: check for stream equivalence with the older version
...
now that current version's been upped. Rename old version to better
indicate when it was current.
2006-03-04 06:12:38 +00:00
ehouse
dd9298e95f
make remDim 16-bit so doesn't overflow on large-screened devices
2006-02-14 04:53:45 +00:00
ehouse
92485783af
update email address in header comments: no code change
2006-01-08 01:25:02 +00:00
ehouse
bc3515272c
Get rid of unused param
2005-07-14 02:54:47 +00:00
ehouse
dc84bd22df
dict_tilesToString sig change
2005-07-08 03:02:31 +00:00
ehouse
9e76871306
(conditionally) modify dicts to support getting height of platform
...
glyphs, pass into drawing code so can be fetched and cached, and
implement for Palm. This is to allow drawing glyphs (like Danish's
A-with-circle) that are taller than normal without the visual padding
the rest can have. So far works for 68K/non-highres. Will not
compile for ARM yet.
2005-07-07 03:46:07 +00:00
ehouse
e92234b324
cleanup: make module-local functions static
2005-06-25 05:43:56 +00:00
ehouse
dfccb19667
convert util_setTimer to take procptr; remove timer call on board; add
...
heartbeat to comms that uses util_setTimer with new timer type.
2005-06-23 04:16:53 +00:00
ehouse
9d5ea796f3
don't draw board before it's set up
2005-06-13 14:51:21 +00:00
ehouse
36bba4024b
move playerNum into dsi so can be used in formatting score
2005-03-15 03:27:24 +00:00
ehouse
974bf14ec4
ex/internalize cursor locations
2005-01-23 17:26:38 +00:00
ehouse
67be3191c8
revert change to board_invalRect
2005-01-23 08:17:37 +00:00
ehouse
ee3d6381dd
board_invalRect params change
2005-01-23 06:14:07 +00:00
ehouse
3cc77cc8ce
remove dead param; fix inval and choice of inverted cells so recent
...
move is not shown when pending move is.
2005-01-23 06:00:27 +00:00
ehouse
4d98925b91
provide callback for most recent score; return key on hidden tray
...
attempts to reveal; add focus obj to saved state.
2005-01-22 19:51:48 +00:00
ehouse
70266c075d
don't call board_draw except in response to Draw() on Symbian
2005-01-13 02:52:45 +00:00
ehouse
8b44ad1324
start cursor near middle of board
2005-01-04 03:23:12 +00:00
ehouse
cd4f97bd15
remove too-frequent logging
2004-12-17 15:17:20 +00:00
ehouse
ebec5b9b17
remove hint-drag logging (no change to non-debug code)
2004-11-14 16:29:13 +00:00
ehouse
47f81507af
add HintAtts param to draw_drawBoardArrow
2004-11-14 16:06:30 +00:00
ehouse
47b4de73e7
add board_formatRemainingTiles
2004-11-06 02:54:25 +00:00
ehouse
b7dd4fd50c
bug: hide arrow when it can't be moved in case where tile comes via keyboard
2004-10-05 02:32:58 +00:00
ehouse
6e53150418
always hide arrow when undoing partial move, not just when done from
...
tray.
2004-07-10 22:57:17 +00:00
ehouse
bb291f1e75
Hide cursor arrow when pen in empty tray region returns tiles to tray.
2004-07-10 22:40:50 +00:00
ehouse
9e1391af32
missed name change
2004-06-25 07:09:08 +00:00
ehouse
8e8e6896c1
framework for smarter inval of hint rect during drag
2004-06-25 06:56:58 +00:00
ehouse
f900988bcc
pass to engine boolean telling it whether to ask for tray hint limits;
...
address, for penDown only, confusion between whether pen events are
handled and whether the handling means a redraw is required. Might
need to do same for penMoved and penUp.
2004-06-25 06:47:35 +00:00
ehouse
6c14b290eb
preserve hint limits
2004-06-24 05:17:59 +00:00
ehouse
fe681ddf86
move some actions to penUp from penDown
2004-06-23 03:33:06 +00:00
ehouse
debca15ba5
scroll as part of hint rect drag
2004-06-22 06:28:22 +00:00
ehouse
dce8eb2ea5
remove dead code and bogus assert
2004-06-18 13:52:12 +00:00
ehouse
2a9d5b7832
polish hintrect stuff; fix inval, etc
2004-06-18 13:25:57 +00:00
ehouse
e3f57eed44
make hint rect per-player; hide when tray not visible; make upward
...
drag remove it.
2004-06-16 04:06:02 +00:00
ehouse
da4fe889f1
Track drag on board to form a rect whose borders are drawn via
...
attributes on cells; pass that rect to engine when hint requested.
Still rough, and needs to be made per-user. Also needs a way to hide
the rect.
2004-06-15 01:56:01 +00:00
ehouse
b4b3681cd3
show last turn in addition to player name when pen held on score; fix
...
revealing tray to show REVERSED when done for robot.
2004-04-30 08:26:54 +00:00
ehouse
d25c553ece
assert non-null objects when making board
2004-04-03 16:42:20 +00:00
ehouse
508d98d8e0
make rectContainsPt params signed to avoid errors on palm
2004-03-02 05:58:15 +00:00
ehouse
6a9228bb43
fix arrow movement when board flipped
2004-03-01 02:30:45 +00:00
ehouse
be219aaf81
get rid of tabs/fix formatting. No code changes.
2004-02-29 01:08:50 +00:00
ehouse
e3149b0e42
abort draw quickly if platform can't
2004-02-13 04:46:50 +00:00
ehouse
6dade8d97f
inval tray when miniwindow disappears
2004-02-12 04:18:38 +00:00
ehouse
6bc3be9711
fix reported bug: when tile placed on arrow and arrow can't move
...
further, hide the arrow so tile can be drawn.
2004-02-10 05:23:32 +00:00
ehouse
1072bf2499
add option to limit number of tiles used by robot
2003-11-30 09:34:40 +00:00
ehouse
5776da0b93
first checkin
2003-11-01 05:35:29 +00:00