menu Reforge IncludeCall
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.
Parameters
Section titled “Parameters”| 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. |
Description
Section titled “Description”- Which files. Every
callline with a file name written out, found the waycallfinds 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. Usemenu Reforge Mode 1.6for those scripts. menu Reforge Modewins. 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.
Example
Section titled “Example”Save this as menulib.txt in the folder EasyUO Reforged is in:
menu Form lib 300 200 260 50 Built by menulib.txtmenu Text t 10 10 This window comes from the called file.menu SetProp lib visible #trueexitThen run this script. Without its first line it would run under the 1.5 MENU and show nothing.
menu Reforge IncludeCall #truecall menulib.txt ; uses menu Form: the script runs under the 1.6 MENUhaltReforged notes
Section titled “Reforged notes”menu Reforge IncludeCall is new in EasyUO Reforged, which runs both MENU systems.