Forum

> > CS2D > Scripts > Menu (and)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Menu (and)

1 reply
To the start Previous 1 Next To the start

old Menu (and)

Syph
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
- menu(id,"title,b1,b2,...,b9")	Open a menu on the screen of a certain player (id=player id)
				or at the screen of every player (id=0)!
				title = title of the menu
				b1-b9 = button captions,
				use empty strings ("") for buttons you don't need! Attach @b at the
				end of title for a bigger menu or @i for an invisible menu
				Put ( and ) around a button caption to create a disabled button
				Put a | followed by a short text behind a button caption to add
				an additional description to a button
				Note that the title and all buttons are in one single string
				parameter with "," as separator!
"Put ( and ) around a button caption to create a disabled button"
How do i use that , Can you give an example ?

old Re: Menu (and)

Apache uwu
User Off Offline

Quote
Example.

1
menu(1,"My Title,Enabled Button,Enabled Button|With Side Text,(Disabled Button),(Disabled Button)|With Side Text")

Displays:

     My Title
     Enabled Button
     Enabled Button With Side Text
     [Disabled Button]
     [Disabled Button With Side Text]

Oh, edit:

If you disable a button--make sure that you have an additional check, pressing the slot keys will still "simulate" a click.
edited 1×, last 25.10.11 06:23:01 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview