mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 07:18:57 +07:00
New Demographics Scoreboard (#6645)
* Healing parity Adjusted healing values for parity with CV * New Demographics system for victory screen rankings Added a new game setup checkbox option to use a ranking system on the victory screen which is more in line with the Civ V Demographics window. Created the UI element and game parameter but the demographics screen still needs to be implemented. Also removed unnecessary comments from adjustments to healing values in a previous update. * Demographics table init Beginning to build structure of Demographics rankings table. * Update VictoryScreen.kt Attempt at getting more of the Demographics table implemented * Update VictoryScreen.kt Continued building the structure of the Demographics table * Demographics first implementation Finished first pass of Demographics screen. * Minor text formatting Improved some text formatting in code and comments. * Update MapUnit.kt Minor comment cleanup. * SomeTroglodyte's Feedback, pt. 1 Implemented feedback given by SomeTroglodyte in PR #6645. * Organized into functions Split up Rankings table creation and Demographics table creation into new functions * Update template.properties Fixed missing space. * Implementing more PR #6645 feedback Added needed translation templates, used enum class instead of array for headers, moved checkbox to Options -> Display instead of new game * Implemented rest of PR #6645 feedback Simplified logic for finding player's rank, value, best/worst civ value, and filtered out defeated civs from the display and calculations * Dead Civs get 0 in all categories Added simple check if a civ is dead when computing score. If they are dead then they get 0 and go to the bottom of the scoreboard. * Update VictoryScreen.kt Further cleaned up code for better reuse and simpler logic with fewer loops. * Update CivilizationInfo.kt Simplified implementation of return 0 for stats when civ is defeated. * Update CivilizationInfo.kt Removed commented-out line of code. * Fixed duplicate rank bug Adjusted method of determining best and worst civs so that duplicates don't occur. * Update VictoryScreen.kt One-lined the handling of logic in buildDemographicsTable() * Update VictoryScreen.kt Moved static header row to new function.
This commit is contained in:

committed by
GitHub

parent
b258b34c89
commit
035b6528a7
@ -639,7 +639,8 @@ Show minimap =
|
||||
off =
|
||||
Show pixel units =
|
||||
Show pixel improvements =
|
||||
Enable nuclear weapons =
|
||||
Enable Nuclear Weapons =
|
||||
Experimental Demographics scoreboard =
|
||||
Show tile yields =
|
||||
Show unit movement arrows =
|
||||
Continuous rendering =
|
||||
@ -1113,6 +1114,13 @@ Global status =
|
||||
Rankings =
|
||||
# The \n here means: put a newline (enter) here. If this is omitted, the sidebox in the diplomacy overview will become _really_ wide.
|
||||
# Feel free to replace it with a space and put it between other words in your translation
|
||||
Demographics =
|
||||
Demographic =
|
||||
Rank =
|
||||
Value =
|
||||
Best =
|
||||
Average =
|
||||
Worst =
|
||||
Turns until the next\ndiplomacy victory vote: [amount] =
|
||||
Choose a civ to vote for =
|
||||
Choose who should become the world leader and win a Diplomatic Victory! =
|
||||
|
Reference in New Issue
Block a user