public StartPage(RenderTaskerHandler drawer) { this.drawer = drawer; drawer.targetForm.KeyDown += _EkeyDown; drawer.sprite.setBackground("background", new ClickableSprite(D2DSprite.makeBitmapBrush(drawer.sprite.renderTarget, "mainScreen.png"), 0, 0, 0)); drawer.font.add("anykey", new FontData("Press Anykey", drawer.font.renderTarget, Color4.White, 460, 500, 60)); }
public MusicSelect(RenderTaskerHandler drawer) { D2DSprite.resetData(); D2DFont.resetData(); this.drawer = drawer; drawer.sprite.setBackground("background", new SpriteData(D2DSprite.makeBitmapBrush(drawer.sprite.renderTarget, "musicSelect.png"), 0, 0)); drawer.sprite.addButton("2musiccard1", new ClickableSprite(D2DSprite.makeBitmapBrush(drawer.sprite.renderTarget, "music-1.png"), 70, 120, 0)); D2DSprite._LClickableSprite["2musiccard1"].OnMouseClick += _EmusicCard1Selected; /*((ClickableSprite)data).OnMouseClick += (Object sender, EventArgs e) => * { * Console.WriteLine("{0} 클릭됨.", tag); * };*/ }
public ResultScreen(RenderTaskerHandler drawer, string musicName, ScoreData data) { if (PublicDataManager.deviceCreated) { drawer.targetForm.KeyDown += _EkeyDown; D2DFont.resetData(); D2DSprite.resetData(); this.drawer = drawer; this.data = data; this.musicName = musicName; initialize(); } }
public Game(RenderTaskerHandler drawer, string musicName) { D2DSprite.resetData(); D2DSprite.resetData(); if (drawer.targetForm.Created) { this.musicName = musicName; this.drawer = drawer; noteManager = new NoteManager(musicName); totalNote = noteManager.noteCount; initialize(); } else { throw new Exception(); } }