Skip to content

Newui - #2296

Closed
AffectAge wants to merge 10 commits into
schombert:mainfrom
AffectAge:newui
Closed

Newui#2296
AffectAge wants to merge 10 commits into
schombert:mainfrom
AffectAge:newui

Conversation

@AffectAge

Copy link
Copy Markdown

No description provided.

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.
@AffectAge AffectAge closed this Aug 27, 2026
@AffectAge
AffectAge deleted the newui branch August 27, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant