Esempio n. 1
0
 public Screen(Screen parent, ScreenManager manager)
 {
     this.parent = parent;
     this.screenmanager = manager;
     this.ready = true;
     this.transition_time = 0.5f;
 }
Esempio n. 2
0
        public EditorScreen(Editor editor, ScreenManager manager)
            : base(null, manager)
        {
            this.editor = editor;

            menu_screen = new EditorMainMenu(this, manager);
        }
Esempio n. 3
0
 public Instructions(Screen parent, ScreenManager manager)
     : base(parent, manager)
 {
     logo = Resources.instructions_texture_region;
     transition_time = 3;
     background = 1;
 }
Esempio n. 4
0
        public GameScreen(Hyades game, ScreenManager manager)
            : base(null, manager)
        {
            this.game = game;

            //title_screen = new Title(this, manager);
            menu_screen = new MainMenu(this, manager);
        }
Esempio n. 5
0
        protected override void LoadContent()
        {
            Resources.Load(content);

            input = new MultiInputDevice(PlayerIndex.One);
            //input = new GamePadDevice(PlayerIndex.One);

            game = new Hyades(input);
            screenmanager = new ScreenManager(input);
            gamescreen = new GameScreen(game, screenmanager);
            screenmanager.FadeIn(gamescreen);
            Title logo = new Title(gamescreen, screenmanager);
            screenmanager.FadeIn(logo);
            /*

            editor = new Editor(input);
            screenmanager = new ScreenManager(input);
            editorscreen = new EditorScreen(editor, screenmanager);
            screenmanager.FadeIn(editorscreen);
            */
        }
Esempio n. 6
0
 public ScreenManager(InputDevice input)
 {
     this.screen_list = new List<Screen>();
     this.input = input;
     instance = this;
 }
Esempio n. 7
0
 public Title(Screen parent, ScreenManager manager)
     : base(parent, manager)
 {
     logo = Resources.logo_texture_region;
     transition_time = 3;
     background = 1;
 }
Esempio n. 8
0
 public ScreenManager(InputDevice input)
 {
     this.screen_list = new List <Screen>();
     this.input       = input;
     instance         = this;
 }