Exemplo n.º 1
0
        public void Setup(TaikoGameBase game)
        {
            this.game = game;

            m_childContainer     = new Container(this);
            Contain(TextureStore = new TextureStore(game.GraphicsDevice, Taikoshin.Resources.Textures.ResourceManager));
        }
Exemplo n.º 2
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            foreach (ILoadable child in Children)
            {
                child.Load(game, screen, parent);
            }

            base.Load(game, screen, parent);
        }
Exemplo n.º 3
0
        public void Load(TaikoGameBase game, Screen _screen, IDrawable parent)
        {
            m_parent = parent;

            foreach (Screen screen in ScreenStack)
            {
                screen.Load(game, screen, parent);
            }

            IsLoaded = true;
        }
Exemplo n.º 4
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            m_childContainer.Load(game, this, this);
            for (int i = 0; i < m_loadableResources.Count; i++)
            {
                m_loadableResources[i].Load();
            }

            Start();

            base.Load(game, screen, parent);
        }
Exemplo n.º 5
0
        public virtual void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            this.game   = game;
            this.screen = screen;
            this.parent = parent;

            if (MaximumSize.X == -1 && MaximumSize.Y == -1)
            {
                MaximumSize = game.Window.ClientBounds.Size.ToVector2();
            }

            panelPixel = new Texture2D(game.GraphicsDevice, 1, 1);
            panelPixel.SetData(new Color[] { Color.DarkGray });

            IsLoaded = true;
        }
Exemplo n.º 6
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            if (m_hitObjectType == NoteType.Don)
            {
                game.InputManager.OnDon += OnClick;
            }
            else if (m_hitObjectType == NoteType.Katsu)
            {
                game.InputManager.OnKatsu += OnClick;
            }
            else
            {
                throw new ArgumentException();
            }

            base.Load(game, screen, parent);
        }
Exemplo n.º 7
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            AddAt(0, new Sprite(screen.TextureStore, "Circle")
            {
                Offset        = new Vector2(100, 25),
                MinimumSize   = new Vector2(100, 100),
                Size          = DrawingSize.XMin,
                ScalingMethod = ScalingMethod.KeepRatio,
            });

            Add(nextObjectPointer = new Sprite(screen.TextureStore, "Duck")
            {
                MinimumSize   = new Vector2(10, 10),
                Size          = DrawingSize.XMin,
                ScalingMethod = ScalingMethod.KeepRatio,
            });

            base.Load(game, screen, parent);
        }
Exemplo n.º 8
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            Contain(track.Value = new Track("Honesty.mp3"));

            Bass.GlobalStreamVolume = 1000;

            Add(hitObjectContainer = new HitObjectContainer(this, TextureStore)
            {
                MinimumSize   = new Vector2(-1, 150),
                Size          = DrawingSize.XMax | DrawingSize.YMin,
                ScalingMethod = ScalingMethod.DontKeepRatio,
                Offset        = new Vector2(100, 100),
                DebugObject   = true,
            });

            hitObjectContainer.Track.BindDataFrom(track);

            int offset = 269;

            hitObjectContainer.AddNoteRange(new Note[]
            {
                new Note(5343 + offset, NoteType.Don),
                new Note(5424 + offset, NoteType.Don),
                new Note(5505 + offset, NoteType.Don),
                new Note(5829 + offset, NoteType.Katsu),
                new Note(6153 + offset, NoteType.Don),
                new Note(6477 + offset, NoteType.Don),
                new Note(6801 + offset, NoteType.Don),
                new Note(7126 + offset, NoteType.Katsu),
                new Note(7612 + offset, NoteType.Don),
                new Note(7937 + offset, NoteType.Don),
                new Note(8423 + offset, NoteType.Don),
            });

            Add(positionText = new Text(Fonts.MenuFont, "0"));

            base.Load(game, screen, parent);
        }
Exemplo n.º 9
0
        public override void Load(TaikoGameBase game, Screen screen, IDrawable parent)
        {
            texture = m_fontStore[m_textureName];

            base.Load(game, screen, parent);
        }
Exemplo n.º 10
0
 public ScreenManager(TaikoGameBase game)
 {
     m_game = game;
 }