AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   ITEMDRAW_RAWLINE not worked in CS:GO (Menu) (https://forums.alliedmods.net/showthread.php?t=317959)

Rabb1t 08-06-2019 09:14

ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
 
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?

Peace-Maker 08-06-2019 10:38

Re: ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
 
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"); 


Rabb1t 08-06-2019 12:50

Re: ITEMDRAW_RAWLINE not worked in CS:GO (Menu)
 
Quote:

Originally Posted by Peace-Maker (Post 2662202)
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!


All times are GMT -4. The time now is 17:27.

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