public FileMenuGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); ArgsList[34] = (bool)true; // RefreshSpawnerLists GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 80, 80, 600, 452); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 450, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 450, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 450, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 470, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 470, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 470, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 490, 249, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 490, 279, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 490, 30, 20); MC.DisplayImage(this, StyleTypeConfig); AddButton(630, 490, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(121, 81, 560, 20, MC.ColorText(titleTextColor, "File Menu"), false, false); if (!Help) { AddButton(597, 429, 2033, 2032, -5, GumpButtonType.Reply, 0); } else { AddButton(597, 429, 2032, 2033, -5, GumpButtonType.Reply, 0); } if (DisplayMessages) { MC.DisplayStyle(this, StyleTypeConfig, 80, 540, 600, 122); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 560, 560, 80); AddHtml(121, 541, 540, 20, MC.ColorText(titleTextColor, MessagesTitle), false, false); AddHtml(100, 560, 560, 80, MC.ColorText(messagesTextColor, Messages), false, true); AddHtml(531, 641, 100, 20, MC.ColorText(defaultTextColor, "Clear Messages"), false, false); AddButton(630, 640, 4017, 4019, -6, GumpButtonType.Reply, 0); AddButton(371, 645, 2436, 2435, -8, GumpButtonType.Reply, 0); } else { MC.DisplayStyle(this, StyleTypeConfig, 80, 530, 600, 20); AddButton(371, 535, 2438, 2437, -8, GumpButtonType.Reply, 0); } OldMessagesTitle = MessagesTitle; OldMessages = Messages; AddHtml(151, 431, 60, 20, MC.ColorText(defaultTextColor, "Refresh"), false, false); AddButton(120, 433, 2118, 2117, -7, GumpButtonType.Reply, 0); SetFMCheckBoxes(); AddPages(); }
public SearchEntryGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 80, 80, 600, 452); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 450, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 450, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 450, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 470, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 470, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 470, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 490, 249, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 490, 279, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 490, 30, 20); MC.DisplayImage(this, StyleTypeConfig); AddButton(630, 490, 4017, 4019, 0, GumpButtonType.Reply, 0); string searchtype = ""; switch (searchType) { case SearchType.MobileType: { searchtype = " Mobile"; break; } case SearchType.ItemType: { searchtype = " Item"; break; } } if (SearchFor == "") { AddHtml(121, 81, 560, 20, MC.ColorText(titleTextColor, String.Format("Entire Listing Of Valid{0} Types", searchtype)), false, false); } else { AddHtml(121, 81, 560, 20, MC.ColorText(titleTextColor, String.Format("Search Results For \"{0}\"", SearchFor)), false, false); } if (!Help) { AddButton(597, 429, 2033, 2032, -5, GumpButtonType.Reply, 0); } else { AddButton(597, 429, 2032, 2033, -5, GumpButtonType.Reply, 0); } if (DisplayMessages) { MC.DisplayStyle(this, StyleTypeConfig, 80, 540, 600, 122); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 560, 560, 80); AddHtml(121, 541, 540, 20, MC.ColorText(titleTextColor, MessagesTitle), false, false); AddHtml(100, 560, 560, 80, MC.ColorText(messagesTextColor, Messages), false, true); AddHtml(531, 641, 100, 20, MC.ColorText(defaultTextColor, "Clear Messages"), false, false); AddButton(630, 640, 4017, 4019, -6, GumpButtonType.Reply, 0); AddButton(371, 645, 2436, 2435, -8, GumpButtonType.Reply, 0); } else { MC.DisplayStyle(this, StyleTypeConfig, 80, 530, 600, 20); AddButton(371, 535, 2438, 2437, -8, GumpButtonType.Reply, 0); } OldMessagesTitle = MessagesTitle; OldMessages = Messages; AddHtml(151, 431, 60, 20, MC.ColorText(defaultTextColor, "Refresh"), false, false); AddButton(120, 433, 2118, 2117, -7, GumpButtonType.Reply, 0); SearchResultsList = GetSearchResults(); AddPages(); }
public EditAccountGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 80, 80, 600, 452); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 450, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 450, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 450, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 470, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 470, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 470, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 490, 249, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 490, 279, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 490, 30, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 100, 560, 330); MC.DisplayImage(this, StyleTypeConfig); AddButton(630, 490, 4017, 4019, 0, GumpButtonType.Reply, 0); if (AddAccount) { AddHtml(121, 81, 540, 20, MC.ColorText(titleTextColor, "Add Account"), false, false); } else { AddHtml(121, 81, 540, 20, MC.ColorText(titleTextColor, String.Format("Editting Account: \"{0}\"", accountName)), false, false); } if (!Help) { AddButton(597, 429, 2033, 2032, -5, GumpButtonType.Reply, 0); } else { AddButton(597, 429, 2032, 2033, -5, GumpButtonType.Reply, 0); } if (DisplayMessages) { MC.DisplayStyle(this, StyleTypeConfig, 80, 540, 600, 122); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 560, 560, 80); AddHtml(121, 541, 540, 20, MC.ColorText(titleTextColor, MessagesTitle), false, false); AddHtml(100, 560, 560, 80, MC.ColorText(messagesTextColor, Messages), false, true); AddHtml(531, 641, 100, 20, MC.ColorText(defaultTextColor, "Clear Messages"), false, false); AddButton(630, 640, 4017, 4019, -6, GumpButtonType.Reply, 0); AddButton(371, 645, 2436, 2435, -8, GumpButtonType.Reply, 0); } else { MC.DisplayStyle(this, StyleTypeConfig, 80, 530, 600, 20); AddButton(371, 535, 2438, 2437, -8, GumpButtonType.Reply, 0); } OldMessagesTitle = MessagesTitle; OldMessages = Messages; AddHtml(151, 431, 60, 20, MC.ColorText(defaultTextColor, "Refresh"), false, false); AddButton(120, 433, 2118, 2117, -7, GumpButtonType.Reply, 0); MenuAccessList = MC.GetMenuAccess(gumpMobile); AddPages(); }
public AddItemsToContainerGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 80, 80, 600, 452); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 450, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 450, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 450, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 470, 249, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 470, 279, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 470, 30, 19); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 490, 249, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 350, 490, 279, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 630, 490, 30, 20); MC.DisplayImage(this, StyleTypeConfig); AddButton(630, 490, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(121, 81, 560, 20, MC.ColorText(titleTextColor, String.Format("Add {0} Item{1} To \"{2}\"", InsideItemList.Count, InsideItemList.Count == 1 ? "" : "s", addItem)), false, false); if (!Help) { AddButton(597, 429, 2033, 2032, -5, GumpButtonType.Reply, 0); } else { AddButton(597, 429, 2032, 2033, -5, GumpButtonType.Reply, 0); } if (DisplayMessages) { MC.DisplayStyle(this, StyleTypeConfig, 80, 540, 600, 122); MC.DisplayBackground(this, BackgroundTypeConfig, 100, 560, 560, 80); AddHtml(121, 541, 540, 20, MC.ColorText(titleTextColor, MessagesTitle), false, false); AddHtml(100, 560, 560, 80, MC.ColorText(messagesTextColor, Messages), false, true); AddHtml(531, 641, 100, 20, MC.ColorText(defaultTextColor, "Clear Messages"), false, false); AddButton(630, 640, 4017, 4019, -6, GumpButtonType.Reply, 0); AddButton(371, 645, 2436, 2435, -8, GumpButtonType.Reply, 0); } else { MC.DisplayStyle(this, StyleTypeConfig, 80, 530, 600, 20); AddButton(371, 535, 2438, 2437, -8, GumpButtonType.Reply, 0); } OldMessagesTitle = MessagesTitle; OldMessages = Messages; AddHtml(151, 431, 60, 20, MC.ColorText(defaultTextColor, "Refresh"), false, false); AddButton(120, 433, 2118, 2117, -7, GumpButtonType.Reply, 0); GetOffsets(); SetAITCCheckBoxes(); AddPages(); }