FEnigma/assets/icons
Dominik Roth 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
..
misc Map: render entity game icons instead of plain dots once zoomed in 2026-08-09 20:45:15 +02:00
nest Add game-extracted UI icons: target markers, RP letters, shell set, nest, scout plane 2026-08-09 18:54:27 +02:00
reference_points Add game-extracted UI icons: target markers, RP letters, shell set, nest, scout plane 2026-08-09 18:54:27 +02:00
shells Shell icon picker: fix real sizing bugs, crop icon padding, inline grid for Add Strike 2026-08-09 19:28:41 +02:00
targets Fix silent proposal-popover repaint bug; add underground target marker 2026-08-13 18:44:36 +02:00
README.md Rename the display name from FeNigma to FEnigma 2026-08-10 21:42:07 +02:00

Icons

Extracted from the game's own GameAssets/Assets/Texture2D (gitignored, not redistributed as a whole), for reuse in FEnigma's UI rather than redrawing equivalents from scratch. Two source filenames had typos in the game files themselves ("Frendly_", "Refrence_Point_"), corrected here on copy; everything else keeps its original name.

  • targets/enemy/, targets/friendly/ - one marker icon per game unit type, Enemy_*.png / Friendly_*.png (originally Frendly_*.png). Not a strict 1:1 with TargetType in models.py, the game has more unit types than this app currently tracks as targets, pick whichever fits closest per type.
  • reference_points/ - ReferencePoint_A.png .. _D.png (originally Refrence_Point_*.png), the four lettered RP markers.
  • shells/ - one icon per Shell enum member in shells.py, named to match exactly (AP.png, HE.png, ...), safe to look up by Shell.name directly. Source filenames for the ones without a game short-code baked in: MSTD <- "Mustard Gas_DemoBlocked.png", TEAR <- "Tear Gas.png", PRPG <- "Propaganda.png", PHGN <- "Phosgene.png", ATMC <- "Nuclear.png".
  • nest/IronNest.png - the Iron Nest / FDC unit icon (originally "IronNest Unit Icon.png").
  • misc/ScoutPlane.png - scout-flight icon (originally "Scout Plane B.png"), fits the app's scout flight planning feature.