fix: Optimizes gump relay info (Prep for Static Gumps) (#1698)
This commit is contained in:
parent
50fcee12dc
commit
cfe9e04c78
220 changed files with 364 additions and 402 deletions
|
|
@ -81,7 +81,7 @@ public class HairDyeGump : Gump
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState from, RelayInfo info)
|
||||
public override void OnResponse(NetState from, in RelayInfo info)
|
||||
{
|
||||
if (_hairDye.Deleted)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ public partial class InteriorDecorator : Item
|
|||
AddHtmlLocalized(90, 150, 70, 40, 1018325); // Down
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
var command = info.ButtonID switch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -346,7 +346,7 @@ public class PlayerBBGump : Gump
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
var page = _page;
|
||||
var from = _from;
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ public partial class ControlPanel : AddonComponent
|
|||
AddImage(x, y, id);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
if (m_Panel.Deleted || info.ButtonID == 0 || !m_From.CheckAlive())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public abstract partial class PromotionalToken : Item
|
|||
AddButton(90, 95, 0xF2, 0xF1, 0); // Cancel
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID != 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ public class MoongateGump : Gump
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState state, RelayInfo info)
|
||||
public override void OnResponse(NetState state, in RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID == 0) // Cancel
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class SpecialBeardDyeGump : Gump
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState from, RelayInfo info)
|
||||
public override void OnResponse(NetState from, in RelayInfo info)
|
||||
{
|
||||
if (_specialBeardDye.Deleted)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class SpecialHairDyeGump : Gump
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState from, RelayInfo info)
|
||||
public override void OnResponse(NetState from, in RelayInfo info)
|
||||
{
|
||||
if (_specialHairDye.Deleted)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public abstract partial class BaseWindChimes : Item
|
|||
AddHtmlLocalized(190, 55, 100, 35, 1011012); // CANCEL
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
var from = sender.Mobile;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue