Multiple menus and handlers
Hey, I'm going to create a plugin with 10+ menus, like this:
Menu with actions: *Ban menu *Kick menu *Mute menu *.. *.. *.. *.. Like lets take [ban action menu]: 1. Choose a player to ban. 2. Choose a banreason. 3. Choose a bantime. 4. Accept all settings and ban player. [kick action menu]: 1. Choose a player to kick. 2. Choose a kickreason. 3. Accept all settings and kick player. [mute action menu]: 1. Choose a player to mute. 2. Choose a mutereason. 3. Choose a mutetime. 4. Accept all settings and mute player. Is there another way, instead of making 11 menus & menu handlers ? Instead of having 3 same menu with players listed there should be other way. I would like something like -ActionMenu -PlayerMenu -ReasonMenu -TimeMenu (if needed) -Accept action menu. |
Re: Multiple menus and handlers
Using global variables and logic you can use one menu hook to create many different menus... at least by using classic menu system.
You'll have some problems, like undetected closed menus and stuff... but hey, if you really want one menu handle, you'll have to face it :lol: |
Re: Multiple menus and handlers
Would be very thankful if anyone could give me example or smth useful ;Dp
|
Re: Multiple menus and handlers
|
Re: Multiple menus and handlers
Something like this ?
PHP Code:
|
Re: Multiple menus and handlers
1 Attachment(s)
|
| All times are GMT -4. The time now is 04:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.