Commit Graph

416 Commits

Author SHA1 Message Date
itanasi
22f9936a34
Add Transform Action for mods (#8120)
* Initial version of code

* Enable cost=0 for buttons

* Add Conditional to Transform

* Fix translation file

* Add icon
Allow other Conditionals

* Updated icon

* Add credit

* switch hotkey

* Fix icon

* Remove Conditional Costs

* Remove vestigal Stats costs for Transform

* Minor cleanup
2023-01-14 20:43:48 +02:00
Yair Morgenstern
f9da3204b6 Resolve #8336 - Remove 'incorrect area' code for super-old maps 2023-01-08 19:09:17 +02:00
Yattong the Mackerel
d69c645035
Fixing duplocation (#8314)
[0516] It looks like your map can't be saved! = 
[0685] Multiplayer = 
[1155] National ability = 
[1357] Version = 
[1508] Location = 
[1599] Filter: = 
[1600] Enter search text =
2023-01-05 15:39:05 +02:00
Yattong the Mackerel
0be1794e94
Update template.properties (#8305) 2023-01-04 15:42:00 +02:00
Philip Keiter
1532216335
Add new game option to randomly select from map options. (#8271)
* Add new game option to randomly select from map options.

* Remove unused isPortrait.

* Remove unused isPortrait.

* Make other settings collapsable when using random generated.

* Make Random Generated settings start collapsed. Make padding consistent.

* Remove colons from ExpanderTab titles.

* Append "Enabled" before random map options.

* Append missing = in template.

* DRY the world wrap warning.

* Update JavaDoc of MultiCheckboxTable.
2023-01-03 21:56:41 +02:00
Ouaz
1c85388ee8
Translate "Sell" in city screen (#8297) 2023-01-03 00:40:34 +02:00
vegeta1k95
72eb9504b8
Fixed PolicyScreen branches requirements text (#8280)
* Fixed PolicyScreen branches requirements text

* Generify conditionals text pattern

* Remove GlobalAlert uniques from displaying in Policy descriptions

* Fix translations

* Fix freeze on "Tiny" displays

Co-authored-by: tunerzinc@gmail.com <vfylfhby>
2023-01-02 18:48:11 +02:00
alexban011
0273f8a38b
added buttons for controlling music (#8256)
* added buttons for controlling music

* translations

* checks

* added `Music` to translations
2022-12-29 21:20:45 +02:00
Philip Keiter
37250cc65d
Add checkbox to Settings AdvancedTab to enable or disable easter eggs. (#8248) 2022-12-28 08:17:27 +02:00
Yair Morgenstern
f45d23d8d5 Revert "Demographics removed - resolves #8215"
This reverts commit c7f5a34c04.
2022-12-28 08:10:27 +02:00
Yair Morgenstern
c7f5a34c04 Demographics removed - resolves #8215 2022-12-27 22:33:07 +02:00
Yair Morgenstern
d1cb47054c World wrap available by default for all players 2022-12-27 22:30:27 +02:00
Yattong the Mackerel
e4264213c7
Update template.properties (#8236) 2022-12-26 17:05:25 +02:00
letstalkaboutdune
8d0acd0647
Added keyboard shortcut to toggle World Screen UI elements (#8211)
* AbsoluteUnits - Mongolian Uniques

* Added keyboard shortcut to toggle World Screen UI elements

Ctrl+U to toggle

* Update WorldScreen.kt

* Added a pesky space

* Remove "Experimental" warning text

* Revert "Remove "Experimental" warning text"

This reverts commit 3c8456db95.
2022-12-24 19:41:35 +02:00
alexban011
994169944a
showed unknown civs as Unknown civilization in GP and Diplomacy screens (#8184)
* added mod topics to wiki

* fixed stats from revealing unknown civs and cityStates

* Revert "added mod topics to wiki"

This reverts commit 5528950a96.

* used knows() instead of getKnownCivs().contains()

* showed politics when you don't know the civ in GlobalPoliticsOverviewTable

* Replaced unknown civs name with `Unknown civilization` in DiplomacyScreen

* forgot to remove a couple lines

* translated the strings for the protectors

* reviews

* made function and tested translations
2022-12-24 19:40:36 +02:00
vegeta1k95
78c4f6de68
Big rework of Policy Picker UI, added new ninepatch RoundedEdgeRectangleSmall (#8218)
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
2022-12-24 19:17:00 +02:00
Philip Keiter
9f6aa4b90f
Add new game option: No City Razing. (#8203) 2022-12-22 07:41:08 +02:00
Yattong the Mackerel
68fc0487c1
Update template.properties (#8189) 2022-12-20 11:39:18 +02:00
Philip Keiter
f974c3a8a5
Continent and Islands (#8187)
* Update comments that got outdated.

* Add map type: Continent and Islands
2022-12-20 08:35:13 +02:00
Ouaz
f331ac69e4
Fix new "temperature" map setting not translatable (#8173) 2022-12-18 21:23:05 +02:00
Philip Keiter
02f9176f78
Flat Earth Hexagonal (#8140)
* Add new map shape: Flat Earth Hexagonal.

* Make flat earth logic easier to read.

* Make flat earth set temperature based on tile distance from center.

* Make flat earth waste less space on the ice ring.

* Add variety to the flat earth ice ring.

* Use baseTerrain for snow on flat earth edge instead of addTerrainFeature.

* Ensure flat earth center tiles and edge tiles are ocean not coast.

* Give flat earth ice ring some random juts and dips.

* Make 3rd continent smaller when flat earth.

* Enable more continent positions for three continents when flat earth.

* Add parens around or statement.

* Refactor flat earth temperature code into functions.

* Invert some flat earth if statements to reduce nesting.

* Allow coast near flat earth ice walls.

* Make flat earth ice wall generation more efficient.

* Stop adding ice to flat earth mountains.

* Move flat earth ice wall generation to its own function.

* Improve flat earth water placement comments.

* Move flat earth extra water generation to its own function.

* Move flat earth center ice spawn to its own function.

* Move flat earth edge ice spawn to its own function.

* Minor efficiency tweak.

* Add Flat Earth Hexagonal to template.
2022-12-16 11:08:04 +02:00
vegeta1k95
dc3809de84
"Auto Unit Cycle" and "Automated units move on turn start" options implemented (Civ 5) (#8144)
* "Auto Unit Cycle" and "Automated units move on turn start" options implemented (Civ 5)

* Removed threading, added translation template for strings

Co-authored-by: tunerzinc@gmail.com <vfylfhby>
2022-12-15 21:51:17 +02:00
Ouaz
65c5ce52ec
New map options translatable (#8135) 2022-12-15 07:20:52 +02:00
alexban011
ccb1d769f1
added button to paste from clipboard when downloading a mod (#8101) 2022-12-07 21:14:54 +02:00
Yair Morgenstern
454f999948 Resolved #8090 - Replaces misunderstood 'virtual resolutions' with more intuitive 'screen size' 2022-12-05 18:56:47 +02:00
Yair Morgenstern
1d5d445c19 After-combat notification for promotable units - see #4697 2022-12-03 23:12:01 +02:00
itanasi
16a7eed4ff
Add Repair and Pillaging Roads (#8015)
* Reapply Changes

* Logic clean up

* Adding getImprovementToPillage() and getRepairableImprovement()

* Cleaning up Unit Actions

* getImprovementToPillage() needs to check for Unpillagable

* Remove redundant logic since canBuildImprovement() returns true if currently repairing

* More redundant logic

* Prevent City Center from being Pillage status
addRepairAction will not show a Repair Action
Adding the improvement to be repaired/pillaged in button text
Utilizing getImprovementToPillage() more

* Some import cleanup
Add Irremovable to blockers
More consolidation of code

* More translation files

* When improvements/roads are built/removed, pillaged flag set to False

* Better and more consistent logic

* Fix dumb logic bug
2022-11-27 19:12:26 +02:00
Ouaz
5dc46c3ad5
New "Unitset" option translatable (#8006)
Makes "Unitset" translatable (related to #7980)
2022-11-13 07:26:58 +02:00
itanasi
c39aca7a31
Change Default Map Generation to Perlin (#7856)
* Changes

* Slight adjustment to MainMenuScreen

* Make default waterThreshold for Default to be -0.05

* blip

* blip

* Rename cellular automata to Smoothed Random
2022-10-22 20:11:55 +03:00
nacro711072
ad72c42911
fix untranslated string about politics (#7901)
* fix untranslated string about politics

* update shortcut about textbutton

* check all usage of template "[numberOfTurns] Truns Left"

* revert textbotton and add click event by chain.
2022-10-07 12:36:00 +03:00
Xander Lenstra
7f365423e1
Spies now show their current action and take time to move and set up (#7776)
* Spies now show their current action and take time to move and set up

* Fixed tests

* Reviews

* More reviews
2022-09-19 16:13:57 +03:00
alexban011
d980b0d9ff
Global politics overview screen (#7469)
* getting the data

* finished getting the data

* optimization + separator

* vrtical separators

* more functions

* made it look good

* reverted debug variables

* cleanup

* added icon

* credits

* translations

* removed redundant equalizeColumns

* removed redundant separator

* column headers

* reviews

* removed redundant function

* latest translations

* latest review

* checks 1

* removed space

* removed vars and used DiplomacyManager instead

* combined overview screens

* 2 more translations

* little cleanup and fix
2022-09-19 16:12:24 +03:00
xk730
452d152176
Added missing translatables (#7770)
* Update template.properties

Add the ’No space to place this unit‘

* Update template.properties

Add the "Couldn't connect to Multiplayer Server!"
2022-09-10 08:00:17 -07:00
Ouaz
81d2320824
Add "UI Skin" to make it translatable (#7748) 2022-09-06 10:27:14 +03:00
Xander Lenstra
a19fed5d28
Added a screen to move spies between cities (#7665)
* Added a screen to move spies between cities

* Fixed tests

* Reviews

* Avoid labels blinking

Co-authored-by: JackRainy <JackRainy@users.noreply.github.com>
2022-08-28 23:25:14 +03:00
alexban011
f64c5b36d0
added game option to disable unwanted spectators from a multiplayer game (#7290)
* feature

* only display option if onlineMultiplayer is enabled

* translatable

* no more negativity

* 1

* threw UncivShowableException

* reviews

* reviewed myself
2022-08-22 21:11:12 +03:00
Xander Lenstra
202e0bcf47
Basic version of EspionageManger, added a unique to gain spies (#7641)
* Handfull of comment questions, small refactorings

* Code changes

* Reworded a unique, removed a file

* Added spy names for all nations, minor consistency change

* Removed debug output

* Added an empty constructor so gdx can reconstruct it
2022-08-13 22:45:16 +03:00
Ouaz
9326f47cdf
Fix an untranslated string (#7656)
when trying to launch a new game on a map that is not compatible with the ruleset.
2022-08-13 13:08:53 +02:00
OptimizedForDensity
8f23ae52cc
List which city owns each tile in the city screen UI (#7631) 2022-08-12 14:26:09 +03:00
OptimizedForDensity
28f65a7599
Add free belief unique + refactor a few religion functions (#7612)
* Free belief unique

* Fix edge case

* Another edge case

* Bug fixes

* Fix some conditions

* Refactor another function

* Handle edge case where the civ has enough faith for a pantheon but also gets a free pantheon pick on the same turn (allow civ to have both picks)

* Fix the edge case handling

* Cleanup

* Reviews + more refactoring and cleanup

* Update comments

* Unnecessary comment

* Improvements

* Typo
2022-08-12 14:24:42 +03:00
Ouaz
9ca5b0f850
Fix missing "HP" in battle notifications (#7638)
These two missing "HP" caused these two lines to not be translated in the notification log.
2022-08-08 08:50:02 +03:00
OptimizedForDensity
b630388984
Add unit type to Civilopedia (#7620) 2022-08-07 17:37:11 +03:00
itanasi
69e6093e2e
Update Damage Notifications (#7623)
* Minor Compile change

* Update to -[amount] HP for battle notifications
Update Unseen Interceptor Notification

* Update to -[amount] HP for battle notifications
Update Unseen Interceptor Notification

* Revert "Update to -[amount] HP for battle notifications"

This reverts commit 63961029da.

* Rename variables

* Even if you can't see the Interceptor Tile, still get full info if not killed
2022-08-06 13:23:42 -04:00
Kostiantyn Kolesnichenko
7a30e29e07
Add missing string to the translations template file (#7627)
Co-authored-by: Kostiantyn Kolesnichenko <mormat.iam@gmail.com>
2022-08-06 09:14:21 -04:00
Nika Kasradze
33ca2d8ef9
fix #7565: Remove duplicate "Consumes ..." lines of city screen (#7592)
* fix #7565: Delete one "Consumes ..." lines of city screen

* fix #7565: Delete one "Consumes ..." lines of city screen

* fix #7565: Delete one "Consumes ..." lines of city screen
2022-08-03 13:38:35 -04:00
itanasi
61d48a5c37
Add Damage numbers to Battle Notifications (#7587)
* Initial changes

* Adding damage numbers
2022-08-03 20:24:19 +03:00
OptimizedForDensity
67fbc07552
Add translation for XP on World Screen (#7595) 2022-08-03 20:22:46 +03:00
Xander Lenstra
01cc67cee4
Reworded a tutorial, deleted unused line (#7594)
* Reworded a tutorial, deleted unused line

* Fixed faith symbol
2022-08-03 20:22:29 +03:00
itanasi
2671babefd
Fix Air Sweep Notification Translations (#7577)
* Fix Air Sweep Notification Translations

* Modify all translation files

* Fix a missing space
2022-08-03 17:34:21 +03:00
Ouaz
7f1c91ddaf
Update template.properties (#7576)
Fix untranslatable strings (issue #6131)
2022-08-02 22:57:10 +02:00