Files
Battle-for-Tismo/client/js/modals.js
T
adrien 2d36685ca0 Moved tile works into a management panel and put every building on one card
The city buildings tab and the HUD's tile panel now draw the same card: an icon, name and status, a bottom-anchored button carrying the estimated price and build time, a quiet remove control and a hatched locked state, with the produce/consume/cost detail in a hover tooltip. The shared card lives in client/js/ui/card.js.

The tile dock is now a summary — description, production, people and their ethnic makeup, GDP and the improvements list — with a Management button that opens a full-size panel like the city and nation panels. Its Improvements tab holds the grouped Military, Transportation and Economic cards, so Road and Railway sit with the other works. City buildings sit in a two-row horizontal scroller with the built ones first, and the city panel now matches the nation panel's size.

AGENTS.md now asks for a minimal visual preview to be shown before a player-visible change is committed.
2026-09-22 23:51:48 +02:00

17 lines
852 B
JavaScript

// The modal panels of the game HUD: the city panel (train + buildings +
// regional budget), the nation panel (government + technology + budget +
// diplomacy) and the generic confirm and news dialogs. They only display state
// supplied by the game screen and forward the player's choices as orders.
//
// Each panel lives in its own module in ./modals/; this file is the stable
// import path.
export { CityModal } from "./modals/city.js";
export { NationModal } from "./modals/nation.js";
export { TileModal } from "./modals/tile.js";
export { ConfirmModal } from "./modals/confirm.js";
export { NewsModal } from "./modals/news.js";
export { MapModesModal } from "./modals/map_modes.js";
export { CapabilityModal } from "./modals/capabilities.js";
export { describeNews, marketPricesFrom, quotedMoney, quotedBuildCost } from "./modals/format.js";