Page 1 of 1

Menu questions

Posted: Fri Dec 01, 2006 3:53 am
by bdbodger
What is the difference between bgfill and bgcolor in a menu when fullscreen is set to 1 ? Will setting fullscreen stretch a menu to fullscreen no matter what size it is ? I assume it will . What about fgcolor that only applies to resouces right ? I see they have fgcolor set in a couple of menus but the menu does not have text only the labels etc do so maybe that isn't right . Is FakkBindList only for key binding ? I guess you can use any .scr for it right ?

fill

Posted: Fri Dec 01, 2006 12:20 pm
by tltrude
This is from one of my maps -- may be you can play with it to see what changing the numbers does.

Code: Select all

menu "dm/murders_row" 640 481 NONE 0 
bgcolor 0 0 0 1 
borderstyle NONE 
bgfill 0 0 0 1  
fadein 0.2 
virtualres 1 
postinclude ui/loadingbar.txt // flashing loading sign

resource 
Label 
{ 
name "Default" 
//rect 96 48 448 336
rect 0 0 640 480 
fgcolor 1.00 1.00 1.00 1.00 
bgcolor 1.00 1.00 1.00 0.00 
borderstyle "NONE" 
shader "murders_row"
}
 
end.
you can download the map by clicking on my signature logo.

Posted: Fri Dec 01, 2006 6:31 pm
by bdbodger
I have lots of my own menus I was just busy with something and didn't have time to do a lot of testing but thanks anyway . So if anyone can answer those questions that would be great . I'll let you know what I am up to soon .

Posted: Fri Dec 01, 2006 7:18 pm
by ViPER
bgcolor sets the color index of your background and I think bgfill is a boolean type. Not sure tho

i think if you just use this

virtualres 1

with or without this

fullscreen 1

You will have a full screen

I do not think fullscreen 1 will allways stretch your resource to fullscreen.
Is FakkBindList only for key binding ? I guess you can use any .scr for it right ?
what do you mean? binds would be a config right?

Posted: Fri Dec 01, 2006 8:10 pm
by bdbodger
You can set the binds for your keys from the controls menu . The area you do that in is the FakkBindList
resource
FakkBindList
{
title "BindList"
name "bindlist"
rect 60 160 320 208
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "NONE"
filename ui/bind.scr
ordernumber 1

}
it uses the ui/bind.scr where there are more settings for it
header 1 "Action"
header 2 "Primary"
header 3 "Alternate"

bind_width 320
bind_height 208
bind_fillwidth 5 "textures/mohmenu/metbrd_left"
bind_commandwidth 161
bind_commandheight 16
bind_primarykeywidth 64
bind_primarykeyheight 16
bind_alternatekeywidth 64
bind_alternatekeyheight 16

align centerx centery

titleforegroundcolor 0.4 1 0.25 1
titlebackgroundcolor 0 0 0 1

activebordercolor 1.0 0.2 0.2 1
activeforegroundcolor 1 1 1 1
activebackgroundcolor 0 0 0 1

inactiveforegroundcolor 1 1 1 1
inactivebackgroundcolor 0.1 0.1 0.1 1

highlightforegroundcolor 0.5 1.0 0.5 1
highlightbackgroundcolor 0 0 0 1

selectforegroundcolor 1.0 0.5 0.5 1
selectbackgroundcolor 0 0 0 1

changesound sound/null.wav
activesound sound/menu/scroll.wav
entersound sound/menu/apply.wav

binditem "Primary Attack" "+attackprimary"
binditem "Secondary Attack" "+attacksecondary"
binditem "Move Forward" "+forward"
....
....
....
The controls menu also starts like this
menu "controls" 640 480 NONE 0
bgcolor 0 0 0 1
borderstyle NONE
bgfill 0 0 0 1
fullscreen 1
// vidmode 3
//fadein 0.5
virtualres 1

//include "ui/common.inc"
as you see the has bgcolor and bgfill . Fullscreen 1 and virtualres 1 . Just wondering what is needed and what is just added but not needed .

Posted: Fri Dec 01, 2006 8:52 pm
by bdbodger
Well I guess I had to answer a couple of my own questions

without fullscreen 1 and bgfill

Image

with fullscreen 1 and bgfill

Image


even with bgcolor set the background would be transparent you need to use bgfill for the area outside of your menu but it seem fullscreen 1 was not needed as the menu was virtualres 1 and 640x460 already another menu I tried the without fullscreen 1 bgfill worked still . So one question remains does fullscreen 1 do anything or not .