public SetSpawnerNameGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 330, 90); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 290, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 230, 290, 20); AddHtml(221, 181, 270, 20, MC.ColorText(titleTextColor, "Set Spawner Name"), false, false); MC.DisplayBackground(this, ActiveTEBGTypeConfig, 200, 200, 290, 20); AddTextEntry(200, 200, 280, 20, ActiveTextEntryTextColor, 0, megaSpawner.Name); AddHtml(441, 231, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(400, 230, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 231, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 230, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public RemoveBadEntriesGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 380, 110); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 340, 40); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 250, 340, 20); AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Deleting Bad Entries"), false, false); AddHtml(201, 201, 340, 40, MC.ColorText(defaultTextColor, "Are you sure you want to delete all bad entries on selected spawners?"), false, false); AddHtml(491, 251, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(450, 250, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 251, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 250, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public ConfirmDeleteEntryGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 330, 90); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 290, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 230, 290, 20); AddHtml(221, 181, 270, 20, MC.ColorText(titleTextColor, "Confirmation Of Deleting Entry"), false, false); AddHtml(201, 201, 290, 20, MC.ColorText(defaultTextColor, "Are you sure you want to delete the entry?"), false, false); AddHtml(441, 231, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(400, 230, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 231, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 230, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public FixEntryAmountGump(Mobile mobile, ArrayList argsList) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 380, 110); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 340, 40); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 250, 340, 20); AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Fixing Entry Amount"), false, false); AddHtml(201, 201, 340, 40, MC.ColorText(defaultTextColor, "Are you sure you want to fix the entry amount for overridden spawners?"), false, false); AddHtml(491, 251, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(450, 250, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 251, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 250, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public LoadFileGump(Mobile mobile, ArrayList argsList, LoadType loadtype, string filename) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); loadType = loadtype; FileName = filename; AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 340, 120); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 300, 40); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 260, 300, 20); AddHtml(221, 181, 280, 20, MC.ColorText(titleTextColor, "Load File"), false, false); switch (loadType) { case LoadType.Manual: { AddHtml(201, 201, 280, 20, MC.ColorText(defaultTextColor, "Type in the filename to load:"), false, false); MC.DisplayBackground(this, ActiveTEBGTypeConfig, 200, 220, 300, 18); AddTextEntry(200, 220, 300, 15, ActiveTextEntryTextColor, 0, ""); break; } case LoadType.FileBrowserMsf: { AddHtml(201, 201, 280, 20, MC.ColorText(defaultTextColor, "Are you sure you want to load file:"), false, false); AddHtml(201, 221, 280, 20, MC.ColorText(defaultTextColor, MC.CropDirectory(FileName)), false, false); break; } case LoadType.FileBrowserMbk: { MC.DisplayStyle(this, StyleTypeConfig, 180, 160, 340, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 181, 161, 338, 18); AddHtml(201, 161, 280, 20, MC.ColorText(defaultTextColor, "Warning: All Mega Spawners will be removed."), false, false); AddHtml(201, 201, 280, 20, MC.ColorText(defaultTextColor, "Are you sure you want to load backup file:"), false, false); AddHtml(201, 221, 280, 20, MC.ColorText(defaultTextColor, MC.CropDirectory(FileName)), false, false); break; } } AddHtml(441, 261, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(400, 260, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 261, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 260, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public SaveFileGump(Mobile mobile, ArrayList argsList, SaveType savetype, string filename) : base(0, 0) { gumpMobile = mobile; ArgsList = argsList; GetArgsList(); GetTextColors(); saveType = savetype; FileName = filename; AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 340, 120); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 300, 40); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 260, 300, 20); AddHtml(221, 181, 280, 20, MC.ColorText(titleTextColor, "Save File"), false, false); switch (saveType) { case SaveType.FileEdit: { AddHtml(201, 201, 280, 20, MC.ColorText(defaultTextColor, "Are you sure you want to save file:"), false, false); AddHtml(201, 221, 280, 20, MC.ColorText(defaultTextColor, FileName), false, false); break; } default: { AddHtml(201, 201, 280, 20, MC.ColorText(defaultTextColor, "Type in a filename without an extension:"), false, false); MC.DisplayBackground(this, ActiveTEBGTypeConfig, 200, 220, 300, 18); AddTextEntry(200, 220, 300, 15, ActiveTextEntryTextColor, 0, ""); break; } } AddHtml(441, 261, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(400, 260, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 261, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 260, 4023, 4025, 1, GumpButtonType.Reply, 0); CompileSpawnerList(); }
public ConfirmDeleteSpawnersGump(Mobile mobile, ArrayList argsList, int select) : base(0, 0) { gumpMobile = mobile; Select = select; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 380, 90); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 340, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 230, 340, 20); switch (Select) { case 1: { AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Deleting All Spawners"), false, false); break; } case 2: { AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Deleting Selected Spawners"), false, false); break; } case 3: { AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Deleting Imported Spawners"), false, false); break; } } switch (Select) { case 1: { AddHtml(201, 201, 340, 20, MC.ColorText(defaultTextColor, "Are you sure you want to delete all spawners?"), false, false); break; } case 2: { AddHtml(201, 201, 340, 20, MC.ColorText(defaultTextColor, "Are you sure you want to delete selected spawners?"), false, false); break; } case 3: { AddHtml(201, 201, 340, 20, MC.ColorText(defaultTextColor, "Are you sure you want to delete imported spawners?"), false, false); break; } } AddHtml(491, 231, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(450, 230, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 231, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 230, 4023, 4025, 1, GumpButtonType.Reply, 0); }
public ConfirmAbandonChangesGump(Mobile mobile, ArrayList argsList, ArrayList spawnerList, int select) : base(0, 0) { gumpMobile = mobile; SpawnerList = spawnerList; Select = select; ArgsList = argsList; GetArgsList(); GetTextColors(); AddPage(0); // Page 0 MC.DisplayStyle(this, StyleTypeConfig, 180, 180, 380, 90); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 200, 340, 20); MC.DisplayBackground(this, BackgroundTypeConfig, 200, 230, 340, 20); switch (Select) { case 1: { AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, "Confirmation Of Abandon Spawner Workspace"), false, false); break; } case 2: { AddHtml(221, 181, 320, 20, MC.ColorText(titleTextColor, String.Format("Confirmation Of Abandon Changes To File: {0}", FileName)), false, false); break; } } switch (Select) { case 1: { AddHtml(201, 201, 340, 20, MC.ColorText(defaultTextColor, "Are you sure you want to abandon Spawner Workspace?"), false, false); break; } case 2: { AddHtml(201, 201, 340, 20, MC.ColorText(defaultTextColor, "Are you sure you want to abandon changes to file?"), false, false); break; } } AddHtml(491, 231, 60, 20, MC.ColorText(defaultTextColor, "Cancel"), false, false); AddButton(450, 230, 4017, 4019, 0, GumpButtonType.Reply, 0); AddHtml(241, 231, 60, 20, MC.ColorText(defaultTextColor, "Ok"), false, false); AddButton(200, 230, 4023, 4025, 1, GumpButtonType.Reply, 0); }
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 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 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 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(); }