Andy2
52d02f04dd
pass tile value into drawCell(). Java code doesn't use it yet, but I
...
want to play with drawing cells tray-tile-style when they're big
enough.
2011-12-02 18:58:52 -08:00
Andy2
3ec97d5c07
Turn "Turn done" into "Pass" when the pending score is 0. To do that
...
I had to pass the score into draw_trayBegin since
draw_drawPendingScore() isn't called until the first tile's placed.
Note: as long as I'm messinng with this menuitem it should be disabled
when it's not the player's turn.
2011-10-04 18:48:33 -07:00
Eric House
c01981bc8f
Make miniwindow stuff compile-time optional. The goal's to use native
...
features where they look better or are easier to manage, e.g. Toasts
and dialogs on Android.
2011-08-29 20:36:01 -07:00
Andy2
3b7b4802a9
add ability to specify, track and use separate dictionaries for each
...
player. Works for gtk client. Compiles for Android but there's no UI
yet to specify more than one dict. Management of dupicate dicts
without duplicating memory -- refcounting -- will be up to the
platforms.
2011-04-01 19:57:10 -07:00
Andy2
f6be6222a1
draw timer in player color
2011-04-01 07:22:40 -07:00
Andy2
15f40f01af
fix to compile with new gdk that's on ubuntu 10.10. Need to fix the
...
APIs eventually.....
2011-02-18 22:28:32 -08:00
Andy2
c9fec737e5
changes, protected by a disabled compile-time flag, to use cairo-based
...
API for drawing instead of now-deprecated gdk ones. Unfortunately
nothing actually draws and I'm putting the debugging off until I have
some time.
2011-01-14 18:15:33 -08:00
Andy2
e7dbac41a6
fix to compile with new gdk that's on ubuntu 10.10. Need to fix the
...
APIs eventually.....
2011-01-12 19:00:20 -08:00
Andy2
2d69d8f2b0
use new crosshairs flags to draw a cross in the middle third of cells
2010-08-11 18:51:09 -07:00
eehouse
92e02c9c2e
catch up with API changes
2010-05-28 02:31:04 +00:00
eehouse
1950e38bda
remove bogus assert and logging
2010-04-08 04:15:08 +00:00
eehouse
a87ecf5638
pass vScale and hScale into draw_boardBegin so platform can use same
...
size font for all cells regardless of size; fix scrolling to pass
actual sum of the disappearing rows' heights.
2010-04-08 04:14:55 +00:00
eehouse
00e8742ad8
show blank as a ? rather than a _.
2010-03-08 06:10:46 +00:00
eehouse
47402bd3b5
remove unused field
2010-02-27 18:05:00 +00:00
ehouse
b8e7cd411f
fix to use new API. (this and prev checkin via terminal app on phone :-)
2009-11-19 02:26:38 +00:00
ehouse
1fa8b2e48f
remove unused param (not even compiled on Palm); on wince, try to
...
duplicate for timer the vertical offset used for scores.
2009-10-16 03:20:39 +00:00
ehouse
f80b1d74f2
include name of player whose turn it is in scoreboard entry, reducing
...
length until it fits. (Still needs polishing...)
2009-10-15 12:44:53 +00:00
ehouse
1da25307e5
Display relay state on board, horizontal scoreboard mode only for now.
2009-09-20 18:45:25 +00:00
ehouse
a5556469ef
fix timer formatting
2009-09-20 05:00:23 +00:00
ehouse
d86d2b556a
Tweak to support non-ascii utf-8 chars from dicts. Seems to display
...
Catalan and Polish fine (on board.)
2009-08-29 16:09:24 +00:00
ehouse
99a5a7912b
Use new draw API but same bitmap as always (large in tile, small in
...
cell.) In cases where bitmap and text provided, prefer bitmap.
2009-01-13 13:02:17 +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
5118e415c7
use a gharish color for focus so doesn't get lost
2008-11-22 16:37:58 +00:00
ehouse
9b17c20117
gtk/ncurses support for Rem: focus and showing remaining tiles. Also
...
rewrite gtkask to use gtk_message_dialog and add sigint handler.
2008-10-24 09:07:30 +00:00
ehouse
36627fb051
Add listeners to model so board can be notified whenever dictionary
...
changes. Pass dict into draw via new API, removing it from the
draw_begin calls.
2008-09-05 12:11:37 +00:00
ehouse
30fcb88e43
fix problems drawing focus so letters still visible on board.
2008-07-28 05:03:37 +00:00
ehouse
bc05761c4a
change API for drawing divider so it can be focussed as well as
...
selected. Being using that information in palm and wince. For GTK,
use color rather than ugly black rects to indicate focus.
2008-07-17 05:03:01 +00:00
ehouse
bbfdeb6bf8
Draw tiles hanging a bit below board when hidden to allow testing of
...
common case on wince devices.
2008-06-07 23:03:47 +00:00
ehouse
4730a23188
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +00:00
ehouse
ae67a58a26
Attempt to find font that best fits string to encosing rect. Works
...
but only with a hack: need to understand pango better.
2008-03-25 12:47:05 +00:00
ehouse
d3ce87b057
Indicate empty cell with CELL_ISEMPTY rather than an empty string; fix
...
palm to not draw star on top of placed tile.
2008-03-14 09:36:42 +00:00
ehouse
355cfa9fcc
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +00:00
ehouse
f30dd17e00
rename constants to begin with GTK so they're unique.
2008-03-10 00:51:20 +00:00
ehouse
0b1f4b8f0a
merge with drag_n_drop branch: apply patch generated with this command on that branch: svn diff -r 2080:2087
2008-03-08 23:16:21 +00:00
ehouse
6e715d63ee
change name of field. No code change. Pending on symbian and franklin which don't compile.
2008-02-02 15:17:53 +00:00
ehouse
ee726968b0
Don't draw negative number of tiles left.
2007-11-25 15:12:22 +00:00
ehouse
ac42b5e7d6
fix oversized font when scoreboard miniwindow has two lines.
2007-11-14 05:57:12 +00:00
ehouse
880254c17f
Fix tray hanging below main window; draw pending tiles white-on-black as on other platforms.
2007-10-24 12:46:15 +00:00
ehouse
e0f5fcf280
Instead of three fixed-sized fonts, choose fonts (lazily) based on the size of the rect into which it's to be drawn.
2007-10-23 03:08:47 +00:00
ehouse
7c8b7294cd
add const to a bunch of char* decls in APIs and variables; no code change
2007-02-03 17:54:20 +00:00
ehouse
a998e96de9
Tweak scroll-of-focussed-board inval code so we don't inval the whole
...
board, which looks crappy. Instead inval only what was previously a
border row, and pass a new param to draw_vertScrollBoard so the
platform can choose not to scroll cells that will just get overwritten
with different bits.
2007-01-21 22:59:29 +00:00
ehouse
20ecd5f7d7
get rid of draw methods; always highlight cursor same way;
...
board_handleKeyUp becomse board_handleKey for curses
2007-01-19 08:20:58 +00:00
ehouse
098a2ec5c4
Use new keydown/up APIs from linux, and add key support and drawing
...
changes to implement keyboard navigation/focus in gtk port.
2007-01-06 17:46:02 +00:00
ehouse
eb32609a1d
Fix to compile and work with draw API changes
2006-11-12 14:51:47 +00:00
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
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
90dfc15ae9
use signed types to avoid overflow and disappearing scores
2006-05-28 16:02:16 +00:00
ehouse
d0c6e8517b
center letter in tile even when it's too big.
2006-05-28 15:04:57 +00:00
ehouse
543df9f681
minor code improvement
2006-05-11 03:02:11 +00:00