Difference between revisions of "List"
From Unofficial QEdit Wiki Guide
LunarFuror (Talk | contribs) (→Syntax) |
|||
Line 3: | Line 3: | ||
* register1 = Register to store selection value | * register1 = Register to store selection value | ||
− | * string = | + | * string = Message to display |
+ | * See list of [[Special characters]] | ||
==Use== | ==Use== |
Latest revision as of 14:04, 9 April 2021
Contents
Syntax
Syntax: list register1, string
- register1 = Register to store selection value
- string = Message to display
- See list of Special characters
Use
Used to display a list of items and set the selection value to the specified register.
Example
100: list R1, 'Monkey<cr>Magic' //add 2 items to a list 0:Monkey, 1:Magic
switch_jmp R1, 2:101:102 //jump to function depending on selection
101: window_msg 'You selected "Monkey".'
winend
ret
102: window_msg 'You selected "Magic".'
winend
ret