private void Init() { NativeMenuManager = new NativeMenuManager(); MainMenu = new NativeMenu("Grand Theft Space", $"VERSION {CoreScript.VersionNum}", MenuBannerType.SmuglersHangar); MainMenu.Init(); NativeMenuManager.AddMenu(MainMenu); LevelSelectionMenu = new LevelSelectionMenu(this); LevelSelectionMenu.AddToMenu(MainMenu, NativeMenuManager); }
private Dictionary <Entity, NativeMenu> entityEditMenus; // The menus that are bound to entities. public SpaceLevelEditor(MenuManager menuManager) { entityEditMenus = new Dictionary <Entity, NativeMenu>(); MainMenu = new NativeMenu("Level Editor", "MAIN MENU", menuManager.MainMenu.BannerType) { AcceleratedScrolling = true, MaxDrawableItems = 10, }; MainMenu.Init(); menuManager.NativeMenuManager.AddMenu(MainMenu); MenuManager = menuManager; CameraManager = new SpaceLevelEditorCameraManager(); }