Skip to content

menu Reforge Mode

Sub-commandMenuNew in ReforgedMENU 1.5 and 1.6
menu Reforge Mode {1.5|1.6}

Also searchable as: menu Reforge Mode · menu mode · menu version · 1.6 menu

menu Reforge Mode chooses the MENU system a script runs under: 1.5, the one whose source was published, or 1.6, the later one with windows, panels and properties. Without it, Reforged picks one by looking for the sub-commands only 1.6 has.

Parameter Meaning
1.5 or 1.6 The MENU system for this run.
  • Read before the script runs. Reforged reads it from the script’s text when the script starts, so it can go anywhere; the top is the clearest place. When the line runs, it does nothing.
  • Written out. The value must be 1.5 or 1.6 as such: a variable (menu Reforge Mode %m) cannot be read before the run and is ignored, as is any other value. The first line with a valid value counts.
  • Main script only. In a file pulled in with call it has no effect; called files always run under the main script’s choice.
  • Portable. EasyUO 1.5 and 1.6 ignore the line, so a script that has it still runs there.

The editor’s status bar shows MENU 1.6 (forced) or MENU 1.5 (forced) while a script chosen this way runs.

menu Reforge Mode 1.6
set %make Form
set %change SetProp
menu %make main 300 200 260 50 Chosen by menu Reforge Mode
menu Text t 10 10 Form and SetProp come from variables.
menu %change main visible #true
halt

menu Reforge Mode is new in EasyUO Reforged, which runs both MENU systems.

See also