Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -8,12 +8,7 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
private bool m_CloseGumps;
|
||||
private MLQuestInstance m_Instance;
|
||||
|
||||
public QuestCancelConfirmGump(MLQuestInstance instance)
|
||||
: this(instance, true)
|
||||
{
|
||||
}
|
||||
|
||||
public QuestCancelConfirmGump(MLQuestInstance instance, bool closeGumps)
|
||||
public QuestCancelConfirmGump(MLQuestInstance instance, bool closeGumps = true)
|
||||
: base(120, 50)
|
||||
{
|
||||
m_Instance = instance;
|
||||
|
|
@ -50,7 +45,7 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
AddImage(2, 248, 0x2716);
|
||||
AddImage(2, 2, 0x2716);
|
||||
|
||||
AddHtmlLocalized(25, 22, 200, 20, 1049000, 0x7D00, false, false); // Confirm Quest Cancellation
|
||||
AddHtmlLocalized(25, 22, 200, 20, 1049000, 0x7D00); // Confirm Quest Cancellation
|
||||
AddImage(25, 40, 0xBBF);
|
||||
|
||||
/*
|
||||
|
|
@ -60,24 +55,23 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
* <BR>
|
||||
* Are you certain you wish to cancel at this time?
|
||||
*/
|
||||
AddHtmlLocalized(25, 55, 300, 120, 1060836, 0xFFFFFF, false, false);
|
||||
AddHtmlLocalized(25, 55, 300, 120, 1060836, 0xFFFFFF);
|
||||
|
||||
MLQuest quest = instance.Quest;
|
||||
|
||||
if (quest.IsChainTriggered || quest.NextQuest != null)
|
||||
{
|
||||
AddRadio(25, 145, 0x25F8, 0x25FB, false, 2);
|
||||
AddHtmlLocalized(60, 150, 280, 20, 1075023, 0xFFFFFF, false,
|
||||
false); // Yes, I want to quit this entire chain!
|
||||
AddHtmlLocalized(60, 150, 280, 20, 1075023, 0xFFFFFF); // Yes, I want to quit this entire chain!
|
||||
}
|
||||
|
||||
AddRadio(25, 180, 0x25F8, 0x25FB, true, 1);
|
||||
AddHtmlLocalized(60, 185, 280, 20, 1049005, 0xFFFFFF, false, false); // Yes, I really want to quit this quest!
|
||||
AddHtmlLocalized(60, 185, 280, 20, 1049005, 0xFFFFFF); // Yes, I really want to quit this quest!
|
||||
|
||||
AddRadio(25, 215, 0x25F8, 0x25FB, false, 0);
|
||||
AddHtmlLocalized(60, 220, 280, 20, 1049006, 0xFFFFFF, false, false); // No, I don't want to quit.
|
||||
AddHtmlLocalized(60, 220, 280, 20, 1049006, 0xFFFFFF); // No, I don't want to quit.
|
||||
|
||||
AddButton(265, 220, 0xF7, 0xF8, 7, GumpButtonType.Reply, 0);
|
||||
AddButton(265, 220, 0xF7, 0xF8, 7);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
|
|
@ -100,4 +94,4 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue