Menu questions
Moderator: Moderators
Menu questions
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
This is from one of my maps -- may be you can play with it to see what changing the numbers does.
you can download the map by clicking on my signature logo.
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.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.
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.
what do you mean? binds would be a config right?Is FakkBindList only for key binding ? I guess you can use any .scr for it right ?
You can set the binds for your keys from the controls menu . The area you do that in is the FakkBindList
it uses the ui/bind.scr where there are more settings for itresource
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
}
The controls menu also starts like thisheader 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"
....
....
....
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 .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"
Well I guess I had to answer a couple of my own questions
without fullscreen 1 and bgfill

with fullscreen 1 and bgfill

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 .
without fullscreen 1 and bgfill

with fullscreen 1 and bgfill

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 .


