ui.Interface.loadStartMenu

Load the start menu file.

Syntax

ui.Interface.loadStartMenu(
   filename STRING )
  1. filename is the name of a start menu file, without the extension.

Usage

Use the ui.Interface.loadStartMenu() class method to load a .4sm file defining a start menu.

If the interface already contains a start menu, it will be replaced by the new start menu loaded by this method.

Specify the start menu file name without the ".4sm" extension.

The resource file is searched in several directories in a given order, as described in the FGLRESOURCEPATH reference topic.

Example

CALL ui.Interface.loadStartMenu("mystartmenu")