Raised This Month: $ Target: $400
 0% 

Differens between menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 10-18-2008 , 07:19   Differens between menus
Reply With Quote #1

What's the differens between the old menu style and the new one? +/-

Old:
Code:
register_menuid("mymenu");
register_menucmd(menuid, keys, "description");
show_menu(id, keys, menu, -1, "title");
New:
Code:
menu_create("mymenu", "function");
menu_additem(menu, "item", "info");
menu_display(id, menu);
LaineN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2008 , 09:23   Re: Differens between menus
Reply With Quote #2

new one sucks.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-18-2008 , 09:40   Re: Differens between menus
Reply With Quote #3

Quote:
Originally Posted by connorr View Post
new one sucks.
__________________

anakin_cstrike is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 10-18-2008 , 09:53   Re: Differens between menus
Reply With Quote #4

Quote:
Originally Posted by connorr View Post
new one sucks rocks.
[X]-RayCat is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 10-18-2008 , 10:33   Re: Differens between menus
Reply With Quote #5

Yeyeye... What's the differens between them?
LaineN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2008 , 10:52   Re: Differens between menus
Reply With Quote #6

new menus are easier to use.

http://forums.alliedmods.net/showthr...903#post394903
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2008 , 10:55   Re: Differens between menus
Reply With Quote #7

The goal of the new menus is to simplify the things so easier to use. ( which is not that true ) . I think new menus is welcomed for simple menus. But for complex ( dynamic ? ) menus, old menus are better because of more flexible. ( Well all is depending what you want to do, just try yourself and use what you like )
__________________

Last edited by Arkshine; 10-18-2008 at 11:32.
Arkshine is offline
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 10-18-2008 , 11:50   Re: Differens between menus
Reply With Quote #8

Can anyone give an example as to how old menus are better for dynamic menus? I don't see why you can't just menu_destroy() and then create a new one.
Prajch is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-18-2008 , 11:52   Re: Differens between menus
Reply With Quote #9

Quote:
Originally Posted by arkshine View Post
The goal of the new menus is to simplify the things so easier to use. ( which is not that true ) . I think new menus is welcomed for simple menus. But for complex ( dynamic ? ) menus, old menus are better because of more flexible. ( Well all is depending what you want to do, just try yourself and use what you like )
Yea...i saw that at oldstyle menus you can use very easy %s,%i,etc...is that possible at newstyle?
I mean i have this:
1.
PHP Code:
public plugin_cfg()
{
    
g_Nlen menu_create("\rMenu Example","menu_handler");
    
    
menu_additem(g_Nlen,"\wOne","1",0);
    
menu_additem(g_Nlen,"\wTwo,"2",0);
// ...


2.
PHP Code:
new const g_Example[] = "something";
//..
public my_func()
{
    new 
nLen format(szMenuBody,255,"\yExample:^n");
    
nLen += format(szMenuBody[nLen],255-nLen,"^n\w1. %s",g_Example);
    
//...

Is possible to make in example 1 like in 2?
__________________

anakin_cstrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2008 , 12:50   Re: Differens between menus
Reply With Quote #10

Quote:
Originally Posted by anakin_cstrike View Post
Is possible to make in example 1 like in 2?
Yes, use 2.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 07:11.


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