AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu (https://forums.alliedmods.net/showthread.php?t=156729)

ProIcons 05-11-2011 06:20

Menu
 
is it possible to Change The Title of a Menu without destroying it? and also is it possible this on menu title:
bla ^n^r bla ^n^r bla
?

SonicSonedit 05-11-2011 08:04

Re: Menu
 
ProIcons
Quote:

is it possible to Change The Title of a Menu without destroying it?
Only with New AMXX Menu System

Quote:

is it possible this on menu title:
bla ^n^r bla ^n^r bla
Yes.


fysiks 05-11-2011 22:22

Re: Menu
 
You could do it with the original menu style if you have some sort of detectable delineation between the menu title and menu body. However, it would require a little more work especially if you needed to make the title longer.

ProIcons 05-12-2011 04:58

Re: Menu
 
The title will be:
Quote:

Gather Started
Players: (%d/%d)
Admin: (%s)
Map: (%s)
, But i thought that i could do this info with items, then to add a null item and after that my real items... i don't know..

SonicSonedit 05-12-2011 08:53

Re: Menu
 
ProIcons
Explain what exactly do you want, please.

ProIcons 05-13-2011 05:17

Re: Menu
 
a Global Socket Interacting with Every player's menu,

The socket will get some data every second, so i want the title of the menu to change every time with the new data...


But i also thought that i can just leave the title "Gather Started"
and create 3 Items that the socket could change... 3 unselectable items, after that a null item and after that User's Choises...


The thing is that i don't know which way would be better :/

Hunter-Digital 05-13-2011 05:24

Re: Menu
 
If you're making the menu, you can change the title where you're creating it...

In your socket just store the title inside a globla variable and whenever the menu is shown, use that variable as the title.

I don't know about new menu system but it's easy enough with "old" menu system.

SonicSonedit 05-13-2011 12:06

Re: Menu
 
ProIcons
Quote:

Originally Posted by ProIcons
The socket will get some data every second, so i want the title of the menu to change every time with the new data...

You can't change menu title, if it was already displayed to player. You can re-show menu though. But I doubt player will like this sort of "lagging" menu.


Hunter-Digital
Quote:

Originally Posted by Hunter-Digital
I don't know about new menu system but it's easy enough with "old" menu system.

Pretty much same.


All times are GMT -4. The time now is 04:29.

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