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 _mCallback( id, iMenu, iItem )
{
new szItemName[ 32 ], iGarbage
menu_item_getinfo( iMenu, iItem, iGarbage, szItemName, 0, szItemName, charsmax( szItemName ), iGarbage )
replace_all( szItemName, charsmax( szItemName ), "\y", "\d" )
replace_all( szItemName, charsmax( szItemName ), "\r", "\d" )
menu_item_setname( iMenu, iItem, szItemName )
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.