Raised This Month: $32 Target: $400
 8% 

Solved Unclickable menu item


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Javierko
AlliedModders Donor
Join Date: Sep 2017
Location: Czech republic
Old 11-21-2017 , 15:22   Unclickable menu item
Reply With Quote #1

Hello guys,

i am making some menu for our community, but i dont know how i can make unclickable menu item.
I will be happy if you say me how i can make it.

Thanks...

Last edited by Javierko; 11-21-2017 at 16:50. Reason: solved
Javierko is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-21-2017 , 16:12   Re: Unclickable menu item
Reply With Quote #2

PHP Code:
menu.AddItem("1""1"ITEMDRAW_DISABLED);
//or 
AddMenuItem(menu"1""1"ITEMDRAW_DISABLED); 
https://github.com/alliedmodders/sou...us.inc#L80-L86
PHP Code:
#define ITEMDRAW_DEFAULT        (0)        /**< Item should be drawn normally */
#define ITEMDRAW_DISABLED        (1<<0)    /**< Item is drawn but not selectable */
#define ITEMDRAW_RAWLINE        (1<<1)    /**< Item should be a raw line, without a slot */
#define ITEMDRAW_NOTEXT            (1<<2)    /**< No text should be drawn */
#define ITEMDRAW_SPACER            (1<<3)    /**< Item should be drawn as a spacer, if possible */
#define ITEMDRAW_IGNORE    ((1<<1)|(1<<2))    /**< Item should be completely ignored (rawline + notext) */
#define ITEMDRAW_CONTROL        (1<<4)    /**< Item is control text (back/next/exit) */ 
__________________
coding & free software

Last edited by shanapu; 11-21-2017 at 16:15.
shanapu is offline
Javierko
AlliedModders Donor
Join Date: Sep 2017
Location: Czech republic
Old 11-21-2017 , 16:50   Re: Unclickable menu item
Reply With Quote #3

Working cool..

Big thanks to you ^^


Solved
Javierko 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 19:35.


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