ModernUO/Projects/UOContent/Gumps/Base/Legacy
Kamron Batman bc6735bd23
feat: Adds grid support for the DynamicGump system (#2306)
### Summary 

- Adds a new grid layout system for DynamicGump with zero heap allocations
 - Migrates SpawnerControllerGump from legacy GumpGrid to DynamicGump
 - Migrates CommandListGump from BaseGridGump to DynamicGump
 - Removes legacy GumpGrid (no longer needed)

 ### New Grid Layout Components

 | Component | Purpose |
 |-----------|---------|
 | `GridCell` | Value type for cell bounds (x, y, width, height) |
 | `GridSizeSpec` | Parses CSS-like sizing specs ("10*", "*", "100") |
 | `GridCalculator` | Computes track positions using stackalloc |
 | `ListViewLayout` | Pagination + column layout for list views |
 | `GridBuilderExtensions` | Extension methods accepting `GridCell` |
 | `GridEntryStyle` | Styling properties for BaseGridGump migration |
 | `GridEntryExtensions` | Entry methods matching BaseGridGump patterns |

 ### Memory Impact

 | Component | Legacy | New |
 |-----------|--------|-----|
 | Grid storage | ~200 bytes heap | 0 bytes (stackalloc) |
 | Column/Row lists | ~400 bytes heap | ~128 bytes stack |
 | ListView | ~300 bytes heap | ~64 bytes stack |
 | **Total per render** | **~900 bytes heap** | **0 bytes heap** |

 ### Test plan

 - [x] All 21 gump tests pass
 - [x] Build succeeds with no warnings
 - [ ] In-game verification of SpawnerControllerGump
 - [ ] In-game verification of CommandListGump (HelpInfo command)
2026-01-03 10:12:22 -08:00
..
Gump.cs feat: Adds size/style support to gump builders, optimizes EscapeHtml (#2257) 2025-11-23 11:35:31 -08:00
GumpAlphaRegion.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpBackground.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpButton.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpCheck.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpECHandleInput.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpEntry.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpGroup.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpHtml.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpHtmlLocalized.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpImage.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpImageTileButton.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpImageTiled.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpItem.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpItemProperty.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpLabel.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpLabelCropped.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpMasterGump.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpPage.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpRadio.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpSpriteImage.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpTextEntry.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpTextEntryLimited.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00
GumpTooltip.cs feat: Moves gumps out of the core (#1916) 2024-08-09 19:07:32 -07:00