Ich schon wieder
Das Thema lässt mich net in Ruhe ... habe mein bestes gegeben doch leider ohne Erfolg. kannst du mir n beispiel nennen was ich alles im Waffenmenü ändern muss, habe zb alle infos über die Waffen ins American Menü kopiert ...hier mal n auszug
#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 "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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 "4" { play "mouse_click"; scriptMenuResponse "greasegun_mp" }
execKey "3" { play "mouse_click"; scriptMenuResponse "m1carbine_mp" }
execKey "2" { play "mouse_click"; scriptMenuResponse "m1garand_mp" }
execKey "10" { play "mouse_click"; scriptMenuResponse "thompson_mp" }
execKey "12" { play "mouse_click"; scriptMenuResponse "bar_mp" }
execKey "6" { play "mouse_click"; scriptMenuResponse "sten_mp" }
execKey "5" { play "mouse_click"; scriptMenuResponse "bren_mp" }
execKey "7" { play "mouse_click"; scriptMenuResponse "pps42_mp" }
execKey "11" { play "mouse_click"; scriptMenuResponse "ppsh_mp" }
execKey "1" { play "mouse_click"; scriptMenuResponse "g43_mp" }
execKey "8" { play "mouse_click"; scriptMenuResponse "mp40_mp" }
execKey "9" { play "mouse_click"; scriptMenuResponse "mp44_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 m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide bar_info;
hide sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show m1garand_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_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 webley_info;
hide sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide g43_info;
hide mp40_info;
hide mp44_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show bar_info;
show weapon_propertiestext;
}
}
itemDef
{
name "button_g43"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE3
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_3_G43"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_g43"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "g43_mp";
}
onFocus
{
hide greasegun_info;
hide m1carbine_info;
hide m1garand_info;
hide thompson_info;
hide webley_info;
hide sten_info;
hide bren_info;
hide pps42_info;
hide ppsh_info;
hide bar_info;
hide mp40_info;
hide mp44_info;
hide springfield_info;
hide shotgun_info;
play "mouse_over";
show g43_info;
show weapon_propertiestext;
}
}
// 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 "g43_info"
visible 0
rect 0 -4 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_g43"
decoration
}
itemDef
{
name "bren_info"
visible 0
rect 0 -16 224 112
origin ORIGIN_WEAPONIMAGE
style WINDOW_STYLE_SHADER
background "weapon_bren"
decoration
}
itemDef
Habe keine Ahnung was ich genau Ändern muss