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:
Kamron Batman 2026-05-03 09:52:17 -07:00 committed by GitHub
parent 2e67e60703
commit acae1c6ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 376 additions and 361 deletions

View file

@ -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;
}

View file

@ -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