Originally Posted by
G-Stuff002
Thanks Tally, I'll try to do additions it myself, but what's my error? I make additional points in weapons menu but I have wrong distance
1_weapon_pistol GSC.7z
1weapon_pistols Menu.7z
I both reviewed all the content of the sites Nexus and gamefront and did not find the necessary stand-alone versions, many are repeated and the most interesting are not present
You have this for the flamethrower:
Code:
itemDef
{
name "button_flamethrower"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE5
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@6. flamethrower"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_pistols"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "flamethrower_mp";
}
onFocus
{
play "mouse_over";
hide webley_info;
hide tt30_info;
hide colt_info;
hide luger_info;
hide p38_info;
hide mg42dpl_info;
show flamethrower_info;
}
}
In that one, your ORIGIN_CHOICE number is 5. That position is already occupied by the P38. So, you should renumber it to 6:
Code:
itemDef
{
name "button_flamethrower"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE6
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@6. flamethrower"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_pistols"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "flamethrower_mp";
}
onFocus
{
play "mouse_over";
hide webley_info;
hide tt30_info;
hide colt_info;
hide luger_info;
hide p38_info;
hide mg42dpl_info;
show flamethrower_info;
}
}
If you ever get 2 weapons in the same place, always check your ORIGIN_CHOICE numbers.