Azurency / CQUI_Community-Edition

Civilization 6 mod - UI enhancements, reduce clicks and manage your empire faster!
MIT License
399 stars 98 forks source link

More updates from Patch 1.0.0.290 #384

Closed tyrken closed 5 years ago

tyrken commented 5 years ago

Here is another attempt at helping with the massive changes, starting with just a couple of files in case I'm doing something wrong - please provide feedback as it's very difficult doing it blind - no syntax/lint & little lua knowledge. Thankfully found a old but useful GUI for 5-way merges in http://diffuse.sourceforge.net/index.html I drive with a space-normalisation script.

Sometimes it's been easier to start from a tab-to-spaced form of the updated 290 code and just add back in the CQUI changes that, but sorry this makes a lot of diffs to your CQUI expansion2 branch.

Many apologies @accatyyc I didn't notice until completed that you'd also started at the bottom working on worldviewiconsmanager.lua, please review my changes against what you have!

joelekstrom commented 5 years ago

No problem, I'm not really sure what I'm doing either - but @Azurency posted a helpful review on my PR, so check that out as well.

tyrken commented 5 years ago

OK, for worldviewiconsmanager.lua I've added in the =>256 on line 93 and checked the feedback from #383.

TBH the second parameter to IconManager:FindIconAtlas is on closer inspection a size, so the new 256 value here & where I add the debatable comment just above might actually be wrong (UI from the mod might not have room compared to the new stock UI). Should be pretty clear once we get the whole thing play-testable.

Azurency commented 5 years ago

I'll try to make a review this week 😉

tyrken commented 5 years ago

In unitflagmanager.lua do we need something to balance the CQUI instance.FlagBaseDarken on lines 522-536 (War Check), e.g. instance.FlagBaseLighten:SetColor( primaryColor );?

tyrken commented 5 years ago

Got this comment in Screens/governmentscreen.xml: <!--Filters are added dynamically through AddFilterTabButtons--> ... hoping they actually meant RealizeFilterTabs in the matching lua file, added an equivalent there.

In line 1114 of Screens/governmentscreen.lua, I reverted a CQUI change of the variable name from "strSlotType" to "rowSlotType", that looked like a mistake.

tyrken commented 5 years ago
tyrken commented 5 years ago

@Azurency have you managed to start code review yet?

Azurency commented 5 years ago

@tyrken not this pull request, I'm on #382 for now

Azurency commented 5 years ago

Great, thx for the contribution 👍 🎉