Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions C7/Lua/standalone/textures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ local civ_colors = {
"696969" -- Dim Gray
}

local tech_icon_replacement_map = {
["tech-2"] = "Masonry.png",
["tech-3"] = "Alphabet.png",
["tech-5"] = "TheWheel.png",
["tech-6"] = "WarriorCode.png",
["tech-7"] = "CeremonialBurial.png",
["tech-10"] = "Mysticism.png",
["tech-13"] = "Code of Laws.png",
["tech-14"] = "Literature.png",
["tech-15"] = "MapMaking.png",
["tech-16"] = "HorsebackRiding.png",
}


-- Build lookup table from c7_texture_list without extensions
local lookup = {}
for _, path in ipairs(c7_texture_list) do
Expand Down Expand Up @@ -196,11 +210,11 @@ return function(civ3_textures)
}

function c7_textures.tech_icons.small:map_object_to_sprite(tech)
return {
path = "Art/Tech Chooser/Icons/placeholder.png",
}
--local key =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this stray comment? Otherwise, looks ready to merge.

local icon = tech_icon_replacement_map[tostring(tech.id)] or "placeholder.png"
return { path = "Art/Tech Chooser/Icons/" .. icon }
end

function c7_textures.leader_heads:map_object_to_sprite(player_or_civ)
return {
path = "Art/Advisors/placeholder_leaderhead.png",
Expand Down
Loading