Skip to content

menu Reforge IncludeCall

Sub-commandMenuNew in ReforgedMENU 1.5 and 1.6
menu Reforge IncludeCall {#true|#false}

Also searchable as: menu Reforge IncludeCall · include call · called files

When a script starts, Reforged picks its MENU system by reading the script for the sub-commands only EasyUO 1.6 has. By default it reads only the main script. With menu Reforge IncludeCall #true it also reads the files the script pulls in with call, and the files those call.

Parameter Meaning
#true Read the called files too. true, 1 and -1 mean the same.
#false Read only the main script, the default. false and 0 mean the same.
  • Which files. Every call line with a file name written out, found the way call finds it: a name without a folder is looked for in EasyUO Reforged’s own folder, and .txt, then .euo, is added when the name as given does not exist. Each file is read once, so files calling each other are fine.
  • Not seen. A file name taken from a variable (call %lib) or built with , is only known when the line runs, so that file is not read. Neither is a file that does not exist when the script starts. Use menu Reforge Mode 1.6 for those scripts.
  • menu Reforge Mode wins. When the script sets the mode, nothing is read.
  • Like menu Reforge Mode, it is read from the main script before it runs, needs its value written out, does nothing when the line runs, and is ignored by EasyUO 1.5 and 1.6.

Save this as menulib.txt in the folder EasyUO Reforged is in:

menulib.txt
menu Form lib 300 200 260 50 Built by menulib.txt
menu Text t 10 10 This window comes from the called file.
menu SetProp lib visible #true
exit

Then run this script. Without its first line it would run under the 1.5 MENU and show nothing.

Main script
menu Reforge IncludeCall #true
call menulib.txt ; uses menu Form: the script runs under the 1.6 MENU
halt

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

See also