Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,38 +1,38 @@
|
|||
using System;
|
||||
using Server.Gumps;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Engines.Help
|
||||
{
|
||||
public class PageResponseGump : Gump
|
||||
{
|
||||
private Mobile m_From;
|
||||
private string m_Name, m_Text;
|
||||
public class PageResponseGump : Gump
|
||||
{
|
||||
private Mobile m_From;
|
||||
private string m_Name, m_Text;
|
||||
|
||||
public PageResponseGump( Mobile from, string name, string text ) : base( 0, 0 )
|
||||
{
|
||||
m_From = from;
|
||||
m_Name = name;
|
||||
m_Text = text;
|
||||
public PageResponseGump(Mobile from, string name, string text) : base(0, 0)
|
||||
{
|
||||
m_From = from;
|
||||
m_Name = name;
|
||||
m_Text = text;
|
||||
|
||||
AddBackground( 50, 25, 540, 430, 2600 );
|
||||
AddBackground(50, 25, 540, 430, 2600);
|
||||
|
||||
AddPage( 0 );
|
||||
AddPage(0);
|
||||
|
||||
AddHtmlLocalized( 150, 40, 360, 40, 1062610, false, false ); // <CENTER><U>Ultima Online Help Response</U></CENTER>
|
||||
AddHtmlLocalized(150, 40, 360, 40, 1062610, false, false); // <CENTER><U>Ultima Online Help Response</U></CENTER>
|
||||
|
||||
AddHtml( 80, 90, 480, 290, $"{name} tells {from.Name}: {text}", true, true );
|
||||
AddHtml(80, 90, 480, 290, $"{name} tells {from.Name}: {text}", true, true);
|
||||
|
||||
AddHtmlLocalized( 80, 390, 480, 40, 1062611, false, false ); // Clicking the OKAY button will remove the reponse you have received.
|
||||
AddButton( 400, 417, 2074, 2075, 1, GumpButtonType.Reply, 0 ); // OKAY
|
||||
AddHtmlLocalized(80, 390, 480, 40, 1062611, false,
|
||||
false); // Clicking the OKAY button will remove the reponse you have received.
|
||||
AddButton(400, 417, 2074, 2075, 1, GumpButtonType.Reply, 0); // OKAY
|
||||
|
||||
AddButton( 475, 417, 2073, 2072, 0, GumpButtonType.Reply, 0 ); // CANCEL
|
||||
}
|
||||
AddButton(475, 417, 2073, 2072, 0, GumpButtonType.Reply, 0); // CANCEL
|
||||
}
|
||||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
{
|
||||
if ( info.ButtonID != 1 )
|
||||
m_From.SendGump( new MessageSentGump( m_From, m_Name, m_Text ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID != 1)
|
||||
m_From.SendGump(new MessageSentGump(m_From, m_Name, m_Text));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue