public ImageResourceBase Create(PPDDevice device, Stream stream, bool pa) { return(new ImageResource(device, stream, pa)); }
public MaskScene(TestSceneManager testSceneManager, PPDDevice device) : base(testSceneManager, device) { }
public MovieManager(PPDDevice device, IGameHost gameHost) { this.device = device; this.gameHost = gameHost; }
/// <summary> /// コンストラクタです /// </summary> /// <param name="device"></param> /// <param name="color"></param> public ColorTextureResource(PPDDevice device, Color4 color) { this.color = color; texture = device.GetModule <ColorTextureAllcator>().CreateTexture(color); }
public ModInfoComponentBase(PPDDevice device, PPDFramework.Mod.ModInfoBase modInfo) : base(device) { ModInfoBase = modInfo; }
public ScissorScene(TestSceneManager testSceneManager, PPDDevice device) : base(testSceneManager, device) { }
public HomeScene(PPDDevice device) : base(device) { }
public IPSelectScene(PPDDevice device) : base(device) { }
public FilterControl(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, SongSelectFilter filter) : base(device) { this.sound = sound; this.filter = filter; selection = new GridSelection(); PictureObject back; var mainSprite = new SpriteObject(device); mainSprite.AddChild(new TextureString(device, Utility.Language["SortField"], 22, PPDColors.White) { Position = new Vector2(50, 80) }); var sortFieldSprite = new SpriteObject(device); this.AddChild(sortFieldSprite); sortFieldSprite.AddChild(nameRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["Name"]) { Position = new Vector2(80, 120), Selected = true }); nameRadio.Update(); sortFieldSprite.AddChild(timeRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["Time"]) { Position = new Vector2(nameRadio.Position.X + nameRadio.Width + Margin, 120) }); timeRadio.Update(); sortFieldSprite.AddChild(updateDateRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["UpdateDate"]) { Position = new Vector2(timeRadio.Position.X + timeRadio.Width + Margin, 120) }); updateDateRadio.Update(); sortFieldSprite.AddChild(bpmRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["BPM"]) { Position = new Vector2(updateDateRadio.Position.X + updateDateRadio.Width + Margin, 120) }); bpmRadio.Update(); sortFieldSprite.AddChild(authorRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["Author"]) { Position = new Vector2(bpmRadio.Position.X + bpmRadio.Width + Margin, 120) }); mainSprite.AddChild(new TextureString(device, Utility.Language["SortOrder"], 22, PPDColors.White) { Position = new Vector2(50, 160) }); var sortOrderSprite = new SpriteObject(device); this.AddChild(sortOrderSprite); sortOrderSprite.AddChild(ascRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["Ascendant"]) { Position = new Vector2(80, 200) }); nameRadio.Update(); sortOrderSprite.AddChild(descRadio = new RadioBoxComponent(device, resourceManager, Utility.Path, Utility.Language["Descendant"]) { Position = new Vector2(ascRadio.Position.X + ascRadio.Width + Margin, 200) }); mainSprite.AddChild(new TextureString(device, Utility.Language["Type"], 22, PPDColors.White) { Position = new Vector2(50, 240) }); mainSprite.AddChild(easyCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, "EASY") { Position = new Vector2(80, 280) }); easyCheck.Update(); mainSprite.AddChild(normalCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, "NORMAL") { Position = new Vector2(easyCheck.Position.X + easyCheck.Width + Margin, 280) }); normalCheck.Update(); mainSprite.AddChild(hardCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, "HARD") { Position = new Vector2(normalCheck.Position.X + normalCheck.Width + Margin, 280) }); hardCheck.Update(); mainSprite.AddChild(extremeCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, "EXTREME") { Position = new Vector2(hardCheck.Position.X + hardCheck.Width + Margin, 280) }); mainSprite.AddChild(normalScoreCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, Utility.Language["NormalScore"]) { Position = new Vector2(80, 320) }); normalScoreCheck.Update(); mainSprite.AddChild(acScoreCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, Utility.Language["ACScore"]) { Position = new Vector2(normalScoreCheck.Position.X + normalScoreCheck.Width + Margin, 320) }); acScoreCheck.Update(); mainSprite.AddChild(acftScoreCheck = new CheckBoxComponent(device, resourceManager, Utility.Path, Utility.Language["ACFTScore"]) { Position = new Vector2(acScoreCheck.Position.X + acScoreCheck.Width + Margin, 320) }); mainSprite.AddChild(setDefaultButton = new ButtonComponent(device, resourceManager, Utility.Path, Utility.Language["SetDefault"]) { Position = new Vector2(300, 370) }); selectList = new SelectableComponent[] { nameRadio, timeRadio, updateDateRadio, bpmRadio, authorRadio, ascRadio, descRadio, easyCheck, normalCheck, hardCheck, extremeCheck, normalScoreCheck, acScoreCheck, acftScoreCheck, setDefaultButton }; foreach (SelectableComponent comp in selectList) { selection.Add(comp.Position); } this.AddChild(mainSprite); this.AddChild(back = new PictureObject(device, resourceManager, Utility.Path.Combine("dialog_back.png"))); this.AddChild(new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.65f }); back.AddChild(new TextureString(device, Utility.Language["Filter"], 30, PPDColors.White) { Position = new Vector2(35, 30) }); Inputed += FilterControl_Inputed; GotFocused += FilterControl_GotFocused; LostFocused += FilterControl_LostFocused; }
public LifeGage(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager) : base(device) { this.resourceManager = resourceManager; black = new PictureObject(device, resourceManager, Utility.Path.Combine("lifegage", "black.png")) { Position = new Vector2(0, 2) }; frame = new PictureObject(device, resourceManager, Utility.Path.Combine("lifegage", "frame.png")) { Scale = new SharpDX.Vector2(0.99f, 0.95f) }; this.AddChild(frame); this.AddChild(black); flareSprite = new SpriteObject(device); backSprite = new SpriteObject(device); overraySprite = new SpriteObject(device); onpuSprite = new SpriteObject(device); this.AddChild(flareSprite); this.AddChild(overraySprite); this.AddChild(onpuSprite); this.AddChild(backSprite); for (int i = 0; i < 3; i++) { string content = ""; switch (i) { case 0: content = "danger"; break; case 1: content = "normal"; break; case 2: content = "full"; break; } var flare = new EffectObject(device, resourceManager, Utility.Path.Combine("lifegage", String.Format("{0}{1}", content, "flare.etd"))) { Position = new Vector2(56, 11) }; flare.PlayType = Effect2D.EffectManager.PlayType.ReverseLoop; flare.Play(); flareSprite.AddChild(flare); backSprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("lifegage", String.Format("{0}{1}", content, "back.png"))) { Position = new Vector2(2, 2) }); overraySprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("lifegage", String.Format("{0}{1}", content, "overray.png"))) { Position = new Vector2(2, 2) }); flareSprite[i].Hidden = overraySprite[i].Hidden = backSprite[i].Hidden = true; } flareSprite[(int)state].Hidden = overraySprite[(int)state].Hidden = backSprite[(int)state].Hidden = false; onpus = new List <OnpuObject>(); CurrentLife = 50; InitializeComponentPosition(); }
public ModSettingPanel(PPDDevice device, IGameHost gameHost, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, ModInfo modInfo) : base(device) { this.gameHost = gameHost; this.sound = sound; this.resourceManager = resourceManager; this.modInfo = modInfo; back = new PictureObject(device, resourceManager, Utility.Path.Combine("dialog_back.png")); black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.65f }; back.AddChild(new TextureString(device, String.Format("{0}-{1}", Utility.Language["ModSetting"], modInfo.FileName), 30, PPDColors.White) { Position = new Vector2(35, 30) }); StackObject stackObject; back.AddChild(stackObject = new StackObject(device, new StackObject(device, new SpaceObject(device, 0, 2), new PictureObject(device, resourceManager, Utility.Path.Combine("circle.png"))) { IsHorizontal = false }, new TextureString(device, String.Format(":{0}", Utility.Language["ChangeSetting"]), 18, PPDColors.White)) { IsHorizontal = true }); stackObject.Update(); stackObject.Position = new Vector2(760 - stackObject.Width, 50); settingSprite = new SpriteObject(device) { Position = new Vector2(50, SpriteY) }; settingSprite.AddChild(settingListSprite = new SpriteObject(device) { Clip = new ClipInfo(gameHost) { PositionX = 40, PositionY = ClipY, Width = 750, Height = ClipHeight } }); float height = 0; foreach (ModSetting modSetting in modInfo.Settings) { var component = new ModSettingComponent(device, resourceManager, modSetting, modSetting.GetStringValue(modInfo.ModSettingManager[modSetting.Key])) { Position = new Vector2(0, height) }; component.Update(); settingListSprite.AddChild(component); height += component.Height + 10; } CurrentComponent.IsSelected = true; settingSprite.AddChild(rectangle = new LineRectangleComponent(device, resourceManager, PPDColors.Selection) { RectangleWidth = 700, RectangleHeight = 100 }); this.AddChild(settingSprite); this.AddChild(back); this.AddChild(black); UpdateBorderPosition(true); Inputed += ModSettingPanel_Inputed; }
public PreviewPlayDialog(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound) : base(device) { this.Sound = sound; sprite = new SpriteObject(device); back = new EffectObject(device, resourceManager, Utility.Path.Combine("tweetconfirm.etd")) { Position = new Vector2(400, 225) }; message = new TextureString(device, Utility.Language["PracticeScoreFromSpecificTime"], 16, PPDColors.White) { Position = new Vector2(300, 120) }; message.Position = new Vector2(400 - message.Width / 2, message.Position.Y); songname = new TextureString(device, Utility.Language["Score"], 14, 350, PPDColors.White) { Position = new Vector2(225, 150) }; difficulty = new TextureString(device, Utility.Language["Difficulty"], 14, 350, PPDColors.White) { Position = new Vector2(225, 180) }; startTime = new TextureString(device, Utility.Language["StartTime"], 14, 350, PPDColors.White) { Position = new Vector2(225, 210) }; diffTime = new TextureString(device, Utility.Language["StartMinusTime"], 14, 350, PPDColors.White) { Position = new Vector2(225, 240) }; float x = diffTime.Position.X + diffTime.Width; songnameContent = new TextureString(device, "", 14, 180, PPDColors.White) { Position = new Vector2(x, 150), AllowScroll = true }; difficultyContent = new TextureString(device, "", 14, true, PPDColors.White) { Position = new Vector2(480, 180) }; startTimeContent = new TextureString(device, "", 14, true, PPDColors.White) { Position = new Vector2(480, 210) }; diffTimeContent = new TextureString(device, "0", 14, true, PPDColors.White) { Position = new Vector2(480, 240) }; black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800 }; buttons = new Button[2]; for (int i = 0; i < buttons.Length; i++) { string text = ""; switch (i) { case 0: text = Utility.Language["OK"]; break; case 1: text = Utility.Language["Cancel"]; break; } buttons[i] = new Button(device, resourceManager, Utility.Path, text) { Position = new Vector2(300 + i * 200, 315) }; buttons[i].Selected = false; sprite.AddChild(buttons[i]); } buttons[0].Selected = true; black.Alpha = 0; back.Hidden = true; sprite.Hidden = true; GotFocused += PreviewPlayDialog_GotFocused; LostFocused += PreviewPlayDialog_LostFocused; Inputed += PreviewPlayDialog_Inputed; sprite.AddChild(message); sprite.AddChild(songname); sprite.AddChild(difficulty); sprite.AddChild(startTime); sprite.AddChild(diffTime); sprite.AddChild(songnameContent); sprite.AddChild(difficultyContent); sprite.AddChild(startTimeContent); sprite.AddChild(diffTimeContent); sprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("playrecord", "updown.png"), true) { Position = new Vector2(550, 250) }); this.AddChild(sprite); this.AddChild(back); this.AddChild(black); }
public TweetDialog(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, ITweetManager tweetManager) : base(device) { this.TweetManager = tweetManager; tweetManager.TweetFinished += tweetManager_TweetFinished; this.Sound = sound; back = new EffectObject(device, resourceManager, Utility.Path.Combine("tweetconfirm.etd")) { Position = new Vector2(400, 225) }; message = new TextureString(device, Utility.Language["TweetBlowContent"], 16, true, PPDColors.White) { Position = new Vector2(400, 120) }; processing = new TextureString(device, Utility.Language["Processing"], 16, true, PPDColors.White) { Position = new Vector2(400, 300) }; failedString = new TextureString(device, Utility.Language["TweetFailed"], 16, true, PPDColors.White) { Position = new Vector2(400, 300) }; content = new TextureString(device, "", 14, 340, 150, true, PPDColors.White) { Position = new Vector2(230, 150) }; black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800 }; buttons = new Button[2]; for (int i = 0; i < buttons.Length; i++) { string text = ""; switch (i) { case 0: text = Utility.Language["OK"]; break; case 1: text = Utility.Language["Cancel"]; break; } buttons[i] = new Button(device, resourceManager, Utility.Path, text) { Position = new Vector2(300 + i * 200, 315) }; buttons[i].Selected = false; buttons[i].Hidden = true; this.AddChild(buttons[i]); } buttons[0].Selected = true; black.Alpha = 0; back.Hidden = true; message.Hidden = content.Hidden = processing.Hidden = failedString.Hidden = buttons[0].Hidden = buttons[1].Hidden = true; GotFocused += TweetDialog_GotFocused; LostFocused += TweetDialog_LostFocused; Inputed += TweetDialog_Inputed; this.AddChild(failedString); this.AddChild(processing); this.AddChild(content); this.AddChild(message); this.AddChild(back); this.AddChild(black); }
public SongInfoControl(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager) : base(device) { menuRanking = new MenuRanking(device, resourceManager) { Position = new Vector2(500, 105) }; menuRanking.Hidden = true; this.AddChild(menuRanking); state = State.normal; infoboards = new PictureObject[2]; bestEvaluates = new BestEvaluate[4]; buttonAcs = new PictureObject[4]; buttonFts = new PictureObject[4]; buttonPerfects = new PictureObject[4]; acs = new PictureObject[4]; fts = new PictureObject[4]; perfects = new PictureObject[4]; infoboards[0] = new PictureObject(device, resourceManager, Utility.Path.Combine("infoboard1.png")) { Position = new Vector2(520, height - 14) }; infoboards[1] = new PictureObject(device, resourceManager, Utility.Path.Combine("infoboard2.png")) { Position = new Vector2(500, 280) }; infoboards[1].Hidden = true; this.AddChild(infoboards[0]); this.AddChild(infoboards[1]); TextureString easy, normal, hard, extreme; infoboards[0].AddChild(new TextureString(device, "BPM", 20, PPDColors.White) { Position = new Vector2(0, 15) }); infoboards[0].AddChild(easy = new TextureString(device, "EASY", 20, PPDColors.White) { Position = new Vector2(0, 45) }); infoboards[0].AddChild(normal = new TextureString(device, "NORMAL", 20, PPDColors.White) { Position = new Vector2(0, 75) }); infoboards[0].AddChild(hard = new TextureString(device, "HARD", 20, PPDColors.White) { Position = new Vector2(0, 105) }); infoboards[0].AddChild(extreme = new TextureString(device, "EXTREME", 20, PPDColors.White) { Position = new Vector2(0, 135) }); infoboards[0].AddChild(new TextureString(device, "S.A.", 20, PPDColors.White) { Position = new Vector2(0, 165) }); foreach (GameComponent gc in infoboards[0].Children) { gc.Position = new Vector2(90 - gc.Width, gc.Position.Y); } for (int i = 0; i < 4; i++) { infoboards[0].InsertChild(acs[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("ac.png")) { Position = new Vector2(0, 35 + 30 * i) }, 0); infoboards[0].InsertChild(fts[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("ft.png")) { Position = new Vector2(0, 35 + 30 * i) }, 0); infoboards[0].InsertChild(perfects[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("perfect.png")) { Position = new Vector2(35, 35 + 30 * i) }, 0); infoboards[0].InsertChild(bestEvaluates[i] = new BestEvaluate(device, resourceManager) { Position = new Vector2(80, 35 + 30 * i) }, 0); } infos = new TextureString[6]; for (int i = 0; i < 6; i++) { var st = new TextureString(device, "", 20, 150, PPDColors.White) { Position = new Vector2(100, 15 + 30 * i) }; infos[i] = st; infoboards[0].AddChild(st); } focusedbpm = new TextureString(device, "BPM", 12, true, PPDColors.White) { Position = new Vector2(140, 10) }; hiscore = new TextureString(device, "BPM", 12, true, PPDColors.White) { Position = new Vector2(140, 30) }; difficulty = new TextureString(device, "BPM", 12, true, PPDColors.White) { Position = new Vector2(140, 50) }; infoboards[1].AddChild(focusedbpm); infoboards[1].AddChild(hiscore); infoboards[1].AddChild(difficulty); buttons = new Button[4]; for (int i = 0; i < buttons.Length; i++) { string text = ""; switch (i) { case 0: text = "EASY"; break; case 1: text = "NORMAL"; break; case 2: text = "HARD"; break; case 3: text = "EXTREME"; break; } infoboards[1].AddChild(buttonAcs[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("ac.png")) { Position = new Vector2(85 * i - 40, 75) }); infoboards[1].AddChild(buttonFts[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("ft.png")) { Position = new Vector2(85 * i - 40, 75) }); infoboards[1].AddChild(buttonPerfects[i] = new PictureObject(device, resourceManager, Utility.Path.Combine("perfect.png")) { Position = new Vector2(85 * i - 40 + 30, 75) }); buttons[i] = new Button(device, resourceManager, Utility.Path, text) { Position = new Vector2(85 * i, 100) }; infoboards[1].AddChild(buttons[i]); } GotFocused += SongInfoControl_GotFocused; LostFocused += SongInfoControl_LostFocused; }
public ImageResourceBase Create(PPDDevice device, string filename, bool pa) { return(new ImageResource(device, filename, pa)); }
public VertexBuffer(PPDDevice device, SharpDX.Direct3D9.VertexBuffer vertexBuffer, int sizeInBytes) : base(device, sizeInBytes) { _VertexBuffer = vertexBuffer; }
/// <summary> /// コンストラクタです。 /// </summary> /// <param name="device"></param> /// <param name="dir"></param> public SpriteResourceManager(PPDDevice device, string dir) : this(device, new DirSpriteManager(dir)) { }
public GeneralDialog(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, string displayText) : this(device, resourceManager, sound, displayText, ButtonTypes.Ok) { }
public MusicPlayer(PPDDevice device, string filename) : base(device, filename) { }
public GeneralDialog(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, ISound sound, string displayText, ButtonTypes buttons) : base(device, resourceManager, sound, displayText, buttons == ButtonTypes.Ok ? new string[] { "OK" } : (buttons == ButtonTypes.OkCancel ? new string[] { Utility.Language["OK"], Utility.Language["Cancel"] } : new string[] { Utility.Language["Yes"], Utility.Language["No"] })) { }
public PauseMenu(PPDDevice device, PathManager pathManager) : base(device) { this.pathManager = pathManager; }
public FeedPanel(PPDDevice device, IGameHost gameHost, PPDFramework.Resource.ResourceManager resourceManager, ISound sound) : base(device) { this.gameHost = gameHost; this.resourceManager = resourceManager; this.sound = sound; }
public LoadingScene(PPDDevice device) : base(device) { progressQueue = new Queue <int>(); }
public ResultComponent(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, UserResult result, int rank) : base(device) { this.resourceManager = resourceManager; this.AddChild(new TextureString(device, ConvertRank(rank), 14, PPDColors.White) { Position = new SharpDX.Vector2(0, 8) }); this.AddChild(userIcon = new PictureObject(device, resourceManager, PathObject.Absolute(currentUserIconPath)) { Position = new SharpDX.Vector2(50, 0) }); this.AddChild(new TextureString(device, result.User.Name, 12, 85, PPDColors.White) { Position = new SharpDX.Vector2(90, 8) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(240, 4), Alignment = PPDFramework.Alignment.Center, MaxDigit = 7, Value = (uint)result.Result.Score, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(317, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.CoolCount, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(380, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.GoodCount, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(440, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.SafeCount, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(497, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.SadCount, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(557, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.WorstCount, Scale = new SharpDX.Vector2(0.5f, 1) }); this.AddChild(new NumberPictureObject(device, resourceManager, Utility.Path.Combine("numpoint.png")) { Position = new SharpDX.Vector2(645, 4), Alignment = Alignment.Center, MaxDigit = -1, Value = (uint)result.Result.MaxCombo, Scale = new SharpDX.Vector2(0.5f, 1) }); AddBinding(new Binding(result.User, "ImagePath", this, "UserImagePath")); ChangeUserIconScale(); }
public ModPanel(PPDDevice device, IGameHost gameHost, PPDFramework.Resource.ResourceManager resourceManager, ISound sound) : base(device) { this.gameHost = gameHost; this.sound = sound; this.resourceManager = resourceManager; waitSprite = new SpriteObject(device); this.AddChild(waitSprite); waitSprite.AddChild(new TextureString(device, Utility.Language["InitializingMod"], 20, true, PPDColors.White) { Position = new Vector2(400, 220) }); waitSprite.AddChild(new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.65f }); updateSprite = new SpriteObject(device) { Hidden = true }; this.AddChild(updateSprite); updateSprite.AddChild(new TextureString(device, Utility.Language["UpdatingMod"], 20, true, PPDColors.White) { Position = new Vector2(400, 220) }); updateSprite.AddChild(new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.65f }); back = new PictureObject(device, resourceManager, Utility.Path.Combine("dialog_back.png")); black = new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.65f }; back.AddChild(new TextureString(device, Utility.Language["Mod"], 30, PPDColors.White) { Position = new Vector2(35, 30) }); var stackObject = new StackObject(device, updateMenu = new StackObject(device, new StackObject(device, new SpaceObject(device, 0, 2), new PictureObject(device, resourceManager, Utility.Path.Combine("square.png"))) { IsHorizontal = false }, new TextureString(device, String.Format(":{0}", Utility.Language["Update"]), 18, PPDColors.White)) { IsHorizontal = true }, new SpaceObject(device, 20, 0), settingMenu = new StackObject(device, new StackObject(device, new SpaceObject(device, 0, 2), new PictureObject(device, resourceManager, Utility.Path.Combine("delta.png"))) { IsHorizontal = false }, new TextureString(device, String.Format(":{0}", Utility.Language["Setting"]), 18, PPDColors.White)) { IsHorizontal = true }, new SpaceObject(device, 20, 0), new StackObject(device, new SpaceObject(device, 0, 2), new PictureObject(device, resourceManager, Utility.Path.Combine("checkgreen.png"))) { Position = new Vector2(0, 50), IsHorizontal = false }, new TextureString(device, String.Format(":{0}", Utility.Language["ServerRankingSupport"]), 18, PPDColors.White) { Position = new Vector2(35, 50) }) { IsHorizontal = true }; back.AddChild(stackObject); stackObject.Update(); stackObject.Position = new Vector2(760 - stackObject.Width, 50); var sprite = new SpriteObject(device) { Position = new Vector2(50, 80) }; modListSprite = new SpriteObject(device); sprite.AddChild(modListSprite); sprite.AddChild(new TextureString(device, String.Format("{0}:", Utility.Language["Author"]), 20, PPDColors.White) { Position = new Vector2(425, 0) }); sprite.AddChild(author = new TextureString(device, "", 20, PPDColors.White) { Position = new Vector2(450, 30) }); sprite.AddChild(new TextureString(device, String.Format("{0}:", Utility.Language["Version"]), 20, PPDColors.White) { Position = new Vector2(425, 60) }); sprite.AddChild(version = new TextureString(device, "", 20, PPDColors.White) { Position = new Vector2(450, 90) }); sprite.AddChild(new TextureString(device, String.Format("{0}:", Utility.Language["Filename"]), 20, PPDColors.White) { Position = new Vector2(425, 120) }); sprite.AddChild(filename = new TextureString(device, "", 20, 240, PPDColors.White) { Position = new Vector2(450, 150) }); sprite.AddChild(notAvailable = new TextureString(device, Utility.Language["ModWarning"], 20, 280, 280, true, PPDColors.Red) { Position = new Vector2(425, 180), Hidden = true }); this.AddChild(scrollBar = new RectangleComponent(device, resourceManager, PPDColors.White) { Position = new Vector2(456, 80), RectangleHeight = 330, RectangleWidth = 5 }); this.AddChild(new RectangleComponent(device, resourceManager, PPDColors.White) { Position = new Vector2(465, 80), RectangleHeight = 330, RectangleWidth = 1 }); this.AddChild(sprite); this.AddChild(back); this.AddChild(black); Inputed += ModPanel_Inputed; GotFocused += ModPanel_GotFocused; }
public GameResultComponent(PPDDevice device, IGameHost gameHost, PPDFramework.Resource.ResourceManager resourceManager, ISound sound) : base(device) { this.gameHost = gameHost; this.resourceManager = resourceManager; this.sound = sound; this.AddChild(back = new PictureObject(device, resourceManager, Utility.Path.Combine("dialog_back.png"))); this.AddChild(new RectangleComponent(device, resourceManager, PPDColors.Black) { RectangleHeight = 450, RectangleWidth = 800, Alpha = 0.75f }); back.AddChild(resultSprite = new SpriteObject(device) { Position = new SharpDX.Vector2(50, SpriteY), Clip = new ClipInfo(gameHost) { PositionX = 40, PositionY = SpriteY, Width = 750, Height = ClipHeight } }); back.AddChild(scrollBar = new RectangleComponent(device, resourceManager, PPDColors.White) { Position = new Vector2(755, SpriteY), RectangleHeight = ScrollBarHeight, RectangleWidth = 5 }); back.AddChild(new TextureString(device, Utility.Language["Result"], 30, PPDColors.White) { Position = new SharpDX.Vector2(35, 30) }); back.AddChild(new TextureString(device, Utility.Language["Rank"], 14, PPDColors.White) { Position = new SharpDX.Vector2(50, 80) }); back.AddChild(new TextureString(device, Utility.Language["Player"], 14, PPDColors.White) { Position = new SharpDX.Vector2(150, 80) }); back.AddChild(new TextureString(device, Utility.Language["Score"], 14, PPDColors.White) { Position = new SharpDX.Vector2(270, 80) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "cool.png")) { Position = new SharpDX.Vector2(350, 82), Scale = new SharpDX.Vector2(0.5f) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "good.png")) { Position = new SharpDX.Vector2(410, 82), Scale = new SharpDX.Vector2(0.5f) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "safe.png")) { Position = new SharpDX.Vector2(470, 82), Scale = new SharpDX.Vector2(0.5f) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "sad.png")) { Position = new SharpDX.Vector2(530, 82), Scale = new SharpDX.Vector2(0.5f) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "worst.png")) { Position = new SharpDX.Vector2(580, 82), Scale = new SharpDX.Vector2(0.5f) }); back.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("eva", "combo.png")) { Position = new SharpDX.Vector2(650, 82), Scale = new SharpDX.Vector2(0.5f) }); Inputed += GameResultComponent_Inputed; GotFocused += GameResultComponent_GotFocused; Alpha = 0; }
public NormalExMark(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, MarkImagePathsBase filenames, ExMarkData emd, ButtonType type, float[] eval, float gap, Vector2[] circlepoints, DisplayState dState, NoteType noteType, int sameTimingMarks, KeyValuePair <string, string>[] parameters, PostDrawManager postDrawManager) : base(device, resourceManager, filenames, emd, type, eval, gap, dState, noteType, sameTimingMarks, parameters, postDrawManager) { this.circlePoints = circlepoints; }
public MenuItem(PPDDevice device, string name) : base(device) { this.AddChild(text = new TextureString(device, name, 18, PPDColors.White)); Name = name; Enabled = true; }