Cleans up comments for localization (#260)

This commit is contained in:
Kamron Batman 2020-09-20 12:48:10 -07:00 • committed by GitHub
parent fd9ec089f7
commit 13e2693b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 751 additions and 798 deletions

View file

@ -419,11 +419,8 @@ namespace Server.Engines.Help
{
if (from.Region.IsPartOf<JailRegion>())
{
from.SendLocalizedMessage(
1114345,
"",
0x35
); // You'll need a better jailbreak plan than that!
// You'll need a better jailbreak plan than that!
from.SendLocalizedMessage(1114345, "", 0x35);
}
else if (from.Region.IsPartOf("Haven Island"))
{

View file

@ -20,13 +20,8 @@ namespace Server.Engines.Help
AddPage(0);
AddHtmlLocalized(264, 80, 200, 24, 1062524); // Enter Description
AddHtmlLocalized(
120,
108,
420,
48,
1062638
); // Please enter a brief description (up to 200 characters) of your problem:
// Please enter a brief description (up to 200 characters) of your problem:
AddHtmlLocalized(120, 108, 420, 48, 1062638);
AddBackground(100, 148, 440, 200, 3500);
AddTextEntry(120, 168, 400, 200, 1153, 0, "");

View file

@ -93,15 +93,10 @@ namespace Server.Engines.Help
if (m_Entry.Sender.NetState != null && index != -1)
{
m_Entry.Sender.SendLocalizedMessage(
1008077,
true,
(index + 1).ToString()
); // Thank you for paging. Queue status :
m_Entry.Sender
.SendLocalizedMessage(
1008084
); // You can reference our website at www.uo.com or contact us at support@uo.com. To cancel your page, please select the help button again and select cancel.
// Thank you for paging. Queue status :
m_Entry.Sender.SendLocalizedMessage(1008077, true, (index + 1).ToString());
// You can reference our website at www.uo.com or contact us at support@uo.com. To cancel your page, please select the help button again and select cancel.
m_Entry.Sender.SendLocalizedMessage(1008084);
if (m_Entry.Handler != null && m_Entry.Handler.NetState == null)
{
@ -111,8 +106,6 @@ namespace Server.Engines.Help
else
{
if (index != -1)
// m_Entry.AddResponse(m_Entry.Sender, "[Logout]");
{
PageQueue.Remove(m_Entry);
}
@ -142,9 +135,8 @@ namespace Server.Engines.Help
if (pm.DesignContext != null)
{
from.SendLocalizedMessage(
500182
); // You cannot request help while customizing a house or transferring a character.
// You cannot request help while customizing a house or transferring a character.
from.SendLocalizedMessage(500182);
return false;
}
@ -159,17 +151,12 @@ namespace Server.Engines.Help
public static string GetPageTypeName(PageType type)
{
if (type == PageType.VerbalHarassment)
return type switch
{
return "Verbal Harassment";
}
if (type == PageType.PhysicalHarassment)
{
return "Physical Harassment";
}
return type.ToString();
PageType.VerbalHarassment => "Verbal Harassment",
PageType.PhysicalHarassment => "Physical Harassment",
_ => type.ToString()
};
}
public static void OnHandlerChanged(Mobile old, Mobile value, PageEntry entry)

View file

@ -19,17 +19,13 @@ namespace Server.Engines.Help
AddPage(0);
AddHtmlLocalized(150, 40, 360, 40, 1062610); // <CENTER><U>Ultima Online Help Response</U></CENTER>
// <CENTER><U>Ultima Online Help Response</U></CENTER>
AddHtmlLocalized(150, 40, 360, 40, 1062610);
AddHtml(80, 90, 480, 290, $"{name} tells {from.Name}: {text}", true, true);
AddHtmlLocalized(
80,
390,
480,
40,
1062611
); // Clicking the OKAY button will remove the reponse you have received.
// Clicking the OKAY button will remove the reponse you have received.
AddHtmlLocalized(80, 390, 480, 40, 1062611);
AddButton(400, 417, 2074, 2075, 1); // OKAY
AddButton(475, 417, 2073, 2072, 0); // CANCEL