Unciv/android/assets
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
..
ExtraImages AbsoluteUnits - Unique Triremes (#8354) 2023-01-11 09:16:24 +02:00
jsons Add Replay feature in VictoryScreen (#8844) 2023-03-12 19:59:48 +02:00
sounds SFX Update - Arrow, Crossbow (New), Metal Hit (#8262) 2022-12-29 23:20:33 +02:00
AbsoluteUnits.atlas AbsoluteUnits - Great Prophet, Settler (Industrial Era) (#8856) 2023-03-10 10:09:34 +02:00
AbsoluteUnits.png AbsoluteUnits - Great Prophet, Settler (Industrial Era) (#8856) 2023-03-10 10:09:34 +02:00
Atlases.json 4.3.7 2022-12-09 12:56:34 +02:00
Construction.atlas Enemy indicator, city culture hex outline + misc (#8629) 2023-02-09 18:46:02 +02:00
Construction.png Enemy indicator, city culture hex outline + misc (#8629) 2023-02-09 18:46:02 +02:00
EasterEggs.atlas Two new Unit Tests (#7001) 2022-06-16 21:07:30 +03:00
EasterEggs.png Two new Unit Tests (#7001) 2022-06-16 21:07:30 +03:00
Flags.atlas 4.5.3 2023-03-04 21:08:02 +02:00
Flags.png 4.5.3 2023-03-04 21:08:02 +02:00
game.atlas Custom key bindings (#8802) 2023-03-11 20:12:00 +02:00
game.png Custom key bindings (#8802) 2023-03-11 20:12:00 +02:00
NationIcons.atlas Modding: allow custom ResourcePortraits (#8330) 2023-01-09 21:03:00 +02:00
NationIcons.png Modding: allow custom ResourcePortraits (#8330) 2023-01-09 21:03:00 +02:00
NotificationIcons.png NextTurnActions (pick tech/policy/etc) now can have icons (#8119) 2022-12-15 08:41:43 +02:00
PolicyIcons.atlas Resolved #8158 - Fallback images for all major objects 2023-01-24 23:52:34 +02:00
PolicyIcons.png Big rework of Policy Picker UI, added new ninepatch RoundedEdgeRectangleSmall (#8218) 2022-12-24 19:17:00 +02:00
ReligionIcons.atlas
ReligionIcons.png
Skin.atlas Big rework of City plates (#8239) 2022-12-28 17:32:26 +02:00
Skin.json UI: Better unit table 2023-01-07 22:12:31 +02:00
Skin.png Big rework of City plates (#8239) 2022-12-28 17:32:26 +02:00
Tech.atlas Fallback image for modded techs - see #8158 2022-12-18 22:05:17 +02:00
Tech.png Fallback image for modded techs - see #8158 2022-12-18 22:05:17 +02:00
Tilesets.atlas Resolved #7476 - added option for pillaged improvements 2023-02-13 23:11:05 +02:00
Tilesets.png modding: Added "upon gaining a [unitFilter] unit" trigger condition 2023-02-22 09:32:50 +02:00
UnitActionIcons.atlas UnitActions seprated into own atlas (#8102) 2022-12-09 12:46:46 +02:00
UnitActionIcons.png UnitActions seprated into own atlas (#8102) 2022-12-09 12:46:46 +02:00
UnitFlags.png Change styles and behaviour of Unit flags as in Civ 5 (#8128) 2022-12-15 21:51:46 +02:00
UnitPromotionIcons.atlas Add Air Sweep (#7484) 2022-07-27 22:16:53 +03:00
UnitPromotionIcons.png Add Air Sweep (#7484) 2022-07-27 22:16:53 +03:00