Commit graph

54 commits

Author SHA1 Message Date
Bill Currie
30bd1c0134 Create classes for inputing cvar strings and script the network menu.
Hitting enter after inputting text is currently broken, but that's because
support for it was never put in the inputline wrapper code.
2011-03-25 18:26:10 +09:00
Bill Currie
896791b209 Correct the spelling of "int" and clean up the mess. 2011-03-25 16:53:04 +09:00
Bill Currie
e878ace83b Make input lines mostly work.
There is still a problem with the placement of the input line text
relative to the text box caused by vertical movement being excessive.
2011-03-23 21:35:49 +09:00
Bill Currie
98f5f84ca3 Clean up the leftovers of converting the controls menu.
The bindings menu is still inaccessible, though.
2011-03-23 15:22:01 +09:00
Bill Currie
15fc325136 Fix the features menu. 2011-03-23 15:19:30 +09:00
Bill Currie
3a1e467ae8 Non-bogus syntax and warning fixes for ruamoko/cl_menu.
Sadly, there are many bogus warnings and other errors. qfcc is still very
sick :(.
2011-02-14 23:10:46 +09:00
Bill Currie
c38ea0b1bc Correct the spelling of "nil". 2011-01-14 12:07:40 +09:00
Bill Currie
75ec6bf244 Clean out some unnecessary types from the progs engine and clean up the mess.
This is a nasty commit, sorry, but 99% of the commit is interdependent.
2011-01-10 12:25:31 +09:00
Bill Currie
6d494bfcdf Fix a slew of warnings found by -Wall.
-Wall still isn't used yet due to a missing method in Array, and
overzealous warnings in qfcc, but this covers the necessary fixes.
2010-12-16 20:01:49 +09:00
Bill Currie
7ce1fc3be5 Break out all the classes into their own files. 2010-11-24 17:01:19 +09:00
Bill Currie
2b3ba0633e Break out the menu plist parser into its own file. 2010-11-24 17:01:19 +09:00
Bill Currie
e471ddff47 Use the new file based property list API.
Also eleminate the menu_plist global (the plist does not hang around).
2010-11-24 17:01:19 +09:00
Bill Currie
857f8eb6e4 Get the plist controls menu mostly working.
The bindings menu is currently inaccessible.
2010-11-24 17:01:19 +09:00
Bill Currie
9c3c1b9ac1 Use @param instead of id to pass objects within the menu parser.
This allows mixed types (eg, objects and Rects). To be passed around. This
sorts out the changes needed for the conversion of Rect from object to
struct.
2010-11-24 17:01:19 +09:00
Bill Currie
3878b76cc5 Start using autorelease.
Much more testing is required (oh, but for qc-valgrind), but there is now
a ~945kB block of free data in the menu progs heap :).

Also, correct the printed size of the memory block to not include the
block header size.
2010-11-24 17:01:18 +09:00
Bill Currie
b0879ba255 Convert Point, Size and Rect to structs.
Group and the menu plist parser are currently broken.
2010-11-24 17:01:17 +09:00
Bill Currie
bffd9f208f more sounds in menus 2007-05-13 05:14:32 +00:00
Bill Currie
66ab41534c make the menu plist reading more efficient 2007-05-13 04:03:04 +00:00
Bill Currie
e257560174 print a message if menu.plist can't be opened 2005-08-18 00:28:14 +00:00
Bill Currie
b7803030c4 some error handling :) 2005-08-18 00:25:09 +00:00
Bill Currie
fa8dfd3767 audio options are now scripted 2005-06-15 02:07:54 +00:00
Bill Currie
91d6607793 bah, forgot the important part of that fix :P 2005-06-15 02:03:50 +00:00
Bill Currie
6e0c70cac7 reduce the amount of memory needed to read menu.plist 2005-06-15 01:41:10 +00:00
Bill Currie
73e45cc8ee working on scripted menus; video works
dealloc -> release

This is an imperfect revision of history.
2004-11-18 05:08:00 +00:00
Bill Currie
790048368d control options "done" 2004-02-14 04:01:36 +00:00
Bill Currie
3f44dfad1d control options menu almost done (yay for oo:) 2004-02-14 03:18:53 +00:00
Bill Currie
103299e7e4 rename Cvar_GetCvarString to Cvar_GetString and add
Cvar_Set{String,Float,Integer,Vector} and
Cvar_Get{String,Float,Integer,Vector}. use them in the menus
2004-02-14 02:56:29 +00:00
Bill Currie
0e147a7b61 video options "done" 2004-02-14 02:09:18 +00:00
Bill Currie
fec7423cc3 player options are now grouped 2004-02-13 06:42:51 +00:00
Bill Currie
0e34eabbc4 network options are now in a group 2004-02-13 05:49:43 +00:00
Bill Currie
8978d1ca55 make an inputline with a text box behind it 2004-02-13 05:36:35 +00:00
Bill Currie
ac577232db audio and features options menus are now almost fully object-ized (as
close as they're going to get until everything else is)
2004-02-13 02:53:13 +00:00
Bill Currie
de567310fb fix a typo 2004-02-13 01:21:17 +00:00
Bill Currie
c5789ff620 more object usage 2004-02-13 00:21:51 +00:00
Bill Currie
51cd2fc69a most of the video menu now uses CvarToggle and CvarToggleView (and rename
RangeSlider to CvarRangeView)
2004-02-07 00:09:50 +00:00
Bill Currie
bc6204335a now all range indicators use the RangeSlider view (need a better name:P) 2004-02-04 07:14:00 +00:00
Bill Currie
c3d99b47a7 in_mouse_amp finally working properly :)
forced to move to CMV for the indicator because I ran out of params...
2004-02-04 06:56:53 +00:00
Bill Currie
c43950abd8 autoconvert for function parameters now works :) 2004-02-04 05:49:54 +00:00
Bill Currie
237027d1ff moving towards object-ized menus :) 2004-02-04 02:35:57 +00:00
Bill Currie
c74adc29b0 all slider indicators now use Slider. nuke draw_perc_bar 2004-02-03 13:35:10 +00:00
Bill Currie
ec26083228 start working on a gui lib with a Slider class. use the slider class for
the volume settings. doesn't /quite/ work properly yet
2004-02-03 08:31:26 +00:00
Bill Currie
1542268d40 use casts rather than ftoi and itof 2004-02-03 05:59:51 +00:00
Bill Currie
73b226b4b7 fix the key bindings menus (invalid strings) and add a music volume knob 2004-01-22 01:33:27 +00:00
Bill Currie
8593c1bc53 show_* -> hud_*. Thanks for the headsup, IrcMonkey 2003-09-23 21:49:34 +00:00
Bill Currie
ba19ee1120 clear the current menu so going to console via the menus doesn't screw
things up
2003-06-06 18:57:56 +00:00
Bill Currie
508fb4fb5c new view stuff mostly working. just a few visual bugs to iron out 2003-05-06 02:19:13 +00:00
Bill Currie
0b0dfcc38e nuke the string api (never really liked it) 2003-04-08 02:35:09 +00:00
Ragnvald Maartmann-Moe IV
e472c6b935 *shakes an angry shambler at ugly codingstyle* 2003-03-03 05:24:45 +00:00
Bill Currie
ca95033c4f and a bunch more cast fixes 2002-11-01 01:39:36 +00:00
Bill Currie
118e982edd odd, must have forgotten to test this lot 2002-08-20 22:29:04 +00:00