UI - City Happiness

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,728
Location
Near Portsmouth, UK
Makes the Happiness indicator in the top panel clickable to display a popup with two panels - Buildings and Courthouses.

The Buildings panel shows unhappiness per city and which buildings are availble in that city to buy to increase happiness.

The Courthouse panel shows annexed cities without a Courthouse (or civilization specific building) and the effect of buying a Courthouse in that city

Buildings can be bought directly from either panel by clicking the appropriate building icon.
 

Attachments

  • CityHappiness1.jpg
    CityHappiness1.jpg
    134.1 KB · Views: 1,433
  • CityHappiness2.jpg
    CityHappiness2.jpg
    136.8 KB · Views: 792
  • CityHappiness3.jpg
    CityHappiness3.jpg
    72 KB · Views: 768
The counterpart to this "UI - City Production" is now on the Workshop

Displays production stats and focus for all cities in the empire, focus can be changed for any non-puppet city from the screen, for greater control the City View screen can be entered by clicking the city name.

All displayed values update immediately, enabling "What-If" scenarios to be played out.

Adds itself to the DiploCorner drop-down menu (Scroll icon, top right)
 

Attachments

  • CityProduction.jpg
    CityProduction.jpg
    123 KB · Views: 524
I'm going to have to try out your UI tutorial once I get some time, really like the stuff you produce :)

I spent the last few nights doing tooltips and it can get really frustrating trying to get these kinds of things looking/working nice, so hats off :)
 
Here the German Translate for

UI - City Happiness and
UI - City Production
 
There are 2 errors in your "UI - City Production" Mod.

1.In "CityProduction.lua".

"TXT_KEY_CP_STATUS_CAPITAL" must be changed to
"TXT_KEY_CP_STATUS_CAPITAL_TT"

2.Your another Mod "Utils - Modular DiploCorner (v 4)"
must Dependencies not References in "UI - City Production (v 3).modinfo"
and "UI - City Happiness (v 2).modinfo".
 
1.In "CityProduction.lua".
"TXT_KEY_CP_STATUS_CAPITAL" must be changed to
"TXT_KEY_CP_STATUS_CAPITAL_TT"
Thanks

2.Your another Mod "Utils - Modular DiploCorner (v 4)"
must Dependencies not References in "UI - City Production (v 3).modinfo"
and "UI - City Happiness (v 2).modinfo".

No, they are References as the mod is optional. Both "UI - City Production" and "UI - City Happiness" will work without "Utils - Modular DiploCorner" (their entries will just appear at the end of the list) but if its present it must load first (in which case the entries will appear in the middle of the list)
 
"UI - City Production" and "UI - City Happiness" will not work from DropDown Menu
without "Utils - Modular DiploCorner".

They are listed, but not clickable.

"UI - City Happiness" works by Click on Smilies without "Utils - Modular DiploCorner"

I used now "Utils - Modular DiploCorner" and i have a clickable Icon on TopPanel for "UI - City Production" created, problem solved.:)
 
"UI - City Production" and "UI - City Happiness" will not work from DropDown Menu
without "Utils - Modular DiploCorner".

They are listed, but not clickable.

That's a bug then, I'll investigate
 
Should now be fixed.

BTW, you didn't translate two entries (one in each mod)

"Manage all City Production from one summary screen"
"Manage all City Happiness from one summary screen"

I've just used the English versions for the time being as they're not important
 
I used now the newest Versions of "UI - City Happiness", "UI - City Production"
and "UI - Summary Luxuries".

Now the "ESC Key" does not work on "City View screen"

You have anything to do with it?

Before i updated your Mods, the "ESC Key" works normal.
 
I used now the newest Versions of "UI - City Happiness", "UI - City Production"
and "UI - Summary Luxuries".

Now the "ESC Key" does not work on "City View screen"

You have anything to do with it?

Before i updated your Mods, the "ESC Key" works normal.

Possibly - it's the delights of working with a layered UI, as it's all to easy to inadvertantly trap events meant for somewhere else.

I'll investigate later tonight.
 
I can't test this at the moment as I'm at work, but I suspect the problem is with City Happiness (as that does daft things with overlays on the top panel)

Try this.

Locate the file "C:\Users\{username}\Documents\My Games\Sid Meier's Civilization 5\Mods\UI - City Happiness (v 4)\UI\CityHappiness.lua", open it with Notepad and delete the line

Code:
ContextPtr:SetInputHandler(InputHandler)

(It's almost at the end of the file)

If that fixes it, at least I know what I'm looking for!
 
Thanks. Always useful to know what I've screwed up ;) Even if I don't (yet) know how to fix it!
 
will this and trade opportunities work fine with the CivUP?

edit: actually it seems like civup already included trade opportunities :)
 
hello,
Would there be any reason why coliseum wouldn't show in the buildings available to buy ?
the circus shows fine for example, but I don't see the coliseum (my civ 5 is in french, dunno if it matters)
edit: nevermind, my fault ...
it doesn't list buildings which you don't have ressources to get (such as enough gold)
I wish it would show them though (with grayed out gold/faith amount though)
so that you could :
1 - plan ahead
2 - try to produce them (if you can't buy them)

thanks anyway, another awesome UI mod ^^
 
I've recently asked this to bc1 in his EUI thread to verify compatibility issues...
1) WHoward's "UI - City Production Queue Enhancements" (can't find it anywhere, btw) is warned as not being compatible with EUI (on the first page)... is this the same as the other "UI - City Production" which simply does a quick summary popup invoqued from the (old) Diplo-List??

His answer was;
not the same, but not sure, best is to ask the author

Soooooo... your opinion or facts about that, please? ;)

PS:...
It's an almost "nevermind" for the above as i simply had to lookup the ModInfo file to realize this depends on two external components;
1) Utils - Modular DiploCorner which i can't find anywhere. Trust me - i tried VERY hard.
2) DLL - Various Mod Components which should make it (somehow) incompatible with EUI.

So my appeal to you for that silly problem is rather simple... Could *IT* be altered to make it functional along side EUI??
This reasoning would possibly also apply to UI - City Religions.

PS2: Arrrrrghhh... sorry, now i remember that *Utils - Modular DiploCorner* was made (some YEARS ago) by Alpaca & Sneaks, etc.
 
Back
Top Bottom