Main Menu Troubles

Grab your favourite IDE and tinker with the innards of game engines

Main Menu Troubles

Postby AlphaKennyOne on Sun Apr 22, 2007 10:45 pm

I had a problem exactly like the one described in the "Annoying text in the New Game window" thread, but followed mr greenfish's advice, and got that fixed. However, I have run into a couple new issues.

Firstly, take a look at the Close box in this screenshot:

Image

Not only does it have a "t..." in it, clicking the box does nothing. The only way to close it is by clicking "Cancel".

Next problem concerns this screen:

Image

In the above screen, it shows the "New Game" option as the mouse hovers over it. It's a dimmer white than the title. The rest of the options, with no mouse hover are red. I don't want them red. I want all of the options to be the same color as the "New Game" option.

I have a feeling that both of these issues can be resolved by altering one or more of the .res files in my resource folder. The question is which one, and where. Anyone have any ideas?
I don't suffer from insanity - I enjoy every minute of it!
AlphaKennyOne
Regular
Regular
 
Joined: Sat Dec 23, 2006 8:27 pm
Location: California

Postby mr greenfish on Sun Apr 22, 2007 11:21 pm

i am not sure about your first problem, my new game menu "looks" fine, however as you mentioned, the close button doesnt do anything.

Image

...if you pm me your e-mail address, i'll mail you my file frommy resource folder so you can take a poke around with them, but beyond that i don't know directly how to fix it.

with the second question the colors are defined in the .res files as you guessed, but i honestly can't be bothered finding the correct entry. I did however spend a long time going through them once and commenting next to what certain ones do; so if i email you my resource files finding that should be too difficult for you, chances are i'll have commented which line it is.
Image Available now
User avatar
mr greenfish
1337 p0st3r
1337 p0st3r
 
Joined: Sat Dec 04, 2004 12:05 pm

Postby AlphaKennyOne on Mon Apr 23, 2007 12:06 am

Okay, I figured out how to fix both of my issues. For the first one, I went into my NewGameDialog.res file. I went down to here:

Code: Select all
   "Close"
   {
      "ControlName"      "Button"
      "fieldName"      "close"
      "xpos"      "575"
      "ypos"      "8"
      "wide"      "18"
      "tall"      "18"
      "autoResize"      "0"
      "pinCorner"      "0"
      "visible"      "1"
      "enabled"      "1"
      "tabPosition"      "0"
                "labelText"      "r"
      "textAlignment"      "north-west"
      "dulltext"      "0"
      "brighttext"      "0"
      "wrap"      "0"
      "Default"      "0"
   }


and changed it to:

Code: Select all
   "Close"
   {
      "ControlName"      "Button"
      "fieldName"      "close"
      "xpos"      "575"
      "ypos"      "8"
      "wide"      "18"
      "tall"      "18"
      "autoResize"      "0"
      "pinCorner"      "0"
      "visible"      "1"
      "enabled"      "1"
      "tabPosition"      "0"
//      "labelText"      "r"
      "labelText"      " "
      "textAlignment"      "north-west"
      "dulltext"      "0"
      "brighttext"      "0"
      "wrap"      "0"
      "Default"      "0"
   }


It still doesn't do anything when pressed, but at least there are no characters in the button. As for the second issue, I opened my SourceScheme.res file, and in this section:

Code: Select all
      // scheme-specific colors
      MainMenu.TextColor         "200 200 200 200"
      MainMenu.ArmedTextColor      "220 220 220 255"
      MainMenu.DepressedTextColor      "192 186 80 255"
      MainMenu.MenuItemHeight      "30"
      MainMenu.Inset            "32"
      MainMenu.Backdrop         "0 0 0 156"


I changed the "ManMenu.TextColor" to a light white/grey color, and the "MainMenu.ArmedTextColor" to a darker color when the mouse hovers over it. Hopefully someone can get help out of this. I sure did, thanks mr greenfish!
I don't suffer from insanity - I enjoy every minute of it!
AlphaKennyOne
Regular
Regular
 
Joined: Sat Dec 23, 2006 8:27 pm
Location: California

Postby ChopperDave on Mon Apr 23, 2007 12:49 am

Take your code for the close button:

Code: Select all
 "Close"
   {
      "ControlName"      "Button"
      "fieldName"      "close"
      "xpos"      "575"
      "ypos"      "8"
      "wide"      "18"
      "tall"      "18"
      "autoResize"      "0"
      "pinCorner"      "0"
      "visible"      "1"
      "enabled"      "1"
      "tabPosition"      "0"
                "labelText"      "r"
      "textAlignment"      "north-west"
      "dulltext"      "0"
      "brighttext"      "0"
      "wrap"      "0"
      "Default"      "0"
   }


And add this to it:

Code: Select all
"Command"      "Close"


That should give it the close functionality.
User avatar
ChopperDave
Rockstar San Diego
 
Joined: Wed Feb 21, 2007 6:06 pm

Postby mr greenfish on Mon Apr 23, 2007 9:19 am

excellent, that close command works. many thanks
Image Available now
User avatar
mr greenfish
1337 p0st3r
1337 p0st3r
 
Joined: Sat Dec 04, 2004 12:05 pm

Postby Mr. Happy on Mon Apr 23, 2007 10:07 am

Well this is a jolly little thread, sure to help many and me too :D
Image
-You've just been happified!?
User avatar
Mr. Happy
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sat Dec 30, 2006 9:20 am
Location: Flyin' thru "da cloud" in the MotherShip

Postby Head on Mon Apr 23, 2007 11:00 am

This helped me thx :D
Image
User avatar
Head
1337 p0st3r
1337 p0st3r
 
Joined: Fri Apr 29, 2005 3:21 pm
Location: Sweden ;(

Postby fitzroy_doll on Tue May 15, 2007 3:19 pm

Now that you have worked out so many interesting things about the Chapter Menu, I was wondering if you could help me with my own chapter problems.

I need to increase the maximum number of chapters beyond 32. In CSS SCI FI, each scripted CSS map is its own chapter, which is added to the normal chapter menu after the HL2 chapters.

This all fine for the 15 original maps, plus the original 15 HL2 chapters, but I am now about to release another 12 maps and can only add 2 of them. Actually, HL2 chapters 4 to 9 are dropped from the menu, and anything remaining over 32 is also dropped.

I have not been able to locate the code for this limit. Is there any way to increase the number of chapters in a mod beyond 32?
fitzroy_doll
Member
Member
 
Joined: Mon Dec 12, 2005 4:10 pm
Location: London

Return to Programming

Who is online

Users browsing this forum: No registered users