ehouse
2d33d47d67
Too many changes to list. Linux works to display utf-8 dict text on
...
gtk and curses, but crashes when saving game (-f option.) Wince
doesn't even compile. This is to backup partial changes, not a
revision to build.
2009-03-22 23:58:22 +00:00
ehouse
b770c51f58
call gi_initPlayerInfo() for defaults when not provided on commandline.
2009-03-08 19:57:27 +00:00
ehouse
42ab780680
Go back to combo box for role, and add config button beside it using new support in nwgamest.
2009-03-08 19:56:48 +00:00
ehouse
85811b7951
include strerror output in logging when socket read fails
2009-03-08 19:56:01 +00:00
ehouse
f09994153c
use PID as cookie so creation order visible on relay during testing
2009-03-02 01:46:10 +00:00
ehouse
a9ca60729d
plug memory leak by closing relay socket when quitting
2009-02-28 19:19:42 +00:00
ehouse
ae7caae236
Lots of changes to make gtk version better test with relay: make
...
possible to start without specifying comms params, to switch roles
and/or number of players when starting new game; clean up dialogs,
esp. use notebook widget to have tab switch between comms types.
2009-02-28 18:52:44 +00:00
ehouse
08e5711b22
include pid in log for better multi-device debugging
2009-02-28 18:50:21 +00:00
ehouse
f751b1ebd9
test script, first draft.
2009-02-28 16:31:34 +00:00
ehouse
8ad14327e2
fix assertion on exit: nuke mempool after everything it contains; call
...
gtk_main_quit rather than gtk_exit() so can exit from main()
2009-02-28 16:31:03 +00:00
ehouse
66e4053f06
start adding conns dialog
2009-02-24 04:34:37 +00:00
ehouse
1fa517693a
log size of incoming packets
2009-02-07 18:15:17 +00:00
ehouse
7556ecf49f
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
7698393780
cleanup; set locale based on ENV
2009-01-25 20:31:13 +00:00
ehouse
f387cd5fa2
Add sms support, largely untested.
2009-01-13 13:33:56 +00:00
ehouse
77381a1d5d
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
eddd7fe55b
Cleanup; add sms example to usage()
2009-01-05 02:11:13 +00:00
ehouse
ab8741f8a9
Use the new common/strutils binToSms routines. For now, use glib's
...
too and assert output is the same.
2009-01-05 02:10:27 +00:00
ehouse
ad9d0b7ee1
Remove newlines from debug statements.
2009-01-05 01:59:04 +00:00
ehouse
5e905686fa
Cleanup to build with relay enabled; don't enable any network features
...
if STANDALONE_ONLY is defined.
2009-01-03 23:56:20 +00:00
ehouse
84bd5f24cc
Fix compile errors using latest gcc (fread etc must have return value checked)
2009-01-03 18:12:34 +00:00
ehouse
227a58d115
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
fa4adbfcea
Add support to gtk app for tranport over "sms", with files containing
...
base64-encoded data as the messages. Make necessary changes to comms.
This is the foundation for doing real SMS transport on handhelds.
Currently a full robot game works for two gtk clients provided the
server is launched first.
2008-12-29 01:35:29 +00:00
ehouse
e5b5ce15df
fix warning when DEBUG not defined
2008-11-22 17:14:08 +00:00
ehouse
4b4d3fb56a
use a gharish color for focus so doesn't get lost
2008-11-22 16:37:58 +00:00
ehouse
e1cf1573b0
fix inval of focussed tile to take divider into account.
2008-11-20 05:12:48 +00:00
ehouse
e26a01dd62
New Ubuntu has a stricter compiler...
2008-11-06 03:16:09 +00:00
ehouse
76c0a7becf
make -q option take number of seconds to pause before quitting
2008-10-26 15:33:21 +00:00
ehouse
6a5454ad74
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
c3d23e889d
Fix to compile and run for IP-direct case, possibly breaking
...
heartbeats used over bluetooth.
2008-10-11 17:33:07 +00:00
ehouse
c6da802dc9
fix ncurses version so it can save games and read them back in: make existing gtk code run on both.
2008-09-18 03:46:27 +00:00
ehouse
181e880d8d
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
fe25eebdbd
add pointer support to LIB_NO_UI case
2008-08-30 13:28:53 +00:00
ehouse
442d5bdd4b
error message when hit feature is off but you try to use it; clean up memory on way out.
2008-08-30 13:27:27 +00:00
ehouse
2d199f2a9c
fix problems drawing focus so letters still visible on board.
2008-07-28 05:03:37 +00:00
ehouse
89edef9c18
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
7899217aa4
separate UI-specific code so that a non-UI linux library can be compiled, e.g. for use with a toolkit not gtk or ncurses
2008-06-30 03:39:27 +00:00
ehouse
6cbf62d4f0
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
d053f0731f
Fix so curses-only builds and curses build doesn't segfault.
2008-05-26 00:27:48 +00:00
ehouse
321dbb6471
add missing error message
2008-05-24 16:08:13 +00:00
ehouse
1d5446bfdf
Trying to give smartphone users way to use keypad to move tiles to
...
board. Enabling key-to-text works, but constants to turn it off
aren't in cegcc. So for b2 add a quick hack where 1 means first tile
in tray, 7 means last (rightmost). Enable and test on gtk.
2008-05-11 20:29:43 +00:00
ehouse
8a6df572ae
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
f40b534719
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +00:00
ehouse
72457bf28c
add ability to scroll the board by dragging it. add new method
...
util_altKeyDown to allow user to choose between scrolling board and
dragging the hint rect when both are possible. add adjustYOffset;
make it and board_setYOffset more tolerant of out-of-bounds inputs and
use that to simplify calling code.
2008-04-08 03:55:53 +00:00
ehouse
6a83cc94f4
implement util_yOffsetChange; increase pen timer to half second.
2008-03-27 04:12:16 +00:00
ehouse
72ee1032c0
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
ddafe8b97a
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
20ea57cf77
Fix errors, all in debug-only code, flagged by __attribute__ format addition.
2008-03-11 12:24:23 +00:00
ehouse
0988159795
add owner param to drawTileMidDrag so can color tiles correctly
2008-03-11 11:48:53 +00:00
ehouse
e5b8de54aa
Add __attribute__ ((format)) and fix problem it flags.
2008-03-10 12:02:53 +00:00