public FishingStatusDialog() { Index = 1341; Library = Libraries.Prguse; Movable = true; Sort = true; Size = new Size(244, 128); Location = new Point((Settings.ScreenWidth - Size.Width) / 2, 300); BeforeDraw += FishingStatusDialog_BeforeDraw; ChanceBar = new MirControl { Parent = this, Location = new Point(14, 64), NotControl = true, }; ChanceBar.BeforeDraw += ChanceBar_BeforeDraw; ChanceLabel = new MirLabel { Location = new Point(14, 62), Size = new Size(216, 12), DrawFormat = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter, Parent = this, NotControl = true, }; ProgressBar = new MirControl { Parent = this, Location = new Point(14, 79), NotControl = true, }; ProgressBar.BeforeDraw += ProgressBar_BeforeDraw; CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(216, 4), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => { Cancel(); }; FishDisableButton = new MirImageControl { Index = 149, Location = new Point(47, 95), Library = Libraries.Title, Parent = this, NotControl = true }; FishButton = new MirAnimatedButton() { Animated = true, AnimationCount = 10, Loop = true, AnimationDelay = 130, Index = 170, PressedIndex = 142, Library = Libraries.Title, Parent = this, Location = new Point(47, 95), Sound = SoundList.ButtonA, Visible = false }; FishButton.Click += (o, e) => { Network.Enqueue(new C.FishingCast { CastOut = false }); }; AutoCastButton = new MirButton { Index = 143, HoverIndex = 144, PressedIndex = 145, Location = new Point(110, 95), Library = Libraries.Title, Parent = this, Sound = SoundList.ButtonA, }; AutoCastButton.Click += (o, e) => { if (_canAutoCast) { _autoCast = !_autoCast; //AutoCastTick.Visible = _autoCast; AutoCastBox.Index = _autoCast ? 1344 : 1343; Network.Enqueue(new C.FishingChangeAutocast { AutoCast = _autoCast }); } }; AutoCastBox = new MirImageControl { Index = 1343, Location = new Point(172, 95), Library = Libraries.Prguse, Parent = this }; ESCExitButton = new MirButton { Index = 1346, HoverIndex = 1346, PressedIndex = 1346, Location = new Point(135, 41), Library = Libraries.Prguse, Parent = this, Sound = SoundList.ButtonA, }; ESCExitButton.Click += (o, e) => { bEscExit = !bEscExit; ESCTick.Visible = bEscExit; }; ESCTick = new MirImageControl { Index = 1347, Location = new Point(135, 41), Library = Libraries.Prguse, Parent = this, Visible = false, NotControl = true, }; ESCExit = new MirImageControl { Index = 45, Location = new Point(150, 40), Library = Libraries.Title, Parent = this, NotControl = true, }; }
public NPCDialog() { Index = 995; Library = Libraries.Prguse; TextLabel = new MirLabel[30]; TextButtons = new List<MirLabel>(); MouseWheel += NPCDialog_MouseWheel; Sort = true; NameLabel = new MirLabel { Text = "", Parent = this, Font = new Font(Settings.FontName, 10F, FontStyle.Bold), ForeColour = Color.BurlyWood, Location = new Point(30, 6), AutoSize = true }; UpButton = new MirButton { Index = 197, HoverIndex = 198, PressedIndex = 199, Library = Libraries.Prguse2, Parent = this, Size = new Size(16, 14), Location = new Point(416, 35), Sound = SoundList.ButtonA, Visible = false }; UpButton.Click += (o, e) => { if (_index <= 0) return; _index--; NewText(CurrentLines, false); UpdatePositionBar(); }; DownButton = new MirButton { Index = 207, HoverIndex = 208, Library = Libraries.Prguse2, PressedIndex = 209, Parent = this, Size = new Size(16, 14), Location = new Point(416, 175), Sound = SoundList.ButtonA, Visible = false }; DownButton.Click += (o, e) => { if (_index + MaximumLines >= CurrentLines.Count) return; _index++; NewText(CurrentLines, false); UpdatePositionBar(); }; PositionBar = new MirButton { Index = 205, HoverIndex = 206, PressedIndex = 206, Library = Libraries.Prguse2, Location = new Point(416, 48), Parent = this, Movable = true, Sound = SoundList.None, Visible = false }; PositionBar.OnMoving += PositionBar_OnMoving; QuestButton = new MirAnimatedButton() { Animated = true, AnimationCount = 10, Loop = true, AnimationDelay = 130, Index = 530, //HoverIndex = 285, PressedIndex = 286, Library = Libraries.Title, Parent = this, Size = new Size(96, 25), Location = new Point((440 - 96) / 2, 224 - 30), Sound = SoundList.ButtonA, Visible = false }; QuestButton.Click += (o, e) => GameScene.Scene.QuestListDialog.Toggle(); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(413, 3), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); MirButton helpButton = new MirButton { Index = 257, HoverIndex = 258, PressedIndex = 259, Library = Libraries.Prguse2, Parent = this, Location = new Point(390, 3), Sound = SoundList.ButtonA, }; helpButton.Click += (o, e) => GameScene.Scene.HelpDialog.DisplayPage("Purchasing"); }