Luxury Resource Display



some of the information is not displayed correctely :(

txt_key_tp_luxury_resource_extra ? _traded ? _total ?

may this have to do with a UI in French, not in English?

also, in 1680x1050, at the top, the "Luxuries (...." overlap with "Turn :"

but overwise a nice idea of mod, VERY usefull, so thank to the author :)

You can do yourself. Open LuxuryResourceDisplay_en_US.xml and change <Language_en_US> with <Language_en_FR> and </Language_en_US> with </Language_fr_FR> , you can translate too :) but warning if you use accent, you must save in UTF8 format.

For overlap, just edit LuxuryResourceDisplay.xml and change for example Offset="300,6" by Offset="350,6"
 
thanks, change in the offset went well :)

as for the langage, it made no difference

EDIT
Open LuxuryResourceDisplay_en_US.xml and change <Language_en_US> with <Language_en_FR> and </Language_en_US> with </Language_fr_FR>.

Sorry, I made the changes blindely, with Language_fr_FR it works like a charm (yess, I learn my first tag, champagne! en_FR would be.. canadian? :D)
 
i'm having some difficulties tweaking this one.
how do i make it hide when Luxuries = 0?
 
i'm having some difficulties tweaking this one.
how do i make it hide when Luxuries = 0?

Seems pretty easy to do.

Look for this part:
Code:
Controls.LuxuryResourceString:SetText(string.format("Luxuries (%i)", iTotal));

Change it to something like:
Code:
if(iTotal > 0) then 
Controls.LuxuryResourceString:SetText(string.format("Luxuries (%i)", iTotal));

might have to put an else on there and use an empty string to get it to dissapear though
Code:
if(iTotal > 0) then 
Controls.LuxuryResourceString:SetText(string.format("Luxuries (%i)", iTotal));
else
Controls.LuxuryResourceString:SetText("");



This was just off the top of my head, and i haven't actually tried it. Should get you pointed in the right direction though.
 
Wow gorey, for off the top of your head you nailed it!
used the second code works like a dream
now all i need is an icon... hmmm
maybe a wineglass? idk any ideas?
 
I have the mod installed and it worked fine until the patch. Now the Lux are not shown no matter what I do. :confused:

Edit: savegame didn't load it, had to restart new game (from the beginning) and now shows ok. Seems like patch was the cause of this.
 
I was hoping to patch the coal bug introduced in .62 - it's now apparently a bonus resource, not strategic! Reading this mod, apparently there is a ResourceUsageTypes table with types like
RESOURCEUSAGE_STRATEGIC and RESOURCEUSAGE_BONUS. I figure there's an error in this table for coal. Maybe I'm just being dense, but I can't find the table that contains these entries anywhere! Anybody know where this stuff is coming from?
 
where is the download typing Luxury Resource Display finds nothing?
 
Top Bottom