Module twilight: Change committed

warp at icculus.org warp at icculus.org
Sat Mar 22 07:50:45 EST 2003


Commiter   : warp
CVSROOT    : /cvs/cvsroot/twilight
Module     : twilight
Commit time: 2003-03-22 12:50:45 UTC

Log message:

This is sadly /TWO/ huge changes at once.

The first is the scrapping of the old v_gamma and v_tgamma.
Replacing it are a few settings:
black, grey, and while.  With v_ and v_t prefixes, and blank, _r, _g,
and _b suffixes.


The second is the complete scrapping of the old menu system.

Replacing it is a /much/ easier to change system, the parsing is a
major PITA, however the rendering and changing of the menu itself is
/very/ simple.

The command to load a menu from a text file is 'loadmenu <file>'.

Included is an example menu file, menu.mnu, shove it in your id1/ and
load it to get a basic menu for both QW and NQ.

There is still a todo list:
 - Get the renderer side of the menu code to handle menus larger then
   the screen.
 - Find a clean way to include a text file in the binary so that we
   still have a basic menu.
 - Add a command to /delete/ a menu. (Mostly trivial.)
 - Saved games support.
 - Server browser support.
 - Key binding menu support.

Modified files:
     TODO include/Makefile.am include/mathlib.h include/menu.h
     include/vid.h include/view.h nq/Makefile.am nq/cl_demo.c
     nq/cl_main.c nq/common.c nq/host.c nq/host_cmd.c nq/menu.c
     nq/net_dgrm.c nq/net_main.c nq/vid_sdl.c qw/cl_main.c qw/common.c
     qw/menu.c qw/vid_sdl.c src/base/Makefile.am
     src/renderer/Makefile.am src/renderer/gl_alias.c
     src/renderer/gl_draw.c src/renderer/gl_info.c
     src/renderer/gl_info.h

Added files:
     menu.mnu include/lh_parser.h src/base/lh_parser.c src/base/menu.c
     src/renderer/menu.c src/renderer/palette.c src/renderer/palette.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: twilight.20030322.125045.warp.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20030322/0e21e103/attachment.diff>


More information about the twilight-commits mailing list