Forum

Simple menuqc

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Simple menuqc

Postby Urre » Tue May 18, 2010 7:51 pm

Here's some very basic menuqc, made by divVerent for Strap-on-bomb Car. It features only a quit dialog. Very good place to start messing around with. WTFPL license ;)

Worth noting is that the variables called autocvar_* in menu.qc are a cooperation of features in fteqcc and darkplaces, which do the same as:

Code: Select all
var = cvar("foo");


only automaticly, so you just need to start a variables name with autocvar_ and it will recieve the value of the cvar name that follows. autocvar_vid_height would contain the value of the vid_height cvar. It's kind of weird with savegames and such, so use with caution. Works great for my menu though :)

Probably requires fteqcc to compile, definitely requires DP. Although seeing as it's so basic, you could just rip out the actual menu code, and replace it with anything else, and it should work in FTE.

The functions in menu.qc are all required functions, their contents are not. The .qh files are also required.

Have fun!
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest