AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Menu numbering (https://forums.alliedmods.net/showthread.php?t=294544)

Hydro1476 03-01-2017 14:46

Menu numbering
 
Is there a way to create a menu of selectable items without numbering them?

Fyren 03-01-2017 15:37

Re: Menu numbering
 
SM automatically numbers selectable items so the user knows which button to press. The 'slot' binds are assumed to be on the number keys. Why don't you want to number them?

You could theoretically write your own menu system using panels, but that would be a giant hassle.

Hydro1476 03-01-2017 19:32

Re: Menu numbering
 
Quote:

Originally Posted by Fyren (Post 2499855)
Why don't you want to number them?

Because i have a player ranking and the numbers irritate.

KennYSwe 03-01-2017 19:38

Re: Menu numbering
 
Make a panel and use ITEMDTAW_RAWLINE.

Hydro1476 03-01-2017 19:49

Re: Menu numbering
 
Quote:

Originally Posted by KennYSwe (Post 2499919)
Make a panel and use ITEMDTAW_RAWLINE.

Then I can not select the items.
I want them to be selectable. For example when a player presses 1, he gets a new menu with information about the player he select

Powerlord 03-01-2017 21:14

Re: Menu numbering
 
Quote:

Originally Posted by Hydro1476 (Post 2499925)
Then I can not select the items.
I want them to be selectable. For example when a player presses 1, he gets a new menu with information about the player he select

How would they know to press 1?

Hydro1476 03-01-2017 21:58

Re: Menu numbering
 
Quote:

Originally Posted by Powerlord (Post 2499936)
How would they know to press 1?

I thought most players know that they have to press 1,2,3,4 and so on in a menu. :)
But when i think about maybe new players donīt know.

Howerver it still sucks if i open the menu and the second site of the menu looks like this

http://i.epvpimg.com/Pb8Fdab.png

KennYSwe 03-02-2017 06:16

Re: Menu numbering
 
Quote:

Originally Posted by Hydro1476 (Post 2499925)
Then I can not select the items.
I want them to be selectable. For example when a player presses 1, he gets a new menu with information about the player he select

If you set panel buttons you can. I'll give you an example later.:wink:

h3bus 03-02-2017 07:44

Re: Menu numbering
 
With a panel you can do almost what you want to, however it will be mich harder to setup and use. Also if you need pagination, you'll have to handle it yourself.

I have an API that does this but it's not really meant to be shared (not commented, shitty code and such)

ofir753 03-02-2017 07:56

Re: Menu numbering
 
Quote:

Originally Posted by Hydro1476 (Post 2499939)
I thought most players know that they have to press 1,2,3,4 and so on in a menu. :)
But when i think about maybe new players donīt know.

Howerver it still sucks if i open the menu and the second site of the menu looks like this

http://i.epvpimg.com/Pb8Fdab.png

Instead of | 7, use #7 it will be much more clear to the players


All times are GMT -4. The time now is 13:00.

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