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,31 +1,25 @@
|
|||
using Server.Network;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class HonorSelf: Gump
|
||||
{
|
||||
PlayerMobile m_from;
|
||||
public HonorSelf( PlayerMobile from ) : base( 150, 50 )
|
||||
{
|
||||
m_from = from;
|
||||
AddBackground(0, 0, 245, 145, 9250);
|
||||
AddButton(157, 101, 247, 248, 1, GumpButtonType.Reply, 0);
|
||||
AddButton(81, 100, 241, 248, 0, GumpButtonType.Reply, 0);
|
||||
AddHtml( 21, 20, 203, 70, @"Are you sure you want to use
|
||||
honor points on yourself?", true, false);
|
||||
}
|
||||
public class HonorSelf : Gump
|
||||
{
|
||||
private PlayerMobile m_from;
|
||||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
{
|
||||
|
||||
if ( info.ButtonID == 1 )
|
||||
{
|
||||
HonorVirtue.ActivateEmbrace(m_from);
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public HonorSelf(PlayerMobile from) : base(150, 50)
|
||||
{
|
||||
m_from = from;
|
||||
AddBackground(0, 0, 245, 145, 9250);
|
||||
AddButton(157, 101, 247, 248, 1, GumpButtonType.Reply, 0);
|
||||
AddButton(81, 100, 241, 248, 0, GumpButtonType.Reply, 0);
|
||||
AddHtml(21, 20, 203, 70, @"Are you sure you want to use
|
||||
honor points on yourself?", true, false);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID == 1) HonorVirtue.ActivateEmbrace(m_from);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue