public RankingDialog() { Index = 1330; Library = Libraries.Prguse2; //Size = new Size(288, 324); Movable = true; Sort = true; Location = new Point((800 - Size.Width) / 2, (600 - Size.Height) / 2); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(300, 3), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); AllButton = new MirButton { Index = 751, PressedIndex = 752, HoverIndex = 753, Library = Libraries.Title, Hint = "Overall TOP 20", Location = new Point(10, 38), Parent = this, Sound = SoundList.ButtonA, }; AllButton.Click += (o, e) => RequestRanks(0); TaoButton = new MirButton { Index = 760, PressedIndex = 761, HoverIndex = 762, Library = Libraries.Title, Hint = "TOP 20 Taoists", Location = new Point(40, 38), Parent = this, Sound = SoundList.ButtonA, }; TaoButton.Click += (o, e) => RequestRanks(3); WarButton = new MirButton { Index = 754, PressedIndex = 755, HoverIndex = 756, Library = Libraries.Title, Hint = "TOP 20 Warriors", Location = new Point(60, 38), Parent = this, Sound = SoundList.ButtonA, }; WarButton.Click += (o, e) => RequestRanks(1); WizButton = new MirButton { Index = 763, PressedIndex = 764, HoverIndex = 765, Library = Libraries.Title, Hint = "TOP 20 Wizards", Location = new Point(80, 38), Parent = this, Sound = SoundList.ButtonA, }; WizButton.Click += (o, e) => RequestRanks(2); SinButton = new MirButton { Index = 757, PressedIndex = 758, HoverIndex = 759, Library = Libraries.Title, Hint = "TOP 20 Assasins", Location = new Point(100, 38), Parent = this, Sound = SoundList.ButtonA, }; SinButton.Click += (o, e) => RequestRanks(4); ArchButton = new MirButton { Index = 766, PressedIndex = 767, HoverIndex = 768, Library = Libraries.Title, Hint = "TOP 20 Archers", Location = new Point(120, 38), Parent = this, Sound = SoundList.ButtonA, }; ArchButton.Click += (o, e) => RequestRanks(5); NextButton = new MirButton { Index = 207, HoverIndex = 208, PressedIndex = 209, Library = Libraries.Prguse2, Location = new Point(299, 386), Parent = this, Sound = SoundList.ButtonA, }; NextButton.Click += (o, e) => Move(1); PrevButton = new MirButton { Index = 197, HoverIndex = 198, PressedIndex = 199, Library = Libraries.Prguse2, Location = new Point(299, 100), Parent = this, Sound = SoundList.ButtonA, }; PrevButton.Click += (o, e) => Move(-1); MyRank = new MirLabel { Text = "", Parent = this, Font = new Font(Settings.FontName, 10F, FontStyle.Bold), ForeColour = Color.BurlyWood, Location = new Point(229, 36), Size = new Size(82,22), DrawFormat = TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter, //AutoSize = true }; MyRank.Click += (o, e) => GoToMyRank(); for (int i = 0; i < Rows.Count(); i++) { Rows[i] = new RankingRow() { Parent = this, Location = new Point(32, 98 + i * 15), Size = new Size(285,15), }; } for (int i = 0; i < RankList.Length; i++) { RankList[i] = new List<Rank_Character_Info>(); } }
public RankingDialog() { Index = 1329; Library = Libraries.Prguse2; //Size = new Size(288, 324); Movable = true; Sort = true; Location = new Point((800 - Size.Width) / 2, (600 - Size.Height) / 2); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(362, 3), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); AllButton = new MirButton { Index = 751, PressedIndex = 752, HoverIndex = 753, Library = Libraries.Title, Hint = "Overall TOP 20", Location = new Point(10, 38), Parent = this, Sound = SoundList.ButtonA, }; AllButton.Click += (o, e) => RequestRanks(0); TaoButton = new MirButton { Index = 760, PressedIndex = 761, HoverIndex = 762, Library = Libraries.Title, Hint = "TOP 20 Taoists", Location = new Point(40, 38), Parent = this, Sound = SoundList.ButtonA, }; TaoButton.Click += (o, e) => RequestRanks(3); WarButton = new MirButton { Index = 754, PressedIndex = 755, HoverIndex = 756, Library = Libraries.Title, Hint = "TOP 20 Warriors", Location = new Point(60, 38), Parent = this, Sound = SoundList.ButtonA, }; WarButton.Click += (o, e) => RequestRanks(1); WizButton = new MirButton { Index = 763, PressedIndex = 764, HoverIndex = 765, Library = Libraries.Title, Hint = "TOP 20 Wizards", Location = new Point(80, 38), Parent = this, Sound = SoundList.ButtonA, }; WizButton.Click += (o, e) => RequestRanks(2); SinButton = new MirButton { Index = 757, PressedIndex = 758, HoverIndex = 759, Library = Libraries.Title, Hint = "TOP 20 Assasins", Location = new Point(100, 38), Parent = this, Sound = SoundList.ButtonA, }; SinButton.Click += (o, e) => RequestRanks(4); ArchButton = new MirButton { Index = 766, PressedIndex = 767, HoverIndex = 768, Library = Libraries.Title, Hint = "TOP 20 Archers", Location = new Point(120, 38), Parent = this, Sound = SoundList.ButtonA, }; ArchButton.Click += (o, e) => RequestRanks(5); NextButton = new MirButton { Index = 207, HoverIndex = 208, PressedIndex = 209, Library = Libraries.Prguse2, Location = new Point(361, 386), Parent = this, Sound = SoundList.ButtonA, }; NextButton.Click += (o, e) => Move(1); PrevButton = new MirButton { Index = 197, HoverIndex = 198, PressedIndex = 199, Library = Libraries.Prguse2, Location = new Point(361, 100), Parent = this, Sound = SoundList.ButtonA, }; PrevButton.Click += (o, e) => Move(-1); MyRank = new MirLabel { Text = "", Parent = this, Font = new Font(Settings.FontName, 10F, FontStyle.Bold), ForeColour = Color.BurlyWood, Location = new Point(229, 36), Size = new Size(82, 22), DrawFormat = TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter, //AutoSize = true }; MyRank.Click += (o, e) => GoToMyRank(); for (int i = 0; i < Rows.Count(); i++) { Rows[i] = new RankingRow() { Parent = this, Location = new Point(32, 98 + i * 15), Size = new Size(315, 15), }; } for (int i = 0; i < RankList.Length; i++) { RankList[i] = new List <Rank_Character_Info>(); } }
public RankingDialog() { Index = 1330; Library = Libraries.Prguse2; //Size = new Size(288, 324); Movable = true; Sort = true; Location = new Point((800 - Size.Width) / 2, (600 - Size.Height) / 2); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(300, 3), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); AllButton = new MirButton { Index = 751, PressedIndex = 752, HoverIndex = 753, Library = Libraries.Title, Hint = "Overall TOP 20", Location = new Point(10, 38), Parent = this, Sound = SoundList.ButtonA, }; AllButton.Click += (o, e) => RequestRanks(0); TaoButton = new MirButton { Index = 760, PressedIndex = 761, HoverIndex = 762, Library = Libraries.Title, Hint = "TOP 20 Taoists", Location = new Point(40, 38), Parent = this, Sound = SoundList.ButtonA, }; TaoButton.Click += (o, e) => RequestRanks(3); WarButton = new MirButton { Index = 754, PressedIndex = 755, HoverIndex = 756, Library = Libraries.Title, Hint = "TOP 20 Warriors", Location = new Point(60, 38), Parent = this, Sound = SoundList.ButtonA, }; WarButton.Click += (o, e) => RequestRanks(1); WizButton = new MirButton { Index = 763, PressedIndex = 764, HoverIndex = 765, Library = Libraries.Title, Hint = "TOP 20 Wizards", Location = new Point(80, 38), Parent = this, Sound = SoundList.ButtonA, }; WizButton.Click += (o, e) => RequestRanks(2); SinButton = new MirButton { Index = 757, PressedIndex = 758, HoverIndex = 759, Library = Libraries.Title, Hint = "TOP 20 Assasins", Location = new Point(100, 38), Parent = this, Sound = SoundList.ButtonA, }; SinButton.Click += (o, e) => RequestRanks(4); ArchButton = new MirButton { Index = 766, PressedIndex = 767, HoverIndex = 768, Library = Libraries.Title, Hint = "TOP 20 Archers", Location = new Point(120, 38), Parent = this, Sound = SoundList.ButtonA, }; ArchButton.Click += (o, e) => RequestRanks(5); for (int i = 0; i < Rows.Count(); i++) { Rows[i] = new RankingRow() { Parent = this, Location = new Point(32, 32 + i * 15) }; } for (int i = 0; i < RankList.Length; i++) { RankList[i] = new List<Rank_Character_Info>(); } }