Repository navigation
Conversation
When the tech being researched is discovered, the original shows only its splash screen: the civic and "what to research next" questions come after it is closed, so Esc closes the splash first (Wine, BUG + BULL). OpenCiv4 showed the popups at once under the splash, and Esc closed the popup underneath. The game's queued popups now wait while a screen of its own (an advisor, a splash, a wonder's movie) is up, as wonder movies already did; what is opened at once (the game's menu, a script's popup) still shows over it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1fe377d)
With the tech being researched given in a trade, OpenCiv4 showed "What would you like to research next?" over the leader's talk. The original holds the game's queued popups while a talk is up and shows them after it closes (Wine, BUG + BULL: the research question queued at a turn's end waits under the AI's first-contact talk and comes after Farewell). The game's queued popups now wait for the talk as they wait for a screen of its own; what is opened at once still shows over it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0483e5a)
…hown Three pieces, found with BUG's tech advisor in Wine (BUG + BULL): - A panel's colour from setPanelColor tints the layers its theme style tints by the panel's own inner colour (FactorColor GFC_Control_Panel_Color_Inner, Modulate): Panel_Tech_Style's tech_panel01. Known techs are green, the one researched and the queued cyan, the others blue, as in the original; they were all blue. - The tech advisor is told when the active player's research changes (a tech clicked, Shift-clicked into the queue, learnt, a new turn), as the original engine calls CvScreensInterface.forceScreenUpdate for it, and redrawn when it comes up (the turns left show at once). A click did choose the tech, but the screen never showed it. - addScrollPanel draws no panel: the engine's GScrollPanel is transparent (Civ4Theme_ScrollPanel.thm, GFC_CF_TRANSPARENT). The techs lie on the advisor's parchment, not the external style's blue; the city screen's right column loses a blue block Wine does not have. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 8a0fdf3)
…link) oc4core links the game core through its import library on Windows, where only its exported functions can be called; CvTeam::isHasTech, getResearchProgress, CvPlayer::getQueuePosition, calculateResearchRate and CvGlobals::getNumTechInfos are not (LNK1120 on windows-x64). The research state the tech advisor is told about is now read by oc4screens.researchState through the scripts' CyPlayer and CyTeam, as a string compared each frame. The same values, the same behaviour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit d562307)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4 (base
tech-tree-button), so the AppImage gets it.What it does
Four commits by MortenLyhr, cherry-picked with
-xfrom two upstream pull requests that are not merged yet. Each applied without a conflict, and the authors are kept.When bssth#111 and bssth#150 are merged upstream, these come in with them. They are not to be proposed upstream again.
Checked
tools/parity.sh, 8 games, run on the AppImage's ownoc4core): all 8 games the same.🤖 Generated with Claude Code