AlliedModders

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

Bloodlvst 12-11-2007 13:26

Settings Menu
 
As some of you know, I'm working on a client settings menu, and I feel like I'm almost ready to start testing the code. However just a question:

For a type of menu like this would you recommend using a menu or a panel? And if it's a panel, is it possible to paginate a panel as well or only a menu? Thanks!

KMFrog 12-11-2007 13:49

Re: Settings Menu
 
I thought menus were panels >_>

Bloodlvst 12-11-2007 13:50

Re: Settings Menu
 
Yes and no. Apparently there's differences according to the Menu API documentation.

KMFrog 12-11-2007 13:56

Re: Settings Menu
 
the only difference is the menu API is higher level..
it gives you stuff like auto-pagination... etc... but the menu API uses the panel API to do its work.

you can still use the panel API direct to create your own menus with, say, custom text at the top of the menu or in the body.. which you cannot do with the menu API

TFN|Nick 12-12-2007 05:06

Re: Settings Menu
 
I don't think it'll matter much to the average gamer unless they can't find what they want... maybe take a page out of the sm_admin menu and create as a top menu as opposed to normal menu.

That way developers can hook onto it... say someone wants deathbeam on the menu; the plugin developer can just use the same method and intergrate the plugin in. Easier for everyone i'd think??

BAILOPAN 12-12-2007 09:13

Re: Settings Menu
 
There is an open feature request for this in SourceMod; I think it's planned for 1.1.

Bloodlvst 12-12-2007 09:42

Re: Settings Menu
 
Yeah I was just curious into what way is better.

This is just something I want to do to fill the gap and allow servers to have one menu (like Mani did) for settings, instead of 5 different public commands. But Nick, thanks for the input, I'll look into trying to make it work that way.

BAILOPAN 12-12-2007 10:23

Re: Settings Menu
 
If your menu will have pagination you should always use menus. Panels are only intended for arbitrary drawing (for example, displaying statistics or information that doesn't need feedback). Menus are guaranteed to give clients a consistent and uniform design.


All times are GMT -4. The time now is 14:55.

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