ModernUO/Projects/UOContent/Items/Addons
Kamron Batman ec85d97482
perf: Migrate Holiday and Decorative gumps to DynamicGump/StaticGump (#2413)
## Summary

Migrates 10 player-facing legacy `Gump` subclasses for holiday and decorative items to the modern `DynamicGump` / `StaticGump<T>` system. All migrated gumps are `Singleton`, use private constructors gated by static `DisplayTo(...)` entry points (empty-gump rule, CLAUDE.md §13), and replace legacy `m_X` fields with `_x` per coding standards.

Per-gump base type and rationale:

- **Mistletoe.cs** — `MistletoeAddonGump` -> `StaticGump<MistletoeAddonGump>`. Fixed re-deed confirmation layout.
- **StValentinesBears.cs** — Renamed `InternalGump` -> `StValentinesBearsGump`, base `StaticGump<T>`. Fixed sign-bear layout with three text entries; legacy `m_Bear` -> `_bear`. Switched legacy `AddTextEntry(..., size)` -> `AddTextEntryLimited(...)` (modern API split).
- **Wreath.cs** — `WreathAddonGump` -> `StaticGump<WreathAddonGump>`. Fixed re-deed confirmation layout.
- **HolidayPottedPlant.cs** — Renamed `InternalGump` -> `HolidayPottedPlantGump`, base `StaticGump<T>`. Fixed plant-picker layout.
- **SnowStatue.cs** — Renamed `InternalGump` -> `SnowStatueGump`, base `StaticGump<T>`. Fixed statue-picker layout. Dropped unused `Mobile from` ctor arg.
- **TapestryOfSosaria.cs** — Renamed `InternalGump` -> `TapestryOfSosariaGump`, base `StaticGump<T>`. Single image, fixed.
- **HouseRaffleDeed.cs** — `WritOfLeaseGump` -> `DynamicGump`. Description HTML is computed per-instance from deed expiration / days-left, so layout text varies per instance. Added `Singleton => true` (was missing implicitly via legacy default).
- **SpecialScroll.cs** — Renamed `InternalGump` -> `SpecialScrollGump`, base `DynamicGump`. **Cliloc rule**: `_scroll.Message`, `_scroll.Title`, `_scroll.SkillLabel` are dynamic cliloc numbers per scroll type — `AddHtmlLocalized` bakes the cliloc number into the cached layout, so `StaticGump<T>` cannot cache it.
- **BallotBox.cs** — Renamed `InternalGump` -> `BallotBoxGump`, base `DynamicGump`. Layout shape varies: variable topic-line count, owner-vs-voter buttons, and vote-tally bars all add/remove elements. Legacy `m_Box` -> `_box`. Updated the `TopicPrompt` callbacks to call `BallotBoxGump.DisplayTo(...)` instead of allocating a new gump directly.
- **AquariumGump.cs** — `AquariumGump` -> `DynamicGump`. Per-page layout depends on each item's `LabelNumber` and (for `BaseFish`) `GetDescription()` cliloc — those vary per fish/decoration. Two `DisplayTo` overloads (auto-detect access vs explicit edit flag) to mirror the original two call sites in `Aquarium.cs`. Legacy `m_Aquarium` -> `_aquarium`.

### Skipped

- **HouseRaffleManagementGump.cs** — Skipped as **staff-only**. Only invoked via `ManagementEntry` context entry inside `HouseRaffleStone.cs`, gated by `from.AccessLevel >= AccessLevel.Seer`. Per task instructions, staff-only gumps are out of scope for this PR.

### External callers updated

- `Aquarium.cs` — Two `new AquariumGump(...)` sites swapped to `AquariumGump.DisplayTo(...)`.

All other migrated inner classes were nested in the same file and only had local references, which were updated to call the new `DisplayTo(...)` static entry point.
2026-04-25 17:22:41 -07:00
..
AbbatoirAddon.cs
AddonComponent.cs
AddonContainerComponent.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
AlchemistTableEastAddon.cs
AlchemistTableSouthAddon.cs
AnvilEastAddon.cs
AnvilSouthAddon.cs
ArcaneBookshelfEastAddon.cs
ArcaneBookshelfSouthAddon.cs
ArcaneCircleAddon.cs
ArcanistStatueEastAddon.cs
ArcanistStatueSouthAddon.cs
ArcheryButteAddon.cs
BallotBox.cs perf: Migrate Holiday and Decorative gumps to DynamicGump/StaticGump (#2413) 2026-04-25 17:22:41 -07:00
BaseAddon.cs
BaseAddonContainer.cs
BaseAddonContainerDeed.cs fix: Moves containers/bods/traps/etc to serialization generator (#2310) 2026-01-07 21:55:55 -08:00
BaseAddonDeed.cs fix: Optimizes items to use default weights. (Part 1) (#2240) 2025-07-24 14:44:39 -07:00
BearRugs.cs
BloodPentagram.cs
DartBoard.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
ElvenBedEastAddon.cs
ElvenBedSouthAddon.cs
ElvenDresserEastAddon.cs
ElvenDresserSouthAddon.cs
ElvenForgeAddon.cs
ElvenLoveseatEastAddon.cs
ElvenLoveseatSouthAddon.cs
ElvenSpinningWheelEastAddon.cs
ElvenSpinningwheelSouthAddon.cs
ElvenStoveEastAddon.cs
ElvenStoveSouthAddon.cs
ElvenWashbasinEastAddon.cs
ElvenWashbasinSouthAddon.cs
FancyElvenTableEastAddon.cs
FancyElvenTableSouthAddon.cs
FireColumnAddon.cs
FlourMillEastAddon.cs
FlourMillSouthAddon.cs
FlowerTapestries.cs
GiantWebs.cs
GozaMats.cs
GrayBrickFireplaceEastAddon.cs
GrayBrickFireplaceSouthAddon.cs
JackOLantern.cs
LargeBedEastAddon.cs
LargeBedSouthAddon.cs
LargeForgeEastAddon.cs
LargeForgeSouthAddon.cs
LargeStoneTableEastAddon.cs
LargeStoneTableSouthAddon.cs
LoomEastAddon.cs
LoomSouthAddon.cs
MediumStoneTableEastAddon.cs
MediumStoneTableSouthAddon.cs
OrnateElvenChestEastAddon.cs
OrnateElvenChestSouthAddon.cs
OrnateElvenTableEastAddon.cs
OrnateElvenTableSouthAddon.cs
ParrotPerchAddon.cs
PentagramAddon.cs
PickpocketDips.cs
PyramidAddon.cs
RejuvinationAnkhs.cs
SandstoneFireplaceEastAddon.cs
SandstoneFireplaceSouthAddon.cs
SandstoneFountainAddon.cs
SerpentPillarAddon.cs
ShrineOfWisdomAddon.cs
SHTeleporter.cs
SkullPileAddon.cs
SmallBedEastAddon.cs
SmallBedSouthAddon.cs
SmallForgeAddon.cs
SolenAntHole.cs
SpinningwheelEastAddon.cs
SpinningwheelSouthAddon.cs
SquirrelStatueEastAddon.cs
SquirrelStatueSouthAddon.cs
StoneFireplaceEastAddon.cs
StoneFireplaceSouthAddon.cs
StoneFountainAddon.cs
StoneOvenEastAddon.cs
StoneOvenSouthAddon.cs
StretchedHides.cs
TallElvenBedEastAddon.cs
TallElvenBedSouthAddon.cs
Telescope.cs
TrainingDummies.cs
WarriorStatueEastAddon.cs
WarriorStatueSouthAddon.cs
WaterTroughEastAddon.cs
WaterTroughSouthAddon.cs
WaterVat.cs