PDA

View Full Version : .menu help


stubert
07-21-2004, 10:10 AM
hey guys, i felt creative today so i put some work into red sushie (you may or may not have heard of it)

i've got a question about the UI callvote section and the .menu scripts

i've designed a voteable function called gameplay that can change the server's force settings, weapon dynamics and assorted other things

for example

a player can do

/callvote gameplay instagib

or

/callvote gameplay noForce

or

/callvote gameplay jkpp

or /callvote gameplay basejka

the idea is that since the ctf community i belong to is so small that servers could get more bang for their buck


but , i want to have it accessible with the ingame callvote menu, but i have no experiance coding any of the menu UI stuff

i thought i could just copy the /kick or /map sections.. and get it to display a list of the available gameplay types instead of maps or players.. but the symbols refrenced in the .menus aren't in the code! so i'm sorta at a loss on how this part works

can someone throw me a bone here ? :)


if you wanna say hello to the refresh community feel free
http://www.firetrill.com/forums/index.php

the red slushie forum is in the middle of the page


-stu

razorace
07-21-2004, 09:39 PM
I can't really comment since I haven't looked at that area in a while. What's the menudef for those buttons?

Also, here's a good tutorial on menu files (http://linux.ucla.edu/~phaethon/q3tamenu/q3tamenu.html#toc16).

Azymn
07-23-2004, 01:34 AM
There is one file used by the menu code that is not in the codemp folder, but in another ui folder adjacent to it:

menudef.h

That file should contain the constants you seek in the .menu files, and it is the one you want to edit to add new constants.

stubert
07-24-2004, 08:06 PM
coo thanks guys... i've spent my modding time working my new keywords into the ui stuff