Skip to content

Add ruleset-driven diplomacy dialogue system#285

Open
Finnik723 wants to merge 1 commit intoftafrom
diplomacy-actions
Open

Add ruleset-driven diplomacy dialogue system#285
Finnik723 wants to merge 1 commit intoftafrom
diplomacy-actions

Conversation

@Finnik723
Copy link
Collaborator

Introduces a new diplomacy dialogue UI driven by ruleset-defined actions, allowing players to interact with factions through a list of configurable actions with custom conditions and effects. Adds RuleDiplomacyAction class, supporting action availability, effects, cooldowns, and special navigation. Updates Mod, GeoscapeState, and related classes to support loading, validation, and cooldown ticking for diplomacy actions. Includes documentation and test ruleset for the new system.

Improve diplomacy dialogue UI and action handling

Refactored DiplomacyDialogueState to add a dedicated close hint text field, improve layout and word wrapping, and enhance the actions list with better scrolling and selector offset handling. Updated TextList to support configurable selector offset and improved mouse over behavior. Cleaned up unused includes in RuleDiplomacyAction.cpp.

Introduces a new diplomacy dialogue UI driven by ruleset-defined actions, allowing players to interact with factions through a list of configurable actions with custom conditions and effects. Adds RuleDiplomacyAction class, supporting action availability, effects, cooldowns, and special navigation. Updates Mod, GeoscapeState, and related classes to support loading, validation, and cooldown ticking for diplomacy actions. Includes documentation and test ruleset for the new system.

Improve diplomacy dialogue UI and action handling

Refactored DiplomacyDialogueState to add a dedicated close hint text field, improve layout and word wrapping, and enhance the actions list with better scrolling and selector offset handling. Updated TextList to support configurable selector offset and improved mouse over behavior. Cleaned up unused includes in RuleDiplomacyAction.cpp.
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