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

ITEMDRAW_RAWLINE not worked in CS:GO (Menu)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rabb1t
Junior Member
Join Date: Nov 2016
Location: Russian Federation
Old 08-06-2019 , 09:14   ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
Reply With Quote #1

Hello, everyone!
Faced such a problem that the ITEMDRAW_RAWLINE flag does not work on the menu in the CS:GO (the item is not added if this flag is specified), but it works on the panels.
Maybe there is an option to somehow make it work, or maybe there is an alternative how to add an item to the menu that does not occupy a slot?
__________________
Rabb1t is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-06-2019 , 10:38   Re: ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
Reply With Quote #2

That flag is only supported in raw panels, not in the menu api. You can just add more text after a new line to the previous item like.

PHP Code:
Menu hMenu = new Menu(handler);
hMenu.SetTitle("First line\nsecond line");
hMenu.AddItem("1""First item\nmore text on the next line before the second item");
hMenu.AddItem("2""Second item\nmore text on the next line"); 
__________________
Peace-Maker is offline
Rabb1t
Junior Member
Join Date: Nov 2016
Location: Russian Federation
Old 08-06-2019 , 12:50   Re: ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
That flag is only supported in raw panels, not in the menu api. You can just add more text after a new line to the previous item like.

PHP Code:
Menu hMenu = new Menu(handler);
hMenu.SetTitle("First line\nsecond line");
hMenu.AddItem("1""First item\nmore text on the next line before the second item");
hMenu.AddItem("2""Second item\nmore text on the next line"); 
Ok, thanks, dude!
__________________
Rabb1t is offline
Reply


Thread Tools
Display Modes

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 02:24.


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