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

Solved Adding Back button to new menu system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-04-2019 , 10:44   Adding Back button to new menu system
Reply With Quote #1

Is there a way to add back button to new menus? Aside from the manual menu_additem way?
__________________

Last edited by edon1337; 08-06-2019 at 08:57.
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-04-2019 , 13:12   Re: Adding Back button to new menu system
Reply With Quote #2

I'm not sure if I understood correctly but the back menu is added by default.
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-04-2019 , 14:38   Re: Adding Back button to new menu system
Reply With Quote #3

Basically I want to add a back button just before the 'Exit' button that re-opens the latest menu. I tried menu_setprop but it didn't work, there's only 'Exit' button in my menu currently.

EDIT: Now I understand why you said it's added by default, I'm not talking about the default 'Back' button that switches pages within a menu.
__________________

Last edited by edon1337; 08-04-2019 at 14:39.
edon1337 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-04-2019 , 15:58   Re: Adding Back button to new menu system
Reply With Quote #4

Probably you want back button if your menu items arent > 7 ?
solution: just rename Exit?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-04-2019 , 16:04   Re: Adding Back button to new menu system
Reply With Quote #5

Quote:
Originally Posted by JocAnis View Post
Probably you want back button if your menu items arent > 7 ?
solution: just rename Exit?
Just want a back button under Exit, I still want exit to be there..
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-04-2019 , 16:32   Re: Adding Back button to new menu system
Reply With Quote #6

There's no native that you can use that automatically opens the previous menu if you don't create it manually.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-04-2019 , 16:53   Re: Adding Back button to new menu system
Reply With Quote #7

Maybe try with menu_addblanks, and make last item as Back ? or mb something with MPROP_PERPAGE
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-04-2019 , 17:09   Re: Adding Back button to new menu system
Reply With Quote #8

Quote:
Originally Posted by EFFx View Post
There's no native that you can use that automatically opens the previous menu if you don't create it manually.
The issue is adding the back button not opening the previous menu.

Quote:
Originally Posted by JocAnis View Post
Maybe try with menu_addblanks, and make last item as Back ? or mb something with MPROP_PERPAGE
I completely forgot about menu_addblanks, I might do something with that, I'll see. Thanks.
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-04-2019 , 17:30   Re: Adding Back button to new menu system
Reply With Quote #9

There is a way to add exit with a back button but you need to hold a use key or any key command start with +
To exit or return to the old menu depends on your menu order

For example

PHP Code:
menu_setprop(menuidMPROP_EXIT_NAME"RETURN ^n/
\rE0. \wExit"
)

public 
menuhandle(idmenu item)
{
        if(
item == MENU_EXIT &&  get_user_button(id) & IN_USE// EXITING THE MENU
        
else if(item == MENU_EXIT// Return old menu 
You probably need to check if user is still holding the key also
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-04-2019 at 17:38.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-05-2019 , 04:05   Re: Adding Back button to new menu system
Reply With Quote #10

Quote:
Originally Posted by edon1337 View Post
The issue is adding the back button not opening the previous menu.
Jesus Christ...
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx 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 09:15.


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