perf: Migrate HouseGumpAOS to DynamicGump (#2429)
## Summary - Converts `HouseGumpAOS` from legacy `Gump` to `DynamicGump` with a private constructor and the static `DisplayTo` entry-point pattern. - `AddPageButton`, `AddButtonLabeled`, and `AddList` helpers now write directly to the `DynamicGumpBuilder` via `ref` parameters. - All internal re-display calls and the `HouseSign` / `ConfirmResizeHouseGump` callers route through `HouseGumpAOS.DisplayTo`. - Field naming updated to underscore-prefix convention (`_house`, `_page`, `_from`, `_list`, `_hangerNumbers`, `_foundationNumbers`, `_postNumbers`, `_houseSigns`).
This commit is contained in:
parent
2e67e60703
commit
acae1c6ead
4 changed files with 376 additions and 361 deletions
|
|
@ -62,7 +62,7 @@ public class ConfirmResizeHouseGump : StaticGump<ConfirmResizeHouseGump>
|
|||
|
||||
if (info.ButtonID == 0)
|
||||
{
|
||||
from.SendGump(new HouseGumpAOS(HouseGumpPageAOS.Customize, from, _house));
|
||||
HouseGumpAOS.DisplayTo(from, _house, HouseGumpPageAOS.Customize);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,11 +23,6 @@ namespace Server.Gumps
|
|||
|
||||
protected override void BuildLayout(ref DynamicGumpBuilder builder)
|
||||
{
|
||||
if (_house.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
builder.AddPage();
|
||||
|
||||
builder.AddBackground(0, 0, 420, 430, 5054);
|
||||
|
|
@ -121,11 +116,6 @@ namespace Server.Gumps
|
|||
|
||||
protected override void BuildLayout(ref DynamicGumpBuilder builder)
|
||||
{
|
||||
if (_house.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
builder.AddPage();
|
||||
|
||||
builder.AddBackground(0, 0, 420, 430, 5054);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue