Raised This Month: $ Target: $400
 0% 

Menu question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-29-2013 , 06:28   Menu question
Reply With Quote #1

Is it possible to make a back menu item instead exit? I mean like the one you have when you create more then 7 items in the menu, but only with 2 items... I mean:

You create a menu f.e.:
Code:
Rifle:
1. M4A1
2. AK47.
Then after clicking yes, you get another menu:
Code:
Pistol:
1. Deagle.
2. Usp.





0. Back
If you click back, you get back to the first menu. And I want that Back item instead of Exit, by default, which is set with menu_setprop.
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-29-2013 , 07:08   Re: Menu question
Reply With Quote #2

Yes, just detect when a user has selected that option and then redisplay the previous menu to them
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-29-2013 , 09:17   Re: Menu question
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Yes, just detect when a user has selected that option and then redisplay the previous menu to them
I know, I am doing like this, but still... User clicks "Exit" and then boom previous menu

Last edited by Unkolix; 03-29-2013 at 09:18.
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-29-2013 , 09:20   Re: Menu question
Reply With Quote #4

Read your initial post wrong, use the following mprop setting to change the name of it

PHP Code:
#define MPROP_EXITNAME    4        /* Name of the exit button (param1 = string) */ 
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-29-2013 , 10:05   Re: Menu question
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Read your initial post wrong, use the following mprop setting to change the name of it

PHP Code:
#define MPROP_EXITNAME    4        /* Name of the exit button (param1 = string) */ 
Won't it change all the Exits? If I want only specified?

Never mind, found this:
Quote:
Originally Posted by wrecked_ View Post
@vL

Code:
menu_setprop( menuindex, MPROP_NEXTNAME, "ForwardButton" ) menu_setprop( menuindex, MPROP_EXITNAME, "ExitName" ) // ...
Just one more question, is it possible to make that name multilingual?

Like this:
PHP Code:
menu_setpropmenuMPROP_EXITNAME"%L"id"MENU_EXIT_NAME" )
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
Or liek this?
PHP Code:
new menu_exit_name[64];
format(menu_exit_name64"%L"id"MENU_EXIT_NAME")
menu_setpropmenuMPROP_EXITNAMEmenu_exit_name )
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
And I am not sure what index to use? menu or id?

Last edited by Unkolix; 03-29-2013 at 10:09.
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-29-2013 , 10:12   Re: Menu question
Reply With Quote #6

Quote:
Originally Posted by Unkolix View Post
Just one more question, is it possible to make that name multilingual?
Quote:
Or liek this?
PHP Code:
new menu_exit_name[64];
format(menu_exit_name64"%L"id"MENU_EXIT_NAME")
menu_setpropmenuMPROP_EXITNAMEmenu_exit_name )
menu_setprop(menuMPROP_EXITMEXIT_ALL); 



Quote:
And I am not sure what index to use? menu or id?
id is always the player index
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 03-29-2013 at 10:12.
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-29-2013 , 10:38   Re: Menu question
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
id is always the player index
Ok, thanks, that works.
Unkolix 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 08:07.


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