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

AMXX Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 03-22-2012 , 16:46   AMXX Menu
Reply With Quote #1

Hey guys,

There is the AMXX Menu method with menu_additem, menu_create etc...
I have a question about it, is it possible to make like a sub menu within the 1 menu?
For example: I create a menu by using menu_create, lets say its a weapons menu, so the first option says "Hand Guns", if I pick it, it opens a sub menu with all the hand guns.

Now, can I make it with 1 menu variable without having to menu_create again and again?

Thanks, p1Mp.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-22-2012 , 16:59   Re: AMXX Menu
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=46364
__________________
Arkshine is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 03-22-2012 , 17:12   Re: AMXX Menu
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Aight so like I said, I must do menu_create again. Thanks
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-22-2012 , 21:25   Re: AMXX Menu
Reply With Quote #4

Quote:
Originally Posted by Diegorkable View Post
Now, can I make it with 1 menu variable without having to menu_create again and again?
What are you trying to achieve with only having "1 menu variable" (Also, what does "1 menu variable" mean)?
__________________
fysiks is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 03-23-2012 , 05:44   Re: AMXX Menu
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
What are you trying to achieve with only having "1 menu variable" (Also, what does "1 menu variable" mean)?
Meaning, in 1 function I can make a whole menu with sub menus to it.
For example I'll use non-existing functions to implement the idea:

I'll use menu_create to create a menu, and then maybe use menu_addsubmenu to make a sub menu in it, and then for example menu_addsuboption to that menu or whatever, I thought some method like this exists, but yeah I figured out how it works eventually.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-23-2012 , 19:56   Re: AMXX Menu
Reply With Quote #6

Quote:
Originally Posted by Diegorkable View Post
Meaning, in 1 function I can make a whole menu with sub menus to it.
For example I'll use non-existing functions to implement the idea:

I'll use menu_create to create a menu, and then maybe use menu_addsubmenu to make a sub menu in it, and then for example menu_addsuboption to that menu or whatever, I thought some method like this exists, but yeah I figured out how it works eventually.
And what exactly did you figure out? That you can't do it like that?
__________________
fysiks is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 03-23-2012 , 19:59   Re: AMXX Menu
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
And what exactly did you figure out? That you can't do it like that?
Yes, that I have to make each "sub-menu" as a new menu, and it will just be redirected to it from the pervious handler (according to the user's pick).
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive

Last edited by Diegorkable; 03-23-2012 at 20:00.
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-23-2012 , 20:03   Re: AMXX Menu
Reply With Quote #8

Quote:
Originally Posted by Diegorkable View Post
Yes, that I have to make each "sub-menu" as a new menu, and it will just be redirected to it from the pervious handler (according to the user's pick).
Ok, I was sure that was the case but your suggested functions sure do sound like a interesting "next step" for a menu API.
__________________
fysiks 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 21:48.


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