Newui - #2296
Closed
AffectAge wants to merge 10 commits into
Closed
Conversation
Enable zooming and proper scaling for technology tree nodes. Introduces a tech_name pointer and set_tree_scale on technology_item_window to position/resize button and label (calls impl_on_update to avoid GUI key overwrite). technology_tree_view gains zoom, min/max limits, scaled() helper and update_node_scales(); content/layout and node positions now respect zoom. draw_connection visuals and arrow head updated for clarity. Nodes are initialized with scale and category payload handling is improved. Scrolling now zooms around the cursor and keeps layout clamped.
Overhaul influence mechanics: disable legacy manual influence/sabotage commands (can_* now return false and execute_* guard), remove AI's perform_influence_actions call and keep only priority selection, and drop legacy opinion/sabotage tiers except level_in_sphere for compatibility. Reimplement daily influence accumulation (batched gains), decay, overflow resolution per-target, and sphere transfer rules tied to max_influence. Update GUI and tooltips to show influence leaders/contenders and hide legacy banned/discredited icons. Minor build and tooling tweaks: add MSVC /MP compile option and expand AGENTS.md with development/release build instructions.
This change adds localized tooltip text and richer diplomacy panels for great-power influence and foreign investment, including status, leader/gap details, and investment modifiers. It also removes obsolete sabotage GUI slots and rebalances influence overflow so pressure is spread across rival great powers instead of only the leader.
Move large inline technology window implementation into the .cpp and provide concrete on_create/make_child/set/get methods. Wire up tab folder buttons, tech tree view, selection handling and invention sorting. Add a prerequisites section to the technology description (localized key "technology_prerequisites" added to en-US and ru-RU). Fix connector geometry in the tech tree so lines end flush with card edges and adjust arrow head placement. Also reorder simple_body_text initialization to determine font color before producing text.
Re-enabled the population national-focus action and switched the topbar population tab back to the standard population window. The demographic description helpers were split into promotion and demotion functions and re-exported under the ui namespace for compatibility.
Implement variable tooltips for budget section headers and add matching localization. budgetwindow.cpp: enable variable_tooltip behavior and implement update_tooltip to show category-specific text, current budget setting (when applicable) and the actual amount using economy estimators. assets/localisation/en-US/alice.csv and assets/localisation/ru-RU/alice.csv: add tooltip strings for many budget categories plus setting/actual formats. Result: richer, localized budget tooltips that display explanatory text and live values per category.
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.
No description provided.