PDA

View Full Version : Bigger Text on Weapon Menu



Loveboy
17th February 2013, 09:28
Hi guys, i have a question, how i make a bigger text and it will be in the middle?
At the Moment it's left, and not big.
I want it big because there is only one weapon.
So how i make it?
At moment it's so:


#define ORIGIN_CHOICE1 80 84

and...


itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "1. M40A3"
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 nagant_info;
hide kar98k_info;
hide springfield_info;
hide enfieldsniper_info;
hide nagantsniper_info;
hide kar98ksniper_info;
hide danifilth_info;
play "mouse_over";
hide enfield_info;
hide weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "1. M40A3"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "2" }
onFocus
{
hide nagant_info;
hide kar98k_info;
hide springfield_info;
hide enfieldsniper_info;
hide nagantsniper_info;
hide kar98ksniper_info;
hide danifilth_info;
play "mouse_over";
hide enfield_info;
hide weapon_propertiestext;
}
}

Jeplaa
17th February 2013, 09:39
Text size:


textscale size

size = any size you want


Position of the text:


#define ORIGIN_CHOICE1 x y

x y - x and y-axis (here 80 84)

Killer.Pro
17th February 2013, 12:11
Try this:
Text size : 90

itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "1. M40A3"
textfont UI_FONT_NORMAL
textscale .90
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "1" }
action
{
play "mouse_click";
scriptMenuResponse "bar_mp";
}
onFocus
{
hide nagant_info;
hide kar98k_info;
hide springfield_info;
hide enfieldsniper_info;
hide nagantsniper_info;
hide kar98ksniper_info;
hide danifilth_info;
play "mouse_over";
hide enfield_info;
hide weapon_propertiestext;
}
}
itemDef
{
name "button_bar"
visible 1
rect 0 0 128 24
origin ORIGIN_CHOICE1
forecolor GLOBAL_DISABLED_COLOR
type ITEM_TYPE_BUTTON
text "1. M40A3"
textfont UI_FONT_NORMAL
textscale .90
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
dvartest "ui_allow_bar"
showDvar { "2" }
onFocus
{
hide nagant_info;
hide kar98k_info;
hide springfield_info;
hide enfieldsniper_info;
hide nagantsniper_info;
hide kar98ksniper_info;
hide danifilth_info;
play "mouse_over";
hide enfield_info;
hide weapon_propertiestext;
}
}

And Position

#define ORIGIN_CHOICE1 200 240