Repository navigation
Fix city plot rings and show stacked tile yields - #55
go140point6 wants to merge 1 commit into
Conversation
…elds go140point6's bssth#55 ("Fix city plot circles and display stacked tile yields"), rebased on master by mortenlyhr. Its plot circle part and the Overlay::outline helper it used are left out: bssth#151, now merged, draws the city's plot circles on the ground. Its resource icon box gave way to master's resource bubbles. Kept as bssth#55 has them: the yields as the game's stacked yield art (maxYieldStack a stack), and on a city's screen the yields of the plots the city can work.
|
Hi @go140point6, thanks again for this one. The stacked yield icons look great, and my #164 builds on them. #55 and #164 both conflicted with master after the last round of merges. So that #164 could stand on its own, I rebased your commit onto master and put it at the base of #164 (#164). You're still the commit's author, and #164 credits you and links back here. In the rebase I left out the plot-circle part (and the If #164 is merged, everything #55 brings would be in master, so this PR could then be closed. That's up to you and the maintainers, of course. If you'd rather land #55 yourself first, I'm happy to rebase #164 onto it instead. |
What it changes
Opening a city did not automatically show its tiles' yields, and the worked-plot rings stayed flattened even in the overhead city view. The optional map yield overlay used small, evenly spaced font icons instead of the game's stacked artwork.
CIV4YieldInfos.xmland draw food, production and commerce stacks side by side. Both views use the larger size rule, and quantities aboveMAX_YIELD_STACKuse additional groups. Game-font symbols are the fallback when stack textures are unavailable.canWorkis called through the existing Python API for the city's plots because it is not exported by the Windows game-core DLL. The game-core sources and submodule revision are unchanged. No game assets or saves are included in the source branch.Screenshots
City view, with yields shown without enabling the map toggle:
Normal map, with the yield toggle enabled:
How it was checked
ctest --test-dir build\Releasepasses: 12/12 on native Windows, built with Visual Studio 2026 in Release mode.--turns 100 --map Fractal --size STANDARD --seed 7matches unmodified0562d4e, ending atD7D43800.git diff --checkpasses.Related independent visual PRs and possible merge overlap
This PR, #56, and #57 are based on separate branches created directly from upstream
master(0562d4e). They do not contain or depend on one another, so each can be reviewed and merged independently in any combination. All three touchsrc/render/MapView.cppin separate feature areas, so merging them in a different order may produce a small mechanical conflict even though there is no functional dependency.