Commit Graph

2 Commits

Author SHA1 Message Date
896c7dc36a Fix silent proposal-popover repaint bug; add underground target marker
"Accept as..." (proposal type-picker) and "Change type" (entity-edit)
opened to a visibly empty/unchanged popover with no traceback: swapping
an already-open Popover's child and re-popup()ing it reported the right
size internally but the compositor never repainted the reused surface.
Confirmed live via temporary debug instrumentation, not guessed. Fixed
by popping the old popover down and opening a genuinely new one at the
same anchor point instead of resizing in place.

Also adds a Target.underground_tier (1-3) marker: a "Mark underground"
entry in the entity-edit popover, rendered as the game's own Armor-tier
additive badge stacked directly on the unit icon. The badge is
scaled/positioned off its real opaque content (PIL bbox), not its PNG
canvas, since the additive art carries a lot of off-center transparent
padding; and overlaps down into the icon by a fixed pixel amount, since
both shapes taper to a point at the seam and exact bbox-touching still
read as a visible gap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 18:44:36 +02:00
5077cf4d14 Add game-extracted UI icons: target markers, RP letters, shell set, nest, scout plane
Pulled from the game's own GameAssets/Assets/Texture2D (gitignored as a
whole, not redistributed wholesale) into a tracked assets/icons/ so
they're actually usable in FeNigma's UI instead of us redrawing
equivalents:

- targets/enemy/, targets/friendly/: one marker per game unit type
  ('Enemy_*.png' / 'Friendly_*.png', the source files spell the latter
  'Frendly_*.png', corrected on copy).
- reference_points/: the four lettered RP markers ('Refrence_Point_*.png'
  in the source, typo corrected the same way).
- shells/: one icon per Shell enum member (shells.py), named to match
  exactly so they're a direct Shell.name lookup, no mapping table
  needed. A few source files don't carry the shell's short code in
  their name (Mustard Gas_DemoBlocked -> MSTD, Tear Gas -> TEAR,
  Propaganda -> PRPG, Phosgene -> PHGN, Nuclear -> ATMC), documented in
  assets/icons/README.md.
- nest/IronNest.png: the Iron Nest/FDC unit icon.
- misc/ScoutPlane.png: fits the scout-flight planning feature.

Also commits the (already-made, previously uncommitted) .gitignore
entry for GameAssets itself, which is what makes pulling individual
icons out into a tracked directory sensible instead of contradictory.
2026-08-09 18:54:27 +02:00