View Full Version : Page 2
Loveboy
30th May 2013, 21:10
Hi Guys, i have a weapon menu on my server, and this is now very full (40 weapons), i want to make a page 2 , but idk how i can make this. Can somebody help me? and if you take your weapon a secoundary menu will come, if you know how to make please answer back.
thank you :)
randall
30th May 2013, 23:04
Create the second page, and the scrolling buttons (e.g. "Next Page", "Previous Page") at the first one, what opens the new menu. Its pretty simple. xd
thOuMta
31st May 2013, 16:54
action
{
play "mouse_click";
open page2;
}
onFocus
{
play "mouse_over";
}
Juste make it, its very simple
Loveboy
1st June 2013, 10:52
No, its not easy and and it will not open.
Ni3ls
1st June 2013, 14:04
it will open. Make sure u edit _menus.gsc
action
{
play "mouse_click";
close "page1";
open "page2";
}
onFocus
{
play "mouse_over";
}
Tally
1st June 2013, 14:13
it will open. Make sure u edit _menus.gsc
action
{
play "mouse_click";
close "page1";
open "page2";
}
onFocus
{
play "mouse_over";
}
There is nothing in that menu code which is monitored in _menus.gsc.
Tally
1st June 2013, 14:15
No, its not easy and and it will not open.
Modding elementary - post your code for us to check.
I will say - if it isn't opening, check the name of your page2 menu with the menu action "open". The "open" action looks for a menu name. If the menu name is wrong, it wont open.
BTW - when I say menu name, I do not mean the name of the menu file. I mean the name you have to give a menu after menuDef{}.
Example:
menuDef
{
name "page2"
rect 0 0 640 480
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_EMPTY
blurWorld 5.0
}
IzNoGoD
1st June 2013, 14:55
Lemme just say this one word:
Precache.
Loveboy
1st June 2013, 15:07
I can not get ahead. Here the scripts:
filename: weapon_american.menu location: ui_mp/scriptmenus/weapon_american.menu
script:
#include "ui_mp/menudef.h"
#define ORIGIN_TITLE 48 64
#define ORIGIN_CHOICE1 80 84
#define ORIGIN_CHOICE2 80 108
#define ORIGIN_CHOICE3 80 132
#define ORIGIN_CHOICE4 80 156
#define ORIGIN_CHOICE5 80 180
#define ORIGIN_CHOICE6 80 204
#define ORIGIN_CHOICE7 80 228
#define ORIGIN_CHOICE8 560 355
#define ORIGIN_WEAPONIMAGE 296 84
#define ORIGIN_WEAPONTEXT 296 220
#define ORIGIN_WEAPONPROPERTIESTEXT 296 290
#define ORIGIN_WEAPONACCURACY 395 277
#define ORIGIN_WEAPONDAMAGE 395 301
#define ORIGIN_WEAPONMOBILITY 395 325
#define ORIGIN_GRENADESLOT1 296 144
#define ORIGIN_GRENADESLOT2 312 144
#define ORIGIN_GRENADESLOT3 328 144
{
menuDef
{
name "weapon_american"
rect 0 0 640 480
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_EMPTY
blurWorld 5.0
onEsc
{
close weapon_american;
}
onOpen
{
show greasegun_info;
show weapon_propertiestext;
}
onClose
{
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
}
// Gradient
itemDef
{
style WINDOW_STYLE_SHADER
//rect -107 0 554 480
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
background "gradient"
visible 1
decoration
}
#include "ui/bars.menu"
itemDef
{
type ITEM_TYPE_TEXT
visible 1
origin ORIGIN_TITLE
forecolor 1 1 1 1
text "@MPUI_AMERICAN_WEAPONS"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
decoration
}
// MENU CHOICES
execKey "1" { play "mouse_click"; scriptMenuResponse "greasegun_mp" }
execKey "2" { play "mouse_click"; scriptMenuResponse "m1carbine_mp" }
execKey "3" { play "mouse_click"; scriptMenuResponse "m1garand_mp" }
execKey "4" { play "mouse_click"; scriptMenuResponse "springfield_mp" }
execKey "5" { play "mouse_click"; scriptMenuResponse "shotgun_mp" }
execKey "6" { play "mouse_click"; scriptMenuResponse "thompson_mp" }
execKey "7" { play "mouse_click"; scriptMenuResponse "bar_mp" }
itemDef
{
name "button_greasegun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_1_GREASEGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_greasegun"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "greasegun_mp";
}
onFocus
{
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show greasegun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_greasegun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_1_GREASEGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_greasegun"
showDvar { "2" }
onFocus
{
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show greasegun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1carbine"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE2
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_2_M1A1_CARBINE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1carbine"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "m1carbine_mp";
}
onFocus
{
hide greasegun_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1carbine_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1carbine"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE2
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_2_M1A1_CARBINE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1carbine"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1carbine_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1garand"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE3
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_3_M1_GARAND"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1garand"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "m1garand_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1garand_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1garand"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE3
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_3_M1_GARAND"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1garand"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1garand_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_springfield"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE4
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_4_SPRINGFIELD"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_springfield"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "springfield_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide shotgun_info;
play "mouse_over";
show springfield_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_springfield"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE4
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_4_SPRINGFIELD"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_springfield"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide shotgun_info;
play "mouse_over";
show springfield_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_shotgun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE5
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_5_SHOTGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_shotgun"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "shotgun_mp";
}
onFocus
{
hide greasegun_info;
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
play "mouse_over";
show shotgun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_shotgun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE5
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_5_SHOTGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_shotgun"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
play "mouse_over";
show shotgun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_thompson"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE6
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_6_THOMPSON"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_thompson"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "thompson_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show thompson_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_thompson"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE6
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_6_THOMPSON"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_thompson"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show thompson_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE7
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_7_BAR"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "bar_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show bar_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE7
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_7_BAR"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show bar_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_page2"
visible 1
rect 0 0 128 20
origin ORIGIN_CHOICE8
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "Page 2"
textfont UI_FONT_NORMAL
textscale 1
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_page2"
showDvar { "1" }
action
{
play "mouse_click";
open page2;
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_page2"
visible 1
rect 0 0 128 20
origin ORIGIN_CHOICE8
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "Page 2"
textfont UI_FONT_NORMAL
textscale 1
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_page2"
hideDvar { "1" }
onFocus
{
hide enfield_info;
hide nagant_info;
hide kar98k_info;
hide springfield_info;
hide enfieldsniper_info;
hide nagantsniper_info;
hide kar98ksniper_info;
hide danifilth_info;
hide m1carbine_info;
hide m1garand_info;
hide svt40_info;
hide g43_info;
hide g43sniper_info;
hide weapon_propertiestext;
}
}
itemDef
{
#include "ui_mp/button_mainmenu.menu"
action
{
play "mouse_click";
close ingame;
open main;
}
onFocus
{
play "mouse_over";
}
}
// WEAPON IMAGES
itemDef
{
name "thompson_info"
visible 0
rect 0 6 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_thompson"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_m1carbine"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_m1garand"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 -2 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_bar"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 4 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_springfield"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 6 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_greasegun"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_shotgun"
decoration
}
/*
// WEAPON DESCRIPTIONS
itemDef
{
name "thompson_info"
visible 0
rect 0 17 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_THOMPSON_IS_DEADLY"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_M1A1_CARBINE_IS_A"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_M1_GARAND_IS_A_POWERFUL"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_BROWNING_AUTOMATIC"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THIS_IS_A_SNIPER_RIFLE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
*/
// WEAPON PROPERTIES
itemDef
{
name "weapon_propertiestext"
visible 0
origin ORIGIN_WEAPONPROPERTIESTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_ACCURACY_DAMAGE_MOBILITY"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 56 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 83 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 64 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 110 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 72 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 120 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 64 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 70 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 75 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 35 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 100 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
// GRENADE LOADOUT
itemDef
{
name "thompson_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
// SMOKE GRENADE LOADOUT
itemDef
{
name "thompson_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
}
}
Loveboy
1st June 2013, 15:08
next file name: page2.menu location: ui_mp/scriptmenus/page2.menu
script:
#include "ui_mp/menudef.h"
#define ORIGIN_TITLE 48 64
#define ORIGIN_CHOICE1 80 84
#define ORIGIN_CHOICE2 80 108
#define ORIGIN_CHOICE3 80 132
#define ORIGIN_CHOICE4 80 156
#define ORIGIN_CHOICE5 80 180
#define ORIGIN_CHOICE6 80 204
#define ORIGIN_CHOICE7 80 228
#define ORIGIN_WEAPONIMAGE 296 84
#define ORIGIN_WEAPONTEXT 296 220
#define ORIGIN_WEAPONPROPERTIESTEXT 296 290
#define ORIGIN_WEAPONACCURACY 395 277
#define ORIGIN_WEAPONDAMAGE 395 301
#define ORIGIN_WEAPONMOBILITY 395 325
#define ORIGIN_GRENADESLOT1 296 144
#define ORIGIN_GRENADESLOT2 312 144
#define ORIGIN_GRENADESLOT3 328 144
{
menuDef
{
name "page2"
rect 0 0 640 480
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_EMPTY
blurWorld 5.0
onEsc
{
close weapon_american;
}
onOpen
{
show greasegun_info;
show weapon_propertiestext;
}
onClose
{
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
}
// Gradient
itemDef
{
style WINDOW_STYLE_SHADER
//rect -107 0 554 480
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
background "gradient"
visible 1
decoration
}
#include "ui/bars.menu"
itemDef
{
type ITEM_TYPE_TEXT
visible 1
origin ORIGIN_TITLE
forecolor 1 1 1 1
text "@MPUI_AMERICAN_WEAPONS"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
decoration
}
// MENU CHOICES
execKey "1" { play "mouse_click"; scriptMenuResponse "greasegun_mp" }
execKey "2" { play "mouse_click"; scriptMenuResponse "m1carbine_mp" }
execKey "3" { play "mouse_click"; scriptMenuResponse "m1garand_mp" }
execKey "4" { play "mouse_click"; scriptMenuResponse "springfield_mp" }
execKey "5" { play "mouse_click"; scriptMenuResponse "shotgun_mp" }
execKey "6" { play "mouse_click"; scriptMenuResponse "thompson_mp" }
execKey "7" { play "mouse_click"; scriptMenuResponse "bar_mp" }
itemDef
{
name "button_greasegun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_1_GREASEGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_greasegun"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "greasegun_mp";
}
onFocus
{
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show greasegun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_greasegun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_1_GREASEGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_greasegun"
showDvar { "2" }
onFocus
{
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show greasegun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1carbine"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE2
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_2_M1A1_CARBINE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1carbine"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "m1carbine_mp";
}
onFocus
{
hide greasegun_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1carbine_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1carbine"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE2
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_2_M1A1_CARBINE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1carbine"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1carbine_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1garand"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE3
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_3_M1_GARAND"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1garand"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "m1garand_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1garand_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_m1garand"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE3
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_3_M1_GARAND"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_m1garand"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide thompson_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1garand_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_springfield"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE4
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_4_SPRINGFIELD"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_springfield"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "springfield_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide shotgun_info;
play "mouse_over";
show springfield_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_springfield"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE4
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_4_SPRINGFIELD"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_springfield"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide shotgun_info;
play "mouse_over";
show springfield_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_shotgun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE5
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_5_SHOTGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_shotgun"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "shotgun_mp";
}
onFocus
{
hide greasegun_info;
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
play "mouse_over";
show shotgun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_shotgun"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE5
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_5_SHOTGUN"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_shotgun"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide thompson_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
play "mouse_over";
show shotgun_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_thompson"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE6
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_6_THOMPSON"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_thompson"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "thompson_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show thompson_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_thompson"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE6
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_6_THOMPSON"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_thompson"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide bar_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show thompson_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE7
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_7_BAR"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "bar_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show bar_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE7
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_7_BAR"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "2" }
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show bar_info;
show weapon_propertiestext;
}
}
itemDef
{
#include "ui_mp/button_mainmenu.menu"
action
{
play "mouse_click";
close ingame;
open main;
}
onFocus
{
play "mouse_over";
}
}
// WEAPON IMAGES
itemDef
{
name "thompson_info"
visible 0
rect 0 6 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_thompson"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_m1carbine"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_m1garand"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 -2 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_bar"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 4 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_springfield"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 6 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_greasegun"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_shotgun"
decoration
}
/*
// WEAPON DESCRIPTIONS
itemDef
{
name "thompson_info"
visible 0
rect 0 17 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_THOMPSON_IS_DEADLY"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_M1A1_CARBINE_IS_A"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_M1_GARAND_IS_A_POWERFUL"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THE_BROWNING_AUTOMATIC"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 224 64
origin ORIGIN_WEAPONTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_THIS_IS_A_SNIPER_RIFLE"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
*/
// WEAPON PROPERTIES
itemDef
{
name "weapon_propertiestext"
visible 0
origin ORIGIN_WEAPONPROPERTIESTEXT
forecolor 1 1 1 1
autowrapped
text "@MPUI_ACCURACY_DAMAGE_MOBILITY"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 56 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 83 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "thompson_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 64 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 110 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 72 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 120 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 64 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 70 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 75 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 96 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 35 10
origin ORIGIN_WEAPONACCURACY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 100 10
origin ORIGIN_WEAPONDAMAGE
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 128 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 .125
style WINDOW_STYLE_FILLED
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 80 10
origin ORIGIN_WEAPONMOBILITY
backcolor 1 1 1 1
style WINDOW_STYLE_FILLED
decoration
}
// GRENADE LOADOUT
itemDef
{
name "thompson_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1carbine_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "m1garand_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "bar_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT2
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "springfield_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT1
style WINDOW_STYLE_SHADER
background "gfx/icons/hud@us_grenade_C.tga"
decoration
}
// SMOKE GRENADE LOADOUT
itemDef
{
name "thompson_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
itemDef
{
name "greasegun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
itemDef
{
name "shotgun_info"
visible 0
rect 0 0 32 32
origin ORIGIN_GRENADESLOT3
style WINDOW_STYLE_SHADER
background "hud_us_smokegrenade_C"
decoration
}
}
}
Ni3ls
1st June 2013, 15:33
There is nothing in that menu code which is monitored in _menus.gsc.
You need to define your menu and precache it
Tally
1st June 2013, 15:44
You need to define your menu and precache it
Yeah, but you don't have to do that in _menus.gsc. You can do that in any file. The way you said it, you implied it needed some sort of menu waiter in _menus.gsc. So, what you should have said was: "Don't forget to precache your menu".
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.