Commit Graph

247 Commits

Author SHA1 Message Date
Pasi Kallinen 413256523c If using ncurses, use color to hilight games with too big terminals in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@563 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 17:46:47 +00:00
Pasi Kallinen 70be86720c Remove unneccessary comment lines
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@561 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 08:51:46 +00:00
Pasi Kallinen 6cb4d79c94 Check that we actually do write the inprogress-lock.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@560 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 05:27:50 +00:00
Pasi Kallinen cb963b5da8 Remove NhExt stuff; no-one uses it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@559 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 05:19:48 +00:00
Pasi Kallinen f53dfb5c7b Minor optimization in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@558 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-07 20:01:40 +00:00
Pasi Kallinen 3f3e9c3277 Handle some additional keys in the watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@557 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-06 17:30:16 +00:00
Pasi Kallinen e80d1c338b Remove the watcher if user kills the terminal while watching.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@556 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-06 16:01:08 +00:00
Pasi Kallinen 80baf8a856 Adjust the watching-menu Size-column slightly.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@550 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-04 14:54:07 +00:00
Pasi Kallinen 124161588a Move watching-menu column info into struct.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@549 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 19:15:09 +00:00
Pasi Kallinen 082c777fe8 Add $INCLUDE(filename) menu banner command.
That text in any line of a menu banner file will cause
the file 'filename' to be included in that place.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@548 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 17:54:13 +00:00
Pasi Kallinen 431ef1e791 Don't put the info lines too low on the page in the watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@547 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 16:27:42 +00:00
Pasi Kallinen b0da5fedd1 Restore the old watching-menu paging. This time for reals.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@546 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 16:17:28 +00:00
Pasi Kallinen cb781bc3d6 Watchers fix. Memory alignment on 64bit systems?
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@542 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-02 08:34:19 +00:00
Pasi Kallinen afa0b07631 Increment/decrement the games[] nwatchers too.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@540 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-02 07:28:46 +00:00
Pasi Kallinen 0ad8f2cead Fix idletime display.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@538 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-01 15:30:04 +00:00
Pasi Kallinen 113fc564ef Show the number of people watching each game in the watching-menu.
Also allow sorting by # of watchers.   
Requires dgamelaunch to be compiled with --enable-shmem


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@536 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-01 14:41:54 +00:00
Pasi Kallinen 6245e81b59 Restore the exact paging in watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@535 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-04-29 16:30:59 +00:00
Pasi Kallinen ef7d6eb846 Define menu_max_idle_time option to kill dgl when the user idles too long. From Darshan Shaligram
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@531 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:32:57 +00:00
Pasi Kallinen 445e54f8f8 Change max. length of mail message from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@526 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-02-25 17:02:32 +00:00
Pasi Kallinen 11eef77614 Allow setting resource limits on core dump size and memory usage. Idea and some code from crawl.develz.org dgl.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@523 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-02-25 16:40:55 +00:00
Pasi Kallinen 64c9bf043f Fix a segfault when selecting a non-existent game entry to watch. Found by blackpenguin.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@521 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-12-23 18:04:26 +00:00
Pasi Kallinen 4b8e110006 Move the cursor after writing the banner only if cursor coords were explicitly defined.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@520 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-12-01 21:55:48 +00:00
Pasi Kallinen 41c0322ad9 Change max. length of passwords from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@518 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-28 17:53:00 +00:00
Pasi Kallinen 9bed813458 Change max. length of player name from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@516 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-27 18:41:35 +00:00
Pasi Kallinen 160ddf3b5b Remove unused variable. Update TODO.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@515 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-27 18:05:36 +00:00
Pasi Kallinen 4a76ab5733 Remove the "unsorted" watch-menu sort method, and make "username" the default.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@510 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-21 09:06:44 +00:00
Pasi Kallinen add9a7fa49 Allow ',' in the watching menu to sort by the previous column.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@508 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 20:45:27 +00:00
Pasi Kallinen ae11d81827 Allow sorting by all of the fields in the watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@507 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 19:29:47 +00:00
Pasi Kallinen 91675def98 Don't clear the menu screen if the keypress wasn't recognized.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@505 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 15:17:28 +00:00
Pasi Kallinen 7a00201cea Fix game watching when loggedin.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@502 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 19:15:46 +00:00
Pasi Kallinen f07d814c27 Move the terminal resize to when you're watching the game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@501 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 18:24:22 +00:00
Pasi Kallinen 5c0a1876fb Fix toggling the window resize on and off in the watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@500 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:55:17 +00:00
Pasi Kallinen 9dc52ce7dd When doing '/' in watching-menu, match player names without case, and try to find the best match from the beginning of the player name.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@499 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:52:12 +00:00
Pasi Kallinen 857105e8b2 Prevent a segfault when trying to watch a game when none is available.
Also disable '/' when no games available. 


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@498 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:25:18 +00:00
Pasi Kallinen 6a703c4bf7 Give feedback when typing '/' in the watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@497 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:21:56 +00:00
Pasi Kallinen ad13d4eb7b Restore the previous watching-menu behaviour: don't require enter keypress to watch.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@495 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:09:27 +00:00
Pasi Kallinen e6fb6ecafe In the watching-menu, keep the same player selected even when resorting the entries.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@493 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 14:29:46 +00:00
Pasi Kallinen c237c27478 Rename dgl's local_{COLS,LINES} so they don't collide with ee
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@492 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:57:12 +00:00
Pasi Kallinen 1a7f346b20 Actually mark the game entry as selected when using '/' or '*' in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@490 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:20:55 +00:00
Pasi Kallinen 29f507bda8 Add a watching-menu command to start watching a random game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@489 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:10:45 +00:00
Pasi Kallinen b841c2801c Show slightly different texts in watching-menu when no games are available.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@488 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:03:22 +00:00
Pasi Kallinen 284a2201e3 Show the watching-menu sorting by hilighting the title.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@483 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 10:31:45 +00:00
Pasi Kallinen 94f0867063 Add better watchmenu help
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@480 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 09:45:42 +00:00
Pasi Kallinen 62744f361a Make the lines actually work like they should, duh.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@479 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 09:19:49 +00:00
Pasi Kallinen 4a53a95307 Readjust the lines
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@478 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:48:15 +00:00
Pasi Kallinen 2146f33c82 Adjust the position of the watching-menu bottom lines
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@477 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:46:06 +00:00
Pasi Kallinen c08ce22995 Free populated games.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@476 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:39:19 +00:00
Pasi Kallinen fff23611d8 Dynamically alloc is_nhext array in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@475 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:29:33 +00:00
Pasi Kallinen 0b9067ee0a Small fixes to the watching-screen, caused by variable height screen.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@474 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 02:11:31 +00:00
Pasi Kallinen 4d3be5720c Fix wrong offset.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@473 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 01:14:32 +00:00