List

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: list register1, string

  • register1 = Register to store selection value
  • string = Text to add to list

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 

Also see

switch_jmp, window_msg, winend, ret