AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu columns (https://forums.alliedmods.net/showthread.php?t=220436)

Clauu 07-10-2013 16:58

Menu columns
 
I'm trying to create 3 columns with the classic method 'show_menu', how should i do this without adding hundred of spaces/tabs?
example
PHP Code:

something                something2                  something3
1                            1                               1
2                            2                               2
3                            3                               3 


hleV 07-10-2013 18:04

Re: Menu columns
 
The menu font is not monospace, so you can't format the items the way you want. Not without fucking with spaces a lot, anyway. At least with the new menu system, you can do
Code:
menu_additem(menu, "Column 1\RColumn 2");
but it's only 2 columns, and I'm not sure if it's achievable (and if so, how) with the old menu way.

ConnorMcLeod 07-11-2013 04:16

Re: Menu columns
 
Default menu system supports the same format as 'new' menu system ;)

Clauu 07-11-2013 04:52

Re: Menu columns
 
I tried with spaces/tabs for the mid column but after a number of those chars last options disappeared(10 total, 7remaining) so i'm out of ideas.

fysiks 07-15-2013 18:00

Re: Menu columns
 
You cannot do three columns.


All times are GMT -4. The time now is 06:24.

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