Custom Menu Button / With options inside?

Locked
Merky
Posts: 2
Joined: Tue Mar 31, 2009 4:57 pm

Custom Menu Button / With options inside?

Post by Merky »

Hi, i know it's possible to do this but does anybody here know how exactly?
Here's the catch. It's gotta work for point release 1.16n
What i want is to add a Button on the main menu (similar to like the options menu) but to be able to turn on/off client side mod options.
e.g cg_iceshells (click on button lights up and cg_iceshells is set to 1
click off button light is off and cg_iceshells is turned to 0
Any way to add this? :S
Kaz
Posts: 1077
Joined: Wed Mar 08, 2006 3:43 am

Re: Custom Menu Button / With options inside?

Post by Kaz »

Muck around in the q3_ui code, look at how buttons and menus are defined. A good starting point is ui_menu.c, where the main menu code resides. Check it out, play around, then come back with problems you run into.
Locked