void Start() { m_Mode = GameMode.DeskTop; //Debug by default m_MenuManager = GetComponent <Menu.MenuManager>(); m_DM = GetComponent <Desktop.DebugManager>(); m_Debug = false; }
public static void Main() { int pippo = 4; int tizio = 3; int caio = 7; MenuManager menu = new MenuManager(); menu.addMenu(new MenuItem("ADC"), 10); menu.addSubMenu(new MenuItem("CH0:", pippo, true), 11); menu.addSubMenu(new MenuItem("CH1:", tizio, true), 12); menu.addSubMenu(new MenuItem("CH2:", caio, true), 13); menu.addMenu(new MenuItem("PID"), 20); menu.addSubMenu(new MenuItem("CH0:", pippo, true), 21); menu.addMenu(new MenuItem("Output"), 30); menu.addSubMenu(new MenuItem("CH0:", pippo, true), 31); while (true) { menu.display(); } }
/// <summary> /// Initializes a new instance of the <see cref="SticKart"/> class. /// </summary> public SticKart() { this.notificationManager = null; this.gameState = GameState.InMenu; this.TargetElapsedTime = TimeSpan.FromSeconds(SticKart.FrameTime); this.screenDimensions = new Vector2(1360.0f, 768.0f); this.graphics = new GraphicsDeviceManager(this); this.graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft; this.graphics.PreferredBackBufferWidth = (int)this.screenDimensions.X; this.graphics.PreferredBackBufferHeight = (int)this.screenDimensions.Y; Camera2D.Initialize(this.screenDimensions); this.headsUpDisplay = new HeadsUpDisplay(this.screenDimensions); this.Content.RootDirectory = "Content"; this.inputManager = new InputManager(this.screenDimensions, ControlDevice.Kinect, SticKart.DisplayColourStream); this.levelManager = new LevelManager(this.screenDimensions, SticKart.FrameTime); this.levelEditor = new Editor(this.screenDimensions); this.menuManager = new MenuManager(this.screenDimensions); this.menuManager.OnBeginLevelDetected += this.BeginLevel; this.menuManager.OnQuitGameDetected += this.QuitGame; this.menuManager.OnEditLevelSelected += this.EditLevel; this.menuManager.OnEditorSaveSelected += this.SaveCustomLevel; this.menuManager.OnEditorUndoSelected += this.EditorUndo; this.menuManager.OnEditorTypeSelected += this.EditorChangeType; this.menuManager.OnResumeGameDetected += this.UnpauseGame; this.handSprite = new Sprite(); this.graphics.IsFullScreen = true; // TODO: set to true for release }
public void OnLoad() { Hero = ObjectManager.LocalHero; enemyTeam = Hero.GetEnemyTeam(); heroTeam = Hero.Team; Menu = new MenuManager(); Sleeper = new MultiSleeper(); fountain = new Fountain(heroTeam); itemManager = new ItemManager(); abilityUpdater = new AbilityUpdater(); }