Results 1 to 3 of 3

Thread: Bigger Text on Weapon Menu

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Bigger Text on Weapon Menu

    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:

    Code:
    #define ORIGIN_CHOICE1				80 84
    and...

    Code:
    		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;
    			}
    		}

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    Text size:

    Code:
    textscale      size
    size = any size you want


    Position of the text:

    Code:
    #define ORIGIN_CHOICE1      x y
    x y - x and y-axis (here 80 84)

  3. The Following 3 Users Say Thank You to Jeplaa For This Useful Post:

    EvoloZz (17th February 2013),kung foo man (17th February 2013),Loveboy (17th February 2013)

  4. #3
    Corporal Killer.Pro's Avatar
    Join Date
    Jul 2012
    Location
    belgium
    Posts
    274
    Thanks
    102
    Thanked 213 Times in 141 Posts
    Try this:
    Text size : 90
    Code:
    		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
    Code:
    #define ORIGIN_CHOICE1				200 240
    Last edited by Killer.Pro; 17th February 2013 at 11:33.
    Please call me Killer.Pro

  5. The Following 2 Users Say Thank You to Killer.Pro For This Useful Post:

    EvoloZz (17th February 2013),kung foo man (17th February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •