Commit graph

23 commits

Author SHA1 Message Date
ehouse
c91847f56f When moving focus through tray, skip empty space; when through board,
skip cells with tiles permanently played.  Space char raises focus but does
not move it laterally.
2006-11-09 06:05:40 +00:00
ehouse
9a00908cdb When internal focus reaches edge of object, move it back up and onto
the next object using a callback to the platform to determine what, if
any, object is next.  Adjust curses platform to cooperate.  Works
well.  Palm is next.
2006-11-07 05:46:44 +00:00
ehouse
005fd92fd4 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
b0102f8baa 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
6b1fc7e5e4 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
c6598bef8a randIntArray runs once and returns whether array is modified. Tray calls
again until it is.  newgame calls once: it's possible that juggling won't
do anything.  Still pending: do we tell users when nothing changed, or
leave them to figure out that it's not a bug?
2006-06-27 06:30:44 +00:00
ehouse
1f81e62f12 add missing include file 2006-06-22 03:36:51 +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
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
56accaaad5 dict_tilesToString sig change 2005-07-08 03:02:31 +00:00
ehouse
083104a49f nuke logging that was polluting ncurses screen 2005-03-19 21:44:35 +00:00
ehouse
85c72a91ba change trayCursorLoc to be a 3-bit number so stores smaller 2005-01-23 17:28:29 +00:00
ehouse
22b06909b4 kill log statement 2005-01-23 08:20:13 +00:00
ehouse
73f79a7dfa up/down arrow keys move divider 2005-01-04 03:11:56 +00:00
ehouse
76615fbc48 always hide arrow when undoing partial move, not just when done from
tray.
2004-07-10 22:57:17 +00:00
ehouse
b36124f01d Hide cursor arrow when pen in empty tray region returns tiles to tray. 2004-07-10 22:40:50 +00:00
ehouse
3f3f9541b3 remove unused variable 2004-06-24 05:19:52 +00:00
ehouse
9e77a21270 move some actions to penUp from penDown 2004-06-23 03:33:06 +00:00
ehouse
5b82486429 draw_trayBegin returns bool 2004-03-02 03:26:10 +00:00
ehouse
1657ec4288 hit-test in divider using bigger rect 2004-02-13 04:47:22 +00:00
ehouse
d23c7bdef3 add invalTilesUnderRect 2004-02-12 04:20:11 +00:00
ehouse
c0f2dd71bf Add test to allow dragging a selected tile. 2004-01-25 14:30:29 +00:00
ehouse
6a57cef012 first checkin 2003-11-01 05:35:29 +00:00