Raised This Month: $12 Target: $400
 3% 

Menu Items in-between Menu Title


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fluffys
Member
Join Date: Jun 2015
Old 10-20-2016 , 15:13   Menu Items in-between Menu Title
Reply With Quote #1

I'm not sure if the they're actually using items in-between the menu title, but I was wondering how this is achieved. http://puu.sh/rPgNJ/842fa43736.jpg Where there are menu items in-between normal text, which I would assume is just SetMenuTitle but I could be wrong, thanks.
fluffys is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 10-21-2016 , 00:04   Re: Menu Items in-between Menu Title
Reply With Quote #2

Not sure if I understood what you mean but:

https://sm.alliedmods.net/new-api/menus/__raw

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) */ 
https://sm.alliedmods.net/new-api/menus/AddMenuItem

PHP Code:
AddMenuItem(hMenu"""Test Item"ITEMDRAW_RAWLINE

Last edited by Addicted.; 10-21-2016 at 00:09.
Addicted. is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-21-2016 , 09:04   Re: Menu Items in-between Menu Title
Reply With Quote #3

If the display string for the menu item uses '\n' to break the line, the lines broke under that will all be raw so they won't be highlighted.

Code:
AddMenuItem(menu, "", "test line 1\ntest line 2");
Drixevel 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 21:22.


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