Raised This Month: $51 Target: $400
 12% 

[Feature idea/issue] Menu callback colors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-15-2014 , 18:36   [Feature idea/issue] Menu callback colors
Reply With Quote #1

Right now if you set colors for an item in the menu that has a callback set and returns ITEM_DISABLED, the colors won't get changed to grey unless they're white.

You have to do something like this:

PHP Code:
public _mCallbackidiMenuiItem )
{
    new 
szItemName32 ], iGarbage
    menu_item_getinfo
iMenuiItemiGarbageszItemName0szItemNamecharsmaxszItemName ), iGarbage )
        
    
replace_allszItemNamecharsmaxszItemName ), "\y""\d" )
    
replace_allszItemNamecharsmaxszItemName ), "\r""\d" )
        
    
menu_item_setnameiMenuiItemszItemName )
        
    return 
ITEM_DISABLED 

This works fine but it's an additional exhausting step that could get ridden of.

It would be nice if all menu colors would automatically change color to \d if their callback returns ITEM_DISABLED.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 05-15-2014 at 18:37.
Backstabnoob is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:21.


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