AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   How To Change Color Options Menu (https://forums.alliedmods.net/showthread.php?t=192216)

yoni279 08-07-2012 15:48

How To Change Color Options Menu
 
picture:
http://up351.siz.co.il/up1/nmhytwq0zjtg.png
thx for help

KillerMasa 08-07-2012 16:16

Re: How To Change Color Options Menu
 
It would be so easy if you show us the .sma file.

yoni279 08-07-2012 16:17

Re: How To Change Color Options Menu
 
Quote:

Originally Posted by KillerMasa (Post 1766574)
It would be so easy if you show us the .sma file.

PHP Code:

public shopmenu(id)
{
    new 
szText[555 char]
    new 
points playerpoints[id]
    
    
formatex(szTextcharsmax(szText), "[\yHNR Shop\w] What would you like to buy?^nYour Points: \y%d"points)
    new 
shopmenu menu_create(szText"sub_shopmenu")
        
    
formatex(szTextcharsmax(szText), "\yGrenades Menu")
    
menu_additem(shopmenuszText"1"0)
        
    
formatex(szTextcharsmax(szText), "\yWeapons Menu")
    
menu_additem(shopmenuszText"2" 0)
        
    
formatex(szTextcharsmax(szText), "\yPower Menu")
    
menu_additem(shopmenuszText"3"0)

    
formatex(szTextcharsmax(szText), "\wPlayers Points")
    
menu_additem(shopmenuszText"4"0)
        
        
    
menu_setprop(shopmenuMPROP_EXIT MEXIT_ALL);
    
menu_display(idshopmenu0);



KillerMasa 08-07-2012 16:26

Re: How To Change Color Options Menu
 
PHP Code:

    formatex(szTextcharsmax(szText), "\wPlayers Points"
    
menu_additem(shopmenuszText"4"0

:arrow:

PHP Code:

    formatex(szTextcharsmax(szText), "\yPlayers Points"
    
menu_additem(shopmenuszText"4"0


yoni279 08-07-2012 16:37

Re: How To Change Color Options Menu
 
Quote:

Originally Posted by KillerMasa (Post 1766582)
PHP Code:

    formatex(szTextcharsmax(szText), "\wPlayers Points"
    
menu_additem(shopmenuszText"4"0

:arrow:

PHP Code:

    formatex(szTextcharsmax(szText), "\yPlayers Points"
    
menu_additem(shopmenuszText"4"0


no i dont wanna change the "player points" to yellow i wanna change "number 4" to yellow
see the picture again

YamiKaitou 08-07-2012 16:39

Re: How To Change Color Options Menu
 
You will need to switch to the old menu style then

yoni279 08-07-2012 16:41

Re: How To Change Color Options Menu
 
Quote:

Originally Posted by YamiKaitou (Post 1766589)
You will need to switch to the old menu style then

ok change it so to yellow:
PHP Code:

public primgun_menu(id)
{    
    if(!
IsPlayer(id))
        return 
PLUGIN_HANDLED
        
    
new primgunmenu menu_create("\yChoose your weapon:""sub_primgun_menu")

    
menu_additem(primgunmenu"\wM4a1""1"0);
    
menu_additem(primgunmenu"\wAk 47""2"0);
    
menu_additem(primgunmenu"\wScout""3"0);
    
menu_additem(primgunmenu"\wAwp""4"0);
    
menu_additem(primgunmenu"\wMp5""5"0);
        
    
menu_setprop(primgunmenuMPROP_EXITMEXIT_ALL);
    
menu_display(idprimgunmenu0);
    return 
PLUGIN_HANDLED



YamiKaitou 08-07-2012 16:43

Re: How To Change Color Options Menu
 
In order to modify the color of the numbers, you must use the old style. You cannot do it with the new style

yoni279 08-07-2012 16:45

Re: How To Change Color Options Menu
 
Quote:

Originally Posted by YamiKaitou (Post 1766592)
In order to modify the color of the numbers, you must use the old style. You cannot do it with the new style

you can send me demo to old style menu?

YamiKaitou 08-07-2012 16:51

Re: How To Change Color Options Menu
 
http://wiki.alliedmods.net/Advanced_...X_Mod_X)#Menus


All times are GMT -4. The time now is 03:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.