From 9e3dcb6f89c65bef28e2d80836f5228dbaea5d7d Mon Sep 17 00:00:00 2001 From: fatherbushido Date: Thu, 29 Dec 2016 11:27:17 +0000 Subject: [PATCH] Add tooltip and icon to some autoresearched techs to allow displaying them in the structure tree. Patch by sanderd17. Refs #3801. This was SVN commit r19083. --- .../art/textures/ui/session/portraits/technologies/wall.png | 3 +++ .../ui/session/portraits/technologies/wooden_buildings.png | 3 +++ .../ui/session/portraits/technologies/wooden_walls.png | 3 +++ .../simulation/data/technologies/advanced_unit_bonus.json | 2 ++ .../technologies/carthaginians/civbonus_triple_walls.json | 6 ++++-- .../technologies/celts/civbonus_celts_wooden_struct.json | 4 +++- .../simulation/data/technologies/elite_unit_bonus.json | 2 ++ .../hellenes/civbonus_hellenic_architecture.json | 2 ++ .../data/technologies/hellenes/civpenalty_spart_popcap.json | 4 +++- .../data/technologies/mauryans/civbonus_maur_popcap.json | 4 +++- .../simulation/data/technologies/mauryans/wooden_walls.json | 6 ++++-- .../data/technologies/persians/civbonus_pers_popcap.json | 4 +++- 12 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wall.png create mode 100644 binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_buildings.png create mode 100644 binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_walls.png diff --git a/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wall.png b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wall.png new file mode 100644 index 0000000000..d9fafb8463 --- /dev/null +++ b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wall.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f89d3242c412b7fb78acd26388abea2fcdbd2e842e9a7dff66ba65c974a63cfc +size 37561 diff --git a/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_buildings.png b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_buildings.png new file mode 100644 index 0000000000..ee5a448621 --- /dev/null +++ b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_buildings.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fc692ea52f26c308a5b2977c111abe5f02e91b79f4fbfad1a6124456e172a4f +size 31715 diff --git a/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_walls.png b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_walls.png new file mode 100644 index 0000000000..26e18526a7 --- /dev/null +++ b/binaries/data/mods/public/art/textures/ui/session/portraits/technologies/wooden_walls.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05d5e545ee679946071990aa0fe194770191f0bb2021dbc00ea389b9ce1fb129 +size 37934 diff --git a/binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json b/binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json index ec737cfcc3..4277ffecc1 100644 --- a/binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json +++ b/binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json @@ -1,5 +1,7 @@ { "autoResearch": true, + "icon": "upgrade_advanced.png", + "tooltip": "Units promoted to the advanced class gain a lot of quality: 20% extra health, 1 extra armour level of every type, 20% extra attack for melee units, 4m extra range and 5% better precision for ranged units, faster movement speeds and extra heal speed and range for healers.", "modifications": [ {"value": "Health/Max", "multiply": 1.2 }, {"value": "Armour/Hack", "add": 1 }, diff --git a/binaries/data/mods/public/simulation/data/technologies/carthaginians/civbonus_triple_walls.json b/binaries/data/mods/public/simulation/data/technologies/carthaginians/civbonus_triple_walls.json index 14d31523b4..f001a140f2 100644 --- a/binaries/data/mods/public/simulation/data/technologies/carthaginians/civbonus_triple_walls.json +++ b/binaries/data/mods/public/simulation/data/technologies/carthaginians/civbonus_triple_walls.json @@ -1,7 +1,9 @@ { "genericName": "Triple Walls", "autoResearch": true, - "description": "Carthaginians built their city walls in three concentric circuits. These walls were never breached. Even when the city was taken by the Romans, it was via the city's harbor, not by storming its walls. Consequently, Carthaginian walls, gates, and wall towers have 3x the health of a standard wall, but also cost twice as much and take twice as long to build.", + "description": "Carthaginians built their city walls in three concentric circuits. These walls were never breached. Even when the city was taken by the Romans, it was via the city's harbor, not by storming its walls.", + "icon": "wall.png", + "tooltip": "Carthaginian walls, gates, and wall towers have 3x the health of a standard wall, but also cost twice as much and take twice as long to build.", "requirements": {"civ": "cart"}, "modifications": [ {"value": "Health/Max", "multiply": 3.0}, @@ -9,4 +11,4 @@ {"value": "Cost/Resources/stone", "multiply": 2.0} ], "affects": ["StoneWall"] -} \ No newline at end of file +} diff --git a/binaries/data/mods/public/simulation/data/technologies/celts/civbonus_celts_wooden_struct.json b/binaries/data/mods/public/simulation/data/technologies/celts/civbonus_celts_wooden_struct.json index c6cee96e7d..60135c08fe 100644 --- a/binaries/data/mods/public/simulation/data/technologies/celts/civbonus_celts_wooden_struct.json +++ b/binaries/data/mods/public/simulation/data/technologies/celts/civbonus_celts_wooden_struct.json @@ -1,8 +1,10 @@ { "genericName": "Wooden Construction", "autoResearch": true, - "description": "Celtic structures were mostly made of wood with rubble foundations. Consequently, their structures have less health than other cultures do, but they also construct faster.", + "description": "Celtic structures were mostly made of wood with rubble foundations.", "requirements": {"any": [{"civ": "brit"},{"civ": "gaul"}]}, + "icon": "wooden_buildings.png", + "tooltip": "Celtic buildings have 20% less health, but are also 20% cheaper and faster to construct.", "modifications": [ {"value": "Health/Max", "multiply": 0.8}, {"value": "Capturable/CapturePoints", "multiply": 0.8}, diff --git a/binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json b/binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json index 60b50e26a3..986e983b13 100644 --- a/binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json +++ b/binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json @@ -1,5 +1,7 @@ { "autoResearch": true, + "icon": "upgrade_elite.png", + "tooltip": "Units trained to the elite class gain a lot of quality: 20% extra health, 1 extra armour level of every type, 20% extra attack for melee units, extra range and better precision for ranged units, faster movement speeds and extra heal speed and range for healers.", "modifications": [ {"value": "Health/Max", "multiply": 1.2 }, {"value": "Armour/Hack", "add": 1 }, diff --git a/binaries/data/mods/public/simulation/data/technologies/hellenes/civbonus_hellenic_architecture.json b/binaries/data/mods/public/simulation/data/technologies/hellenes/civbonus_hellenic_architecture.json index a1e73090d4..46f9053531 100644 --- a/binaries/data/mods/public/simulation/data/technologies/hellenes/civbonus_hellenic_architecture.json +++ b/binaries/data/mods/public/simulation/data/technologies/hellenes/civbonus_hellenic_architecture.json @@ -3,6 +3,8 @@ "autoResearch": true, "description": "The Greeks used stone construction from early Mycenaean times.", "requirements": {"any": [{"civ": "athen"},{"civ": "mace"},{"civ": "spart"}]}, + "icon": "ionic_column.png", + "tooltip": "All structures have 10% more health and capture points, but also take 10% longer to build.", "modifications": [ {"value": "Health/Max", "multiply": 1.1}, {"value": "Capturable/CapturePoints", "multiply": 1.1}, diff --git a/binaries/data/mods/public/simulation/data/technologies/hellenes/civpenalty_spart_popcap.json b/binaries/data/mods/public/simulation/data/technologies/hellenes/civpenalty_spart_popcap.json index 67da3b041a..e072ba51ff 100644 --- a/binaries/data/mods/public/simulation/data/technologies/hellenes/civpenalty_spart_popcap.json +++ b/binaries/data/mods/public/simulation/data/technologies/hellenes/civpenalty_spart_popcap.json @@ -2,6 +2,8 @@ "genericName": "Underdogs", "autoResearch": true, "description": "The Spartans did not have the largest army in the world, but they did have the best army in the world for their time. What they didn't have in quantity, they made up with quality. It was said that Sparta did not need strong city walls, for its men were its walls.", + "icon": "population.png", + "tooltip": "Spartans have 10% less maximum population", "requirements": {"civ": "spart"}, "modifications": [{"value": "Player/MaxPopulation", "multiply": 0.9}] -} \ No newline at end of file +} diff --git a/binaries/data/mods/public/simulation/data/technologies/mauryans/civbonus_maur_popcap.json b/binaries/data/mods/public/simulation/data/technologies/mauryans/civbonus_maur_popcap.json index 449f95e1d3..56fb7ab6a7 100644 --- a/binaries/data/mods/public/simulation/data/technologies/mauryans/civbonus_maur_popcap.json +++ b/binaries/data/mods/public/simulation/data/technologies/mauryans/civbonus_maur_popcap.json @@ -6,5 +6,7 @@ "autoResearch": true, "description": "The Mauryan Empire encompassed dozens of formerly independent kingdoms over an area of 5 million square kilometers, with a population of close to 60 million people. The Mauryan regents held the title Emperor of Emperors and commanded a standing army of 600,000 infantry, 9000 elephants, 8000 chariots, and 30,000 cavalry, making it arguably the largest army of its time.", "requirements": {"civ": "maur"}, + "icon": "population.png", + "tooltip": "Mauryans have a 10% higher maximum population limit.", "modifications": [{"value": "Player/MaxPopulation", "multiply": 1.1}] -} \ No newline at end of file +} diff --git a/binaries/data/mods/public/simulation/data/technologies/mauryans/wooden_walls.json b/binaries/data/mods/public/simulation/data/technologies/mauryans/wooden_walls.json index e86eb9face..df1e44cea7 100644 --- a/binaries/data/mods/public/simulation/data/technologies/mauryans/wooden_walls.json +++ b/binaries/data/mods/public/simulation/data/technologies/mauryans/wooden_walls.json @@ -1,11 +1,13 @@ { "genericName": "Wooden Walls", "autoResearch": true, - "description": "The Mauryans built their city walls out of wood, an abundant natural resource in India. Consequently, Mauryan city walls have -20% health and -20% build time.", + "description": "The Mauryans built their city walls out of wood, an abundant natural resource in India.", "requirements": {"civ": "maur"}, + "icon": "wooden_walls.png", + "tooltip": "Mauryan city walls have 20% less health and 20% less build time.", "modifications": [ {"value": "Health/Max", "multiply": 0.8}, {"value": "Cost/BuildTime", "multiply": 0.8} ], "affects": ["StoneWall"] -} \ No newline at end of file +} diff --git a/binaries/data/mods/public/simulation/data/technologies/persians/civbonus_pers_popcap.json b/binaries/data/mods/public/simulation/data/technologies/persians/civbonus_pers_popcap.json index 0edf6a548a..b332b95d38 100644 --- a/binaries/data/mods/public/simulation/data/technologies/persians/civbonus_pers_popcap.json +++ b/binaries/data/mods/public/simulation/data/technologies/persians/civbonus_pers_popcap.json @@ -3,5 +3,7 @@ "autoResearch": true, "description": "The Persians could and did levy a large number of infantry during wartime due to the sheer size of the Achaemenid Empire and the way in which it was set-up. In general the Persian infantry was well trained and fought with great tenacity. However while this was true the infantry were poor hand-to-hand, close combat fighters. Also, with the exception of the elite regiments, the Persian infantry was not a standing professional force.", "requirements": {"civ": "pers"}, + "icon": "population.png", + "tooltip": "Persians have a 10% higher maximum population limit.", "modifications": [{"value": "Player/MaxPopulation", "multiply": 1.1}] -} \ No newline at end of file +}