Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
fix theme helper
Browse files Browse the repository at this point in the history
  • Loading branch information
JLMin committed Oct 12, 2020
1 parent 1e7b2c3 commit c8271ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/cui.modinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Mod id="5f504949-398a-4038-a838-43c3acc4dc10" version="1.6.1">
<Mod id="5f504949-398a-4038-a838-43c3acc4dc10" version="1.6.2">
<Properties>
<Name>[COLOR_Civ6LightBlue]Concise UI[ENDCOLOR]</Name>
<Teaser>For a better gaming experience.</Teaser>
Expand Down
4 changes: 2 additions & 2 deletions mod/lib/cui_update.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CuiVersion = "1.6.1"
LastUpdate = "2020-10-07"
CuiVersion = "1.6.2"
LastUpdate = "2020-10-12"
VersionDetail = "Concise UI - " .. CuiVersion .. "[NEWLINE]" .. "Last Update: " .. LastUpdate
7 changes: 7 additions & 0 deletions mod/modules/great_work/base/greatworksoverview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ function PopulateGreatWork(instance:table, pCityBldgs:table, pBuildingInfo:table
else
instance.GreatWorkIcon:SetHide(false);

-- CUI >> setup masks
CuiSetLockMask(instance, pCityBldgs, buildingIndex, slotIndex)
CuiSetThemeMask(instance, pCityBldgs, buildingIndex, slotIndex)
instance.LockMask:SetHide(cui_ThemeHelper)
instance.ThemeMask:SetHide(not cui_ThemeHelper)
-- << CUI

local srcGreatWork:number = pCityBldgs:GetGreatWorkInSlot(buildingIndex, slotIndex);
local srcGreatWorkType:number = pCityBldgs:GetGreatWorkTypeFromIndex(srcGreatWork);
local srcGreatWorkObjectType:string = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType;
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Version
GAME_VERSION = '1.0.5.11 (516180)'
MOD_VERSION = '1.6.1'
MOD_VERSION = '1.6.2'

# Paths
PATH_PROJECT = Path(__file__).parents[1]
Expand Down

0 comments on commit c8271ae

Please sign in to comment.