Raised This Month: $ Target: $400
 0% 

Text in MenuPanel?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WolfGang
BANNED
Join Date: Oct 2010
Old 10-13-2012 , 19:32   Text in MenuPanel?
Reply With Quote #1

Hi, i was wondering what is the code or how is it possible to add text to MenuPanel? I know how to add text to Panelmenus such as " DrawPaneltext(menu, text); ". but not MenuPanels. Is there any way i can add text to MenuPanel? I saw servers on Steam with plugin that uses MenuPanel with text and i was just wondering how can this be done?
WolfGang is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-13-2012 , 19:58   Re: Text in MenuPanel?
Reply With Quote #2

AddMenuItem allows you to specify which type of menu item you're adding using the style argument. My understanding is that:
  • ITEMDRAW_DISABLED - Draws text with a slot number, but it can't be selected
  • ITEMDRAW_RAWLINE - Draws text with no slot number
  • ITEMDRAW_SPACER - Blank line but has a slot number
  • ITEMDRAW_IGNORE - Blank line with no slot number
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
schmidt
BANNED
Join Date: Mar 2010
Location: Milky Way/Earth
Old 10-13-2012 , 20:19   Re: Text in MenuPanel?
Reply With Quote #3

Code:
AddMenuItem(menu, "test", "Test\nNo");
http://forums.alliedmods.net/showpos...56&postcount=6
schmidt is offline
Send a message via Skype™ to schmidt
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 06:56.


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