public ReportDialog() { Index = 1633; Library = Libraries.Prguse; Movable = true; Sort = true; Location = Center; CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(336, 3), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); ReportType = new MirDropDownBox() { Parent = this, Location = new Point(12, 35), Size = new Size(170, 14), ForeColour = Color.White, Visible = true, Enabled = true, }; ReportType.Items.Add("Select Report Type."); ReportType.Items.Add("Submit Bug"); ReportType.Items.Add("Report Player"); MessageArea = new MirTextBox { Parent = this, Location = new Point(12, 57), Size = new Size(330, 150), Font = new Font(Settings.FontName, 8F), }; MessageArea.MultiLine(); SendButton = new MirButton { Parent = this, Library = Libraries.Title, Index = 607, HoverIndex = 608, PressedIndex = 609, Sound = SoundList.ButtonA, Location = new Point(260, 219) }; SendButton.Click += SendButton_Click; }
public GuildDialog() { Index = 180; Library = Libraries.Prguse; Movable = true; Sort = true; Location = Center; #region TabUI NoticeButton = new MirButton { Library = Libraries.Title, Index = 93, PressedIndex = 94, Sound = SoundList.ButtonA, Parent = this, Location = new Point(20, 38) }; NoticeButton.Click += (o, e) => LeftDialog(0); MembersButton = new MirButton { Library = Libraries.Title, Index = 99, PressedIndex = 100, Sound = SoundList.ButtonA, Parent = this, Location = new Point(91, 38), }; MembersButton.Click += (o, e) => LeftDialog(1); StorageButton = new MirButton { Library = Libraries.Title, Index = 105, PressedIndex = 106, Sound = SoundList.ButtonA, Parent = this, Location = new Point(162, 38), Visible = false }; StorageButton.Click += (o, e) => LeftDialog(2); BuffsButton = new MirButton { Library = Libraries.Title, Index = 526, HoverIndex = 527, PressedIndex = 528, Sound = SoundList.ButtonA, Parent = StatusPage, Location = new Point(124, 63), Visible = false, }; BuffsButton.Click += (o, e) => { GameScene.Scene.GuildBuffDialog.Show(); Hide(); }; RankButton = new MirButton // Ranks { Library = Libraries.Title, Index = 101, HoverIndex = 102, Sound = SoundList.ButtonA, Parent = this, Location = new Point(233, 38), Visible = false, }; RankButton.Click += (o, e) => LeftDialog(3); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(565, 4), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA }; CloseButton.Click += (o, e) => Hide(); #endregion #endregion #region NoticePageUI NoticePage = new MirImageControl() { Parent = this, Size = new Size(352, 372), Location = new Point(0, 60), Visible = true }; Notice = new MirTextBox() { ForeColour = Color.White, Font = new Font(Settings.FontName, 8F), Enabled = false, Visible = true, Parent = NoticePage, Size = new Size(322, 330), Location = new Point(13, 1) //sorting = true }; Notice.MultiLine(); NoticeEditButton = new MirButton { Visible = false, Index = 560, HoverIndex = 561, PressedIndex = 562, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = NoticePage, Location = new Point(20, 342) }; NoticeEditButton.Click += (o, e) => EditNotice(); NoticeSaveButton = new MirButton { Visible = false, Index = 554, HoverIndex = 555, PressedIndex = 556, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = NoticePage, Location = new Point(20, 342) }; NoticeSaveButton.Click += (o, e) => EditNotice(); NoticeUpButton = new MirButton { HoverIndex = 198, Index = 197, Visible = true, Library = Libraries.Prguse2, Location = new Point(337, 1), Size = new Size(16, 14), Parent = NoticePage, PressedIndex = 199, Sound = SoundList.ButtonA }; NoticeUpButton.Click += (o, e) => { if (NoticeScrollIndex == 0) return; if (NoticeScrollIndex >= 25) NoticeScrollIndex -= 24; NoticeScrollIndex--; UpdateNotice(); }; NoticeDownButton = new MirButton { HoverIndex = 208, Index = 207, Visible = true, Library = Libraries.Prguse2, Location = new Point(337, 318), Size = new Size(16, 14), Parent = NoticePage, PressedIndex = 209, Sound = SoundList.ButtonA }; NoticeDownButton.Click += (o, e) => { if (NoticeScrollIndex == Notice.MultiText.Length - 1) return; if (NoticeScrollIndex < 25) NoticeScrollIndex = 24; NoticeScrollIndex++; UpdateNotice(); }; NoticePositionBar = new MirButton { Index = 206, Library = Libraries.Prguse2, Location = new Point(336, 15), Parent = NoticePage, Movable = true, Visible = true, Sound = SoundList.None }; NoticePositionBar.OnMoving += NoticePositionBar_OnMoving; NoticePage.KeyDown += NoticePanel_KeyDown; NoticePage.MouseWheel += NoticePanel_MouseWheel; #endregion #region MembersPageUI MembersPage = new MirImageControl() { Parent = this, Size = new Size(330, 372), Location = new Point(0, 60), Visible = false }; MembersPageBase = new MirImageControl() { Library = Libraries.Prguse, Index = 1852, Parent = MembersPage, Location = new Point(13, 1), Visible = true }; MembersPage.BeforeDraw += (o, e) => RequestUpdateMembers(); MembersRanks = new MirDropDownBox[MemberPageRows]; MembersName = new MirLabel[MemberPageRows]; MembersStatus = new MirLabel[MemberPageRows]; MembersDelete = new MirButton[MemberPageRows]; for (int i = MembersRanks.Length - 1; i >= 0; i--) { int index = i; MembersRanks[i] = new MirDropDownBox() { BackColour = i % 2 == 0 ? Color.FromArgb(255, 10, 10, 10) : Color.FromArgb(255, 15, 15, 15), ForeColour = Color.White, Parent = MembersPage, Size = new Size(100, 14), Location = new Point(24, 30 + (i * 15)), Visible = false, Enabled = false }; MembersRanks[index].ValueChanged += (o, e) => OnNewRank(index, MembersRanks[index]._WantedIndex); } for (int i = 0; i < MembersName.Length; i++) { MembersName[i] = new MirLabel() { BackColour = i % 2 == 0 ? Color.FromArgb(255, 05, 05, 05) : Color.FromArgb(255, 07, 07, 07), ForeColour = Color.White, Parent = MembersPage, Size = new Size(100, 14), Location = new Point(125, 30 + (i * 15)), Visible = false, Enabled = false, Font = new Font(Settings.FontName, 7F) }; } for (int i = 0; i < MembersStatus.Length; i++) { MembersStatus[i] = new MirLabel() { BackColour = i % 2 == 0 ? Color.FromArgb(255, 10, 10, 10) : Color.FromArgb(255, 15, 15, 15), ForeColour = Color.White, Parent = MembersPage, Size = new Size(100, 14), Location = new Point(225, 30 + (i * 15)), Visible = false, Enabled = false, Font = new Font(Settings.FontName, 7F) }; } for (int i = 0; i < MembersDelete.Length; i++) { int index = i; MembersDelete[i] = new MirButton() { Enabled = true, Visible = true, Location = new Point(210, 30 + (i * 15)), Library = Libraries.Prguse, Index = 917, Parent = MembersPage }; MembersDelete[index].Click += (o, e) => DeleteMember(index); } MembersUpButton = new MirButton { HoverIndex = 198, Index = 197, Visible = true, Library = Libraries.Prguse2, Location = new Point(315, 0), Size = new Size(16, 14), Parent = MembersPage, PressedIndex = 199, Sound = SoundList.ButtonA }; MembersUpButton.Click += (o, e) => { if (MemberScrollIndex == 0) return; MemberScrollIndex--; UpdateMembers(); UpdateMembersScrollPosition(); }; MembersDownButton = new MirButton { HoverIndex = 208, Index = 207, Visible = true, Library = Libraries.Prguse2, Location = new Point(315, 316), Size = new Size(16, 14), Parent = MembersPage, PressedIndex = 209, Sound = SoundList.ButtonA }; MembersDownButton.Click += (o, e) => { if (MemberScrollIndex == MembersShowCount - MemberPageRows) return; MemberScrollIndex++; UpdateMembers(); UpdateMembersScrollPosition(); }; MembersPositionBar = new MirButton { Index = 955, Library = Libraries.Prguse, Location = new Point(315, 15), Parent = MembersPage, Movable = true, Sound = SoundList.None }; MembersPositionBar.OnMoving += MembersPositionBar_OnMoving; MembersShowOfflineButton = new MirButton { Visible = true, Index = 1346, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = MembersPage, Location = new Point(230, 310) }; MembersShowOfflineButton.Click += (o, e) => MembersShowOfflineSwitch(); MembersShowOfflineStatus = new MirImageControl { Visible = true, Index = 1347, Library = Libraries.Prguse, Parent = MembersPage, Location = new Point(230, 310) }; MembersShowOfflineStatus.Click += (o, e) => MembersShowOfflineSwitch(); MembersShowOffline = new MirLabel { Visible = true, Text = "Show Offline", Location = new Point(245, 309), Parent = MembersPage, Size = new Size(150, 12), Font = new Font(Settings.FontName, 7F), ForeColour = Color.White }; MembersPage.KeyDown += MembersPanel_KeyDown; MembersPage.MouseWheel += MembersPanel_MouseWheel; #endregion #region StatusDialogUI StatusPage = new MirImageControl() { Parent = this, Size = new Size(230, 372), Location = new Point(355, 60), Visible = true }; StatusPageBase = new MirImageControl() { Parent = StatusPage, Library = Libraries.Prguse, Index = 1850, Visible = true, Location = new Point(10, 2) }; StatusPage.BeforeDraw += (o, e) => { if (MapControl.User.GuildName == "") StatusData.Text = ""; else StatusData.Text = string.Format("{0}\n\n{1}\n\n{2}/{3}", MapObject.User.GuildName, Level, MemberCount, MaxMembers == 0 ? "Unlimited" : MaxMembers.ToString()); }; StatusHeaders = new MirLabel() { Location = new Point(46, 49), Size = new Size(100, 300), NotControl = true, Text = "Guild Name\n\nLevel\n\nMembers", Visible = true, Parent = StatusPage }; StatusData = new MirLabel() { Location = new Point(122, 49), Size = new Size(100, 300), NotControl = true, Text = "", Visible = true, Parent = StatusPage }; StatusExpBar = new MirImageControl() { //Index = 7, Library = Libraries.Prguse, Location = new Point(0, 0), DrawImage = false, NotControl = true, Parent = StatusPage, Size = new Size(550, 7) }; StatusExpBar.BeforeDraw += StatusExpBar_BeforeDraw; StatusExpLabel = new MirLabel() { DrawFormat = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter, Location = new Point(0, 0), NotControl = true, Parent = StatusPage, Size = new Size(550, 12) }; MembersRecruitName = new MirTextBox() { Location = new Point(40, 300), Size = new Size(130, 21), MaxLength = 20, Parent = StatusPage, Visible = true, Text = "", BackColour = Color.FromArgb(255, 6, 6, 6), Border = true, BorderColour = Color.FromArgb(255, 20, 20, 20), CanLoseFocus = true //sorting = true }; RecruitMemberButton = new MirButton() { Parent = StatusPage, Enabled = true, Visible = true, Location = new Point(170, 299), Library = Libraries.Title, Index = 356, HoverIndex = 357, PressedIndex = 358 }; RecruitMemberButton.Click += (o, e) => AddMember(); #endregion #region StorageDialogUI StoragePage = new MirImageControl() { Parent = this, Size = new Size(352, 372), Location = new Point(0, 60), Visible = false }; StoragePageBase = new MirImageControl() { Visible = true, Parent = StoragePage, Library = Libraries.Prguse, Index = 1851, Location = new Point(30, 19) }; StoragePage.BeforeDraw += (o, e) => { StorageGoldText.Text = Gold > 0 ? string.Format("{0:###,###,###}", Gold) : "0"; if (MyRankId == 0) StorageGoldRemove.Visible = true; else StorageGoldRemove.Visible = false; }; StorageGoldText = new MirLabel() { Parent = StoragePage, Size = new Size(125, 12), Location = new Point(194, 312), Visible = true, Text = "0", NotControl = true, }; StorageGoldAdd = new MirButton() { Parent = StoragePage, Library = Libraries.Prguse, Index = 918, Visible = true, Enabled = true, Location = new Point(306, 313) }; StorageGoldAdd.Click += (o, e) => StorageAddGold(); StorageGoldRemove = new MirButton() { Visible = false, Enabled = true, Location = new Point(218, 10) }; StorageGoldRemove.Click += (o, e) => StorageRemoveGold(); StorageGrid = new MirItemCell[8 * 8]; { for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { int idx = 8 * y + x; StorageGrid[idx] = new MirItemCell { ItemSlot = idx, GridType = MirGridType.GuildStorage, Library = Libraries.Items, Parent = StoragePage, Size = new Size(35, 35), Location = new Point(x * 35 + 31 + x, y * 35 + 20 + y), }; } } } #endregion #region RankDialogUI RankPage = new MirImageControl() { Parent = this, Size = new Size(352, 372), Location = new Point(0, 60), Visible = false }; RankPage.BeforeDraw += (o, e) => RequestUpdateMembers(); RanksSelectTextL = new MirLabel() { Text = "Edit Rank", Location = new Point(42,36), Size = new Size(150, 20), ForeColour = Color.White, Parent = RankPage, NotControl = true, }; RanksSelectTextR = new MirLabel() { Text = "Select Rank", Location = new Point(198, 36), Size = new Size(150, 20), ForeColour = Color.White, Parent = RankPage, NotControl = true, }; RanksSelectBox = new MirDropDownBox() { Parent = RankPage, Location = new Point(198, 36), Size = new Size(130, 16), ForeColour = Color.White, Visible = true, Enabled = true }; RanksSelectBox.ValueChanged += (o, e) => OnRankSelect(RanksSelectBox._WantedIndex); RanksName = new MirTextBox() { Location = new Point(42, 36), Size = new Size(130, 16), MaxLength = 20, Parent = RankPage, Visible = true, Enabled = false, Text = "", BackColour = Color.FromArgb(255, 6, 6, 6), Border = true, BorderColour = Color.FromArgb(255, 20, 20, 20) }; RanksName.BeforeDraw += (o, e) => RanksName_BeforeDraw(); RanksName.TextBox.KeyPress += RanksName_KeyPress; RanksSaveName = new MirButton() { Location = new Point(155, 290), Enabled = false, Visible = true, Parent = RankPage, Index = 90, HoverIndex = 91, PressedIndex = 92, Library = Libraries.Title, Sound = SoundList.ButtonA }; RanksSaveName.Click += (o, e) => { RanksChangeName(); }; String[] Options = { "Edit ranks", "Recruit member", "Kick member", "Store item", "Retrieve item", "Alter alliance", "Change notice", "Activate Buff" }; RanksOptionsButtons = new MirButton[8]; RanksOptionsStatus = new MirImageControl[8]; RanksOptionsTexts = new MirLabel[8]; for (int i = 0; i < RanksOptionsButtons.Length; i++) { RanksOptionsButtons[i] = new MirButton() { Visible = true, Enabled = false, Index = 1346, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = RankPage, Location = new Point(i % 2 == 0 ? 32 : 202, i % 2 == 0 ? 120 + (i * 20) : 120 + ((i - 1) * 20)) }; int index = i; RanksOptionsButtons[i].Click += (o, e) => SwitchRankOption(index); } for (int i = 0; i < RanksOptionsStatus.Length; i++) { RanksOptionsStatus[i] = new MirImageControl() { Visible = false, Index = 1347, Library = Libraries.Prguse, Parent = RankPage, NotControl = true, Location = new Point(i % 2 == 0 ? 32 : 202, i % 2 == 0 ? 120 + (i * 20) : 120 + ((i - 1) * 20)) }; int index = i; RanksOptionsStatus[i].Click += (o, e) => SwitchRankOption(index); } for (int i = 0; i < RanksOptionsTexts.Length; i++) { RanksOptionsTexts[i] = new MirLabel() { Visible = true, NotControl = true, Parent = RankPage, Location = new Point(17 + (i % 2 == 0 ? 32 : 202), i % 2 == 0 ? 118 + (i * 20) : 118 + ((i - 1) * 20)), AutoSize = true, Text = Options[i] }; } }
public NPCAwakeDialog() { Index = 710; Library = Libraries.Title; Location = new Point(50, 40); Sort = true; Movable = true; GoldLabel = new MirLabel { AutoSize = true, Location = new Point(135, 268), Parent = this, NotControl = true, }; NeedItemLabel1 = new MirLabel { AutoSize = true, Location = new Point(90, 192), Parent = this, NotControl = true, }; NeedItemLabel2 = new MirLabel { AutoSize = true, Location = new Point(90, 231), Parent = this, NotControl = true, }; UpgradeButton = new MirButton { HoverIndex = 713, Index = 712, Location = new Point(80, 375), Library = Libraries.Title, Parent = this, PressedIndex = 714, Sound = SoundList.ButtonA, }; UpgradeButton.Click += (o, e) => Awakening(); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(211, 5), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); ItemCells[0] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(112, 77), ItemSlot = 0, }; //ItemCells[0].AfterDraw += (o, e) => ItemCell_AfterDraw(); //ItemCells[0].Click += (o, e) => ItemCell_Click(); ItemCells[1] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(50, 191), ItemSlot = 1, Enabled = false, }; ItemCells[2] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(50, 230), ItemSlot = 2, Enabled = false, }; ItemCells[3] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(42, 322), ItemSlot = 3, }; ItemCells[4] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(86, 322), ItemSlot = 4, }; ItemCells[5] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(138, 322), ItemSlot = 5, }; ItemCells[6] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(182, 322), ItemSlot = 6, }; SelectAwakeType = new MirDropDownBox() { Parent = this, Location = new Point(58, 153), Size = new Size(130, 16), ForeColour = Color.White, Visible = true, Enabled = true, }; SelectAwakeType.ValueChanged += (o, e) => OnAwakeTypeSelect(SelectAwakeType._WantedIndex); }
public GuildDialog() { Index = 180; Library = Libraries.Prguse; Movable = true; Sort = true; Location = new Point((800 - Size.Width) / 2, (600 - Size.Height) / 2); #region tab buttons NoticeButton = new MirButton // Notice { Library = Libraries.Title, Index = 88, HoverIndex = 87, PressedIndex = 89, Sound = SoundList.ButtonA, Parent = this, Location = new Point(210, 400) }; NoticeButton.Click += (o, e) => ChangePage(0); MembersButton = new MirButton // Members { Library = Libraries.Title, Index = 76, HoverIndex = 77, PressedIndex = 75, Sound = SoundList.ButtonA, Parent = this, Location = new Point(125, 400), }; MembersButton.Click += (o, e) => ChangePage(1); StatusButton = new MirButton // Guild Stats { Library = Libraries.Title, Index = 67, HoverIndex = 68, PressedIndex = 66, Sound = SoundList.ButtonA, Parent = this, Location = new Point(40, 400) }; StatusButton.Click += (o, e) => ChangePage(2); StorageButton = new MirButton // Storage { Library = Libraries.Title, Index = 79, HoverIndex = 80, PressedIndex = 78, Sound = SoundList.ButtonA, Parent = this, Location = new Point(295, 400), Visible = false }; StorageButton.Click += (o, e) => ChangePage(3); BuffsButton = new MirButton // Buffs { Library = Libraries.Title, Index = 70, HoverIndex = 71, PressedIndex = 69, Sound = SoundList.ButtonA, Parent = this, Location = new Point(465, 400), Visible = false, }; BuffsButton.Click += (o, e) => ChangePage(4); RankButton = new MirButton // Ranks { Library = Libraries.Title, Index = 73, HoverIndex = 74, PressedIndex = 72, Sound = SoundList.ButtonA, Parent = this, Location = new Point(380, 400), Visible = false, }; RankButton.Click += (o, e) => ChangePage(5); GuildName = new MirLabel { Location = new Point(302, 9), Parent = this, Size = new Size(144, 16), Font = new Font(Settings.FontName, 8F), Text = "", Visible = true, }; GuildName.BeforeDraw += (o, e) => { if (MapControl.User.GuildName != "") GuildName.Text = MapControl.User.GuildName; else GuildName.Text = "None"; }; #endregion CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(563, 6), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA }; CloseButton.Click += (o, e) => Hide(); #region "notice tab" NoticePage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = true }; Notice = new MirTextBox() { ForeColour = Color.White, Font = new Font(Settings.FontName, 8F), Enabled = false, Visible = true, Parent = NoticePage, Size = new Size(550, 325), Location = new Point(0, 0) }; Notice.MultiLine(); NoticeEditButton = new MirButton { Visible = false, Index = 85, HoverIndex = 86, PressedIndex = 84, Library = Libraries.Title, Sound = SoundList.ButtonA, Parent = NoticePage, Location = new Point(27, 337) }; NoticeEditButton.Click += (o, e) => EditNotice(); NoticeSaveButton = new MirButton { Visible = false, Index = 82, HoverIndex = 83, PressedIndex = 84, Library = Libraries.Title, Sound = SoundList.ButtonA, Parent = NoticePage, Location = new Point(27, 337) }; NoticeSaveButton.Click += (o, e) => EditNotice(); NoticeUpButton = new MirButton { HoverIndex = 312, Library = Libraries.Prguse, Location = new Point(551, 0), Size = new Size(16, 14), Parent = NoticePage, PressedIndex = 313, Sound = SoundList.ButtonA }; NoticeUpButton.Click += (o, e) => { if (NoticeScrollIndex == 0) return; if (NoticeScrollIndex >= 25) NoticeScrollIndex -= 24; NoticeScrollIndex--; UpdateNotice(); }; NoticeDownButton = new MirButton { HoverIndex = 314, Library = Libraries.Prguse, Location = new Point(551, 316), Size = new Size(16, 14), Parent = NoticePage, PressedIndex = 315, Sound = SoundList.ButtonA }; NoticeDownButton.Click += (o, e) => { if (NoticeScrollIndex == Notice.MultiText.Length - 1) return; if (NoticeScrollIndex < 25) NoticeScrollIndex = 24; NoticeScrollIndex++; UpdateNotice(); }; NoticePositionBar = new MirButton { Index = 955, Library = Libraries.Prguse, Location = new Point(551, 15), Parent = NoticePage, Movable = true, Sound = SoundList.None }; NoticePositionBar.OnMoving += NoticePositionBar_OnMoving; NoticePage.KeyDown += NoticePanel_KeyDown; NoticePage.MouseWheel += NoticePanel_MouseWheel; #endregion #region "members tab" MembersPage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = false }; MembersPage.BeforeDraw += (o, e) => RequestUpdateMembers(); MembersHeaderRank = new MirLabel { Parent = MembersPage, BackColour = Color.FromArgb(0x00, 0x00, 0x33), ForeColour = Color.White, Text = "Rank:", Location = new Point(10, 10), Size = new Size(180, 14), Font = new Font(Settings.FontName, 7F), Visible = true }; MembersHeaderName = new MirLabel { Parent = MembersPage, BackColour = Color.FromArgb(0x00, 0x00, 0x33), ForeColour = Color.White, Text = "Name:", Location = new Point(190, 10), Size = new Size(180, 14), Font = new Font(Settings.FontName, 7F), Visible = true }; MembersHeaderStatus = new MirLabel { Parent = MembersPage, BackColour = Color.FromArgb(0x00, 0x00, 0x33), ForeColour = Color.White, Text = "Status:", Location = new Point(370, 10), Size = new Size(170, 14), Font = new Font(Settings.FontName, 7F), Visible = true }; MembersRanks = new MirDropDownBox[MemberPageRows]; MembersName = new MirLabel[MemberPageRows]; MembersStatus = new MirLabel[MemberPageRows]; MembersDelete = new MirButton[MemberPageRows]; for (int i = MembersRanks.Length - 1; i >= 0; i--) { int index = i; MembersRanks[i] = new MirDropDownBox() { BackColour = i % 2 == 0 ? Color.FromArgb(0x0F, 0x0F, 0x42) : Color.FromArgb(0x00, 0x00, 0x66), ForeColour = Color.White, Parent = MembersPage, Size = new Size(180, 14), Location = new Point(10, 24 + (i * 15)), Visible = false, Enabled = false }; MembersRanks[index].ValueChanged += (o, e) => OnNewRank(index, MembersRanks[index]._WantedIndex); } for (int i = 0; i < MembersName.Length; i++) { MembersName[i] = new MirLabel() { BackColour = i % 2 == 0 ? Color.FromArgb(0x0F, 0x0F, 0x42) : Color.FromArgb(0x00, 0x00, 0x66), ForeColour = Color.White, Parent = MembersPage, Size = new Size(180, 14), Location = new Point(190, 24 + (i * 15)), Visible = false, Enabled = false, Font = new Font(Settings.FontName, 7F) }; } for (int i = 0; i < MembersStatus.Length; i++) { MembersStatus[i] = new MirLabel() { BackColour = i % 2 == 0 ? Color.FromArgb(0x0F, 0x0F, 0x42) : Color.FromArgb(0x00, 0x00, 0x66), ForeColour = Color.White, Parent = MembersPage, Size = new Size(170, 14), Location = new Point(370, 24 + (i * 15)), Visible = false, Enabled = false, Font = new Font(Settings.FontName, 7F) }; } for (int i = 0; i < MembersDelete.Length; i++) { int index = i; MembersDelete[i] = new MirButton() { Enabled = true, Visible = false, Location = new Point(525, 24 + (i * 15)), Library = Libraries.Prguse, Index = 917, Parent = MembersPage }; MembersDelete[index].Click += (o, e) => DeleteMember(index); } MembersAddMember = new MirButton { Parent = MembersPage, Enabled = true, Visible = false, Location = new Point(27, 337), Library = Libraries.Title, Index = 64, HoverIndex = 65, PressedIndex = 63 }; MembersAddMember.Click += (o, e) => AddMember(); MembersUpButton = new MirButton { HoverIndex = 312, Library = Libraries.Prguse, Location = new Point(551, 0), Size = new Size(16, 14), Parent = MembersPage, PressedIndex = 313, Sound = SoundList.ButtonA }; MembersUpButton.Click += (o, e) => { if (MemberScrollIndex == 0) return; MemberScrollIndex--; UpdateMembers(); UpdateMembersScrollPosition(); }; MembersDownButton = new MirButton { HoverIndex = 314, Library = Libraries.Prguse, Location = new Point(551, 316), Size = new Size(16, 14), Parent = MembersPage, PressedIndex = 315, Sound = SoundList.ButtonA }; MembersDownButton.Click += (o, e) => { if (MemberScrollIndex == MembersShowCount - MemberPageRows) return; MemberScrollIndex++; UpdateMembers(); UpdateMembersScrollPosition(); }; MembersPositionBar = new MirButton { Index = 955, Library = Libraries.Prguse, Location = new Point(551, 15), Parent = MembersPage, Movable = true, Sound = SoundList.None }; MembersPositionBar.OnMoving += MembersPositionBar_OnMoving; MembersShowOfflineButton = new MirButton { Visible = true, Index = 1346, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = MembersPage, Location = new Point(432, 340) }; MembersShowOfflineButton.Click += (o, e) => MembersShowOfflineSwitch(); MembersShowOfflineStatus = new MirImageControl { Visible = true, Index = 1347, Library = Libraries.Prguse, Parent = MembersPage, Location = new Point(432, 340) }; MembersShowOfflineStatus.Click += (o, e) => MembersShowOfflineSwitch(); MembersShowOffline = new MirLabel { Visible = true, Text = "Show Offline Members", Location = new Point(449, 340), Parent = MembersPage, Size = new Size(150, 12), Font = new Font(Settings.FontName, 7F), ForeColour = Color.White }; MembersPage.KeyDown += MembersPanel_KeyDown; MembersPage.MouseWheel += MembersPanel_MouseWheel; #endregion #region "status tab" StatusPage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = false }; StatusPage.BeforeDraw += (o, e) => { if (MapControl.User.GuildName == "") StatusData.Text = ""; else StatusData.Text = string.Format("{0}\n{1}\n{2}\n{3}", MapObject.User.GuildName, Level, MemberCount, MaxMembers == 0 ? "Unlimited" : MaxMembers.ToString()); }; StatusHeaders = new MirLabel() { Location = new Point(10, 25), Size = new Size(100, 300), NotControl = true, Text = "Guild Name:\nLevel:\nMembers:\nMaximum Members:\n", Visible = true, Parent = StatusPage }; StatusData = new MirLabel() { Location = new Point(120, 25), Size = new Size(100, 300), NotControl = true, Text = "", Visible = true, Parent = StatusPage }; StatusExpBar = new MirImageControl() { Index = 7, Library = Libraries.Prguse, Location = new Point(0, 0), DrawImage = false, NotControl = true, Parent = StatusPage, Size = new Size(550, 7) }; StatusExpBar.BeforeDraw += StatusExpBar_BeforeDraw; StatusExpLabel = new MirLabel() { DrawFormat = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter, Location = new Point(0, 0), NotControl = true, Parent = StatusPage, Size = new Size(550, 12) }; #endregion #region "storage tab" StoragePage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = false }; StoragePage.BeforeDraw += (o, e) => { StorageGoldText.Text = Gold > 0 ? string.Format("{0:###,###,###} Gold", Gold) : "0 Gold"; if (MyRankId == 0) StorageGoldRemove.Visible = true; else StorageGoldRemove.Visible = false; }; StorageGoldIcon = new MirButton() { Parent = StoragePage, Size = new Size(32, 17), Location = new Point(10, 9), Visible = true, Library = Libraries.Prguse, Index = 28, NotControl = true, }; StorageGoldText = new MirLabel() { Parent = StoragePage, Size = new Size(150, 15), Location = new Point(47, 10), Visible = true, Text = "0", NotControl = true, BackColour = Color.FromArgb(0x0F, 0x0F, 0x42), Border = true, BorderColour = Color.FromArgb(0x54, 0x4F, 0x36) }; StorageGoldAdd = new MirButton() { Parent = StoragePage, Library = Libraries.Prguse, Index = 918, Visible = true, Enabled = true, Location = new Point(202, 10) }; StorageGoldAdd.Click += (o, e) => StorageAddGold(); StorageGoldRemove = new MirButton() { Parent = StoragePage, Library = Libraries.Prguse, Index = 917, Visible = false, Enabled = true, Location = new Point(218, 10) }; StorageGoldRemove.Click += (o, e) => StorageRemoveGold(); for (int i = 0; i < 9; i++) new MirLabel() { Parent = StoragePage, BackColour = Color.FromArgb(0x54, 0x4F, 0x36), Location = new Point(15, (i * 32) + 41 + i), Size = new Size(518, 1), Text = " " }; for (int i = 0; i < 15; i++) new MirLabel() { Parent = StoragePage, BackColour = Color.FromArgb(0x54, 0x4F, 0x36), Location = new Point((i * 36) + 14 + i, 41), Size = new Size(1, 265), Text = " " }; StorageGrid = new MirItemCell[112]; for (int i = 0; i < StorageGrid.Length; i++) { StorageGrid[i] = new MirItemCell() { BorderColour = Color.Lime, ItemSlot = i, GridType = MirGridType.GuildStorage, Library = Libraries.Items, Parent = StoragePage, Location = new Point((i % 14) * 36 + 15 + (i % 14), (i / 14) * 32 + 42 + (i / 14)) }; } #endregion #region "buffs tab" BuffsPage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = false }; #endregion #region "Ranks tab" RankPage = new MirImageControl() { Parent = this, Size = new Size(567, 368), Location = new Point(13, 37), Visible = false }; RankPage.BeforeDraw += (o, e) => RequestUpdateMembers(); RanksSelectText = new MirLabel() { Text = "Select a rank:", Location = new Point(50, 10), Size = new Size(120, 20), ForeColour = Color.White, Parent = RankPage, NotControl = true }; RanksName = new MirTextBox() { Location = new Point(300, 10), Size = new Size(150, 20), MaxLength = 20, Parent = RankPage, Visible = true, Enabled = false, Text = "", BackColour = Color.FromArgb(0x0F, 0x0F, 0x42), Border = true, BorderColour = Color.FromArgb(0x54, 0x4F, 0x36) }; RanksName.BeforeDraw += (o, e) => RanksName_BeforeDraw(); RanksName.TextBox.KeyPress += RanksName_KeyPress; RanksSaveName = new MirButton() { Location = new Point(455, 8), Enabled = false, Visible = true, Parent = RankPage, Index = 90, HoverIndex = 91, PressedIndex = 92, Library = Libraries.Title, Sound = SoundList.ButtonA }; RanksSaveName.Click += (o, e) => { RanksChangeName(); }; String[] Options = { "Edit ranks", "Recruit member", "Kick member", "Store item", "Retrieve item", "Alter alliance", "Change notice", "Activate Buff" }; RanksOptionsButtons = new MirButton[8]; RanksOptionsStatus = new MirImageControl[8]; RanksOptionsTexts = new MirLabel[8]; for (int i = 0; i < RanksOptionsButtons.Length; i++) { RanksOptionsButtons[i] = new MirButton() { Visible = true, Enabled = false, Index = 1346, Library = Libraries.Prguse, Sound = SoundList.ButtonA, Parent = RankPage, Location = new Point(i % 2 == 0 ? 140 : 310, i % 2 == 0 ? 100 + (i * 20) : 100 + ((i - 1) * 20)) }; int index = i; RanksOptionsButtons[i].Click += (o, e) => SwitchRankOption(index); } for (int i = 0; i < RanksOptionsStatus.Length; i++) { RanksOptionsStatus[i] = new MirImageControl() { Visible = false, Index = 1347, Library = Libraries.Prguse, Parent = RankPage, NotControl = true, Location = new Point(i % 2 == 0 ? 140 : 310, i % 2 == 0 ? 100 + (i * 20) : 100 + ((i - 1) * 20)) }; int index = i; RanksOptionsStatus[i].Click += (o, e) => SwitchRankOption(index); } for (int i = 0; i < RanksOptionsTexts.Length; i++) { RanksOptionsTexts[i] = new MirLabel() { Visible = true, NotControl = true, Parent = RankPage, Location = new Point(17 + (i % 2 == 0 ? 140 : 310), i % 2 == 0 ? 100 + (i * 20) : 100 + ((i - 1) * 20)), AutoSize = true, Text = Options[i] }; } RanksSelectBox = new MirDropDownBox() { Parent = RankPage, Location = new Point(130, 11), Size = new Size(150, 20), ForeColour = Color.White, Visible = true, Enabled = true }; RanksSelectBox.ValueChanged += (o, e) => OnRankSelect(RanksSelectBox._WantedIndex); #endregion }
public NPCAwakeDialog() { Index = 710; Library = Libraries.Title; Location = new Point(0, 0); Sort = true; Movable = true; GoldLabel = new MirLabel { AutoSize = true, Location = new Point(112, 354), Parent = this, NotControl = true, }; NeedItemLabel1 = new MirLabel { AutoSize = true, Location = new Point(67, 317),// Parent = this, NotControl = true, }; NeedItemLabel2 = new MirLabel { AutoSize = true, Location = new Point(192, 317),//(155, 316), Parent = this, NotControl = true, }; UpgradeButton = new MirButton { HoverIndex = 713, Index = 712, Location = new Point(115, 391), //new Point(181, 135), Library = Libraries.Title, Parent = this, PressedIndex = 714, Sound = SoundList.ButtonA, }; UpgradeButton.Click += (o, e) => Awakening(); CloseButton = new MirButton { HoverIndex = 361, Index = 360, Location = new Point(284, 4), Library = Libraries.Prguse2, Parent = this, PressedIndex = 362, Sound = SoundList.ButtonA, }; CloseButton.Click += (o, e) => Hide(); ItemCells[0] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(202, 91), ItemSlot = 0, }; //ItemCells[0].AfterDraw += (o, e) => ItemCell_AfterDraw(); //ItemCells[0].Click += (o, e) => ItemCell_Click(); ItemCells[1] = new MirItemCell //Required { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(31, 316), ItemSlot = 1, Enabled = false, }; ItemCells[2] = new MirItemCell //Required { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(155, 316), ItemSlot = 2, Enabled = false, }; ItemCells[3] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(175, 199), ItemSlot = 3, }; ItemCells[4] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(230, 199), ItemSlot = 4, }; ItemCells[5] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(175, 256), ItemSlot = 5, }; ItemCells[6] = new MirItemCell { BorderColour = Color.Lime, GridType = MirGridType.AwakenItem, Library = Libraries.Items, Parent = this, Location = new Point(230, 256), ItemSlot = 6, }; SelectAwakeType = new MirDropDownBox() { Parent = this, Location = new Point(35, 141), Size = new Size(109, 14), ForeColour = Color.White, Visible = true, Enabled = true, }; SelectAwakeType.ValueChanged += (o, e) => OnAwakeTypeSelect(SelectAwakeType._WantedIndex); }