Unciv/android
WhoIsJohannes f4dca2281e
Add Replay feature in VictoryScreen (#8844)
* Add Replay feature in VictoryScreen.

* Add Replay feature in VictoryScreen.

* Support for i18n

* Extract year to text conversion into common util to be used from VictoryScreen.kt and WorldScreenTopBar.kt

* Remove ReplayMapTile and modify MinimapTile so that it can support both use cases.

* Reuse code for spreading out tiles onto tile layer between Minimap and ReplayMap by factoring it out into a new MinimapTileUtil

* Revert "Reuse code for spreading out tiles onto tile layer between Minimap and ReplayMap by factoring it out into a new MinimapTileUtil"

This reverts commit d4cddb4312.

* Add Replay feature in VictoryScreen.

* Add Replay feature in VictoryScreen.

* Support for i18n

* Extract year to text conversion into common util to be used from VictoryScreen.kt and WorldScreenTopBar.kt

* Remove ReplayMapTile and modify MinimapTile so that it can support both use cases.

* Revert some unintentional indentation changes

* Refactor some common logic of Minimap and ReplayMap into MinimapTileUtil

* Slightly increase ReplayMap size and simplify logic to calculate tile size since input is static.

* Indentation again... :|

* Unify isCityCenter & isCapital into an enum in TileHistory and shorten identifiers

* Use city.getTiles() instead of city.tiles in CityInfoConquestFunctions.kt

* Improve tileSize calculation in ReplayMap.kt

* Remove extra padding in VictoryScreen -> Replay to prevent WorldScreenTopBar from acting up on the next turn.

* Make return value of MinimapTileUtil.spreadOutMinimapTiles more useful to callers

* Cancel Replay timer when VictoryScreen is disposed or when Replay is opened again.

* Cancel replay map timer task whenever tab is switched in VictoryScreen

* Improve serialization for TileHistory by using a custom serializer. This removes the need for holding two copies of the same thing and to use String based keys.

* Add backwards compatibility for replay. The replay will start at the turn where it came into play.

* Remove debugging code :|

* Use gameInfo field rather than going throug the global UncivGame...
2023-03-12 19:59:48 +02:00
..
assets Add Replay feature in VictoryScreen (#8844) 2023-03-12 19:59:48 +02:00
Images Custom key bindings (#8802) 2023-03-11 20:12:00 +02:00
Images.AbsoluteUnits/TileSets/AbsoluteUnits/Units AbsoluteUnits - Great Prophet, Settler (Industrial Era) (#8856) 2023-03-10 10:09:34 +02:00
Images.Construction Enemy indicator, city culture hex outline + misc (#8629) 2023-02-09 18:46:02 +02:00
Images.EasterEggs/TileSets Two new Unit Tests (#7001) 2022-06-16 21:07:30 +03:00
Images.Flags/FlagIcons 4.5.3 2023-03-04 21:08:02 +02:00
Images.NationIcons/NationIcons Modding: allow custom ResourcePortraits (#8330) 2023-01-09 21:03:00 +02:00
Images.PolicyIcons Resolved #8158 - Fallback images for all major objects 2023-01-24 23:52:34 +02:00
Images.ReligionIcons/ReligionIcons 4.0.15-patch1 2022-05-11 17:58:30 +03:00
Images.Skin Big rework of City plates (#8239) 2022-12-28 17:32:26 +02:00
Images.Tech/TechIcons Fallback image for modded techs - see #8158 2022-12-18 22:05:17 +02:00
Images.Tilesets/TileSets Add 'neutral' Flood plains (#8721) 2023-02-22 09:15:05 +02:00
Images.UnitPromotionIcons/UnitPromotionIcons Add Air Sweep (#7484) 2022-07-27 22:16:53 +03:00
ImagesToNotAddToGame Add Catalan translation and provide some strings. (#6992) 2022-05-29 16:50:47 +02:00
res Updated Unciv Android icons 2023-01-08 19:58:12 +02:00
src/com/unciv/app Android: selectable orientation (#8822) 2023-03-06 10:35:14 +02:00
AndroidManifest.xml Android: selectable orientation (#8822) 2023-03-06 10:35:14 +02:00
build.gradle.kts Added gradle task of Atlas texture packing for Android build (#8208) 2022-12-23 14:49:08 +02:00
ic_launcher-web.png Initial commit 2017-11-22 00:09:35 +02:00
proguard-rules.pro Remove gdx-box2d from build files because it isn't used (#2595) 2020-05-08 08:05:26 +03:00
project.properties Initial commit 2017-11-22 00:09:35 +02:00
uncivicon-playstore.png Updated Unciv Android icons 2023-01-08 19:58:12 +02:00