AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu Colors (https://forums.alliedmods.net/showthread.php?t=13084)

KyleD 05-03-2005 23:49

Menu Colors
 
Are there only Red,Yellow,and White colors for menus? Post more if there are more...Please.

Thanks.

v3x 05-03-2005 23:52

Grey: \d

LOL :D

KyleD 05-04-2005 02:09

Sweet. Thanks.

v3x 05-04-2005 02:14

But it disables that option then. :P

Belsebub 05-04-2005 08:12

how to make a menu option grey?

twistedeuphoria 05-04-2005 12:28

Put "\d Disabled Option" in the menubody.

xeroblood 05-04-2005 16:24

Quote:

Originally Posted by v3x
But it disables that option then. :P

No it doesn't.. That only happens if you don't specify the Menu Key bit to use..
For example, many plugins determine if a menu option should be disabled or not by methods like is_user_alive() and if the user is not alive, then they just display the name in the menu with a grey color (\d) but dont add the associating menu key bit...

Crude Example:

1. Username1 <--- guy is alive so add Menu Key Bit 1 = (1<<0)
2. Username2 <--- guy is dead, make name grey. Dont add menu key bit
3. Username3 <--- guy is alive so add Menu Key Bit 3 = (1<<2)

0. Exit

Your menu keys would be: (1<<0 | 1<<3) which means Menu Options 1 & 3 are enabled, but option 2 is not..

I hope you understood that..

v3x 05-04-2005 16:29

Oh.. I see.. Learn something new everyday here. :)

KyleD 05-04-2005 20:18

Ah. Thanks xeroblood.


All times are GMT -4. The time now is 16:39.

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