Raised This Month: $ Target: $400
 0% 

Creating a menu of menus (Nested)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cheddar
Member
Join Date: Sep 2015
Old 10-09-2017 , 12:45   Creating a menu of menus (Nested)
Reply With Quote #1

Hi, I'm new to making menus and am having difficulty creating a menu of menus. I'm taking a wack at making a TF2 sandbox plugin (god help me) but have never needed a menu of this complexity. Here's what I need:

Top menu (1): "Select Option"
Option 1... (Spawn item)
Option 2... (Move item)
Option 3... (Delete item)

Next Layer (2): "Select Option"
Option 1... (Chairs)
Option 2... (Tables)
Option 3... (Windows)

Next Layer (3): "Select Option"
Option 1... (Chair 1)
Option 2... (Chair 2)
Option 3... (Chair 3)

I can find lots of examples of simple (1 layer) menus like for a map changer (https://wiki.alliedmods.net/Menu_API_(SourceMod)) but I can't find any that go 3 layers down.

Could someone post a simple example of a triple layer menu?

Last edited by cheddar; 10-09-2017 at 12:48.
cheddar is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-09-2017 , 13:09   Re: Creating a menu of menus (Nested)
Reply With Quote #2

Your menu handler should open another menu if that's what you want to happen. There's no special API for it.
Fyren 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 20:06.


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