Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 47 Guests
Online:

LATEST FORUM THREADS

»
SOF2 Prefabs map
SoFII Mapping
coduo mapping tools
CoDUO Mapping
Gaming
Q4 General
eXtreme+ v2.9
CoDBO Map + Mod Releases
map loading error
CoD2 MP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD+UO General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Custom Menus
phantomdentist
General Member
Since: May 7, 2004
Posts: 379
Last: Jun 14, 2010
[view latest posts]
Level 5
Category: CoD+UO General
Posted: Saturday, Aug. 1, 2009 03:00 am
Not neccicarily specific to call of duty, just trying it here as a I know the cod better than most games mod wise

I've never done a custom menu of any kind really.

Talking about doing things like adding extra graphics options to the graphics menu

Adding items to the menu itself is easy enough

In this case

ui (folder)
options_graphics.menu

and

localizedstrings (folder)
english (folder)
menu.str

Can easily enough add an options for a resolution of 1920 x 1200 with

-----------------------------------------------------------------------

itemDef
{
name graphics
group grpSystem
type ITEM_TYPE_MULTI
text "@MENU_VIDEO_MODE"
cvar "ui_r_mode"
cvarFloatList { "@MENU_640480" 3 "@MENU_800600" 4 "@MENU_1024768" 6 "@MENU_1152864" 7 "@MENU_12801024" 8 "@MENU_16001200" 9 "@MENU_19201200" 10 "@MENU_20481536" 11 }
// "320*240" 0 "400*300" 1 "512*384" 2 "856*480 Wide Screen" 12 "960*720" 5
rect 5 80 OPTIONS_CONTROL_SIZE
textalign ITEM_ALIGN_RIGHT
textalignx OPTIONS_CONTROL_XALIGN
textaligny OPTIONS_CONTROL_YALIGN
textscale OPTIONS_CONTROL_TXTSCALE
style WINDOW_STYLE_FILLED
backcolor OPTIONS_CONTROL_BACKCOLOR
forecolor OPTIONS_CONTROL_FORECOLOR
visible 1
// mouseenter { show keyBindStatus }
// mouseexit { hide keyBindStatus }
mouseEnter
{
play "mouse_over";
}
action { play "mouse_click"; show graphicsapply; }
}

---------------------------------------------------------------------

I know that the number after the text alias (if thats the right term, not modded for ages) is what defines which resolution the Cvar variable it actually referencing

so if I were to do

@MENU_19201200" 3

then selecting that options would actually give a resolution if 640 x 480 as 3 refers to that variable in

cvar "ui_r_mode"

or just r_mode (I'm assuming)

So how to I get to whatever ui_r_mode is to add a new variable for say 13 with the value of 1920 vert and 1200 hor? if indeed I can at all

---

If I can't then I assume I can add a custom res menu (well I know I can) and use some variable of the

r_customheight "1200"
r_customwidth "1920"

that you can add manually to your config or commandline to get this resolution.

I'm basically just after the missing gaps in my knowledge so I can do this for any menu in any game (would like to add quite a lot of all ready existing options to games menus but don't know where I actually store custom or new cvars etc, or where they are originally)

Cheers guys


edited on Aug. 1, 2009 06:06 am by phantomdentist

edited on Aug. 1, 2009 06:07 am by phantomdentist

edited on Aug. 1, 2009 06:08 am by phantomdentist
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD+UO General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»