Sparth
C2C Team Member
- Joined
- Oct 6, 2013
- Messages
- 2,314
We probably need to scale it based on resolution.
Sadly its far beyond my python skills
We probably need to scale it based on resolution.
This would be an excellent new default page for the "domestic advisor" screen. Too bad its edit tool lacks the ability to do this at the moment.With even more culture and with these really huge map with more than 50 cities, a very useful thing would be a screen telling wich city can build wich Culture wonders and wich Culture wonder is already built (and by who if you have enough espionnage) and which culture are lost for ever (in a destroyed city)
Like an Ethnic advisor...
Any chance to make this to auto-size based on width of the screen?
There's also the annoying horizontal scrollbar in the city ciew.
This is how it looks like in 21:9 (3360x1410 windowed in config)
There's obviously something screwy about the thing because yeah, trying to change what looks like variables that should have an effect on the size of the box doesn't seem to do anything. Rather frustrating so if that's something you can sort out that would be pretty cool.@TB while looking at this I noticed that only 3 of the 4 definitions of the help text box use the global variable defined at the start. What is the bet that that one is the main one and why changing the variable value has no effect
if (ePlayer != NO_PLAYER)
{
CvPlayer& kActivePlayer = GET_PLAYER(GC.getGameINLINE().getActivePlayer());
szBuffer.append(gDLL->getText("TXT_KEY_BONUS_AVAILABLE_PLAYER", kActivePlayer.getNumAvailableBonuses((BonusTypes)(kBuilding.getFreeBonus())), kActivePlayer.getNameKey()));
}
Hi all,
For a while I've been quite annoyed that buildings that provide resources (bonuses) don't show in their help text how many of these resources you already have. Often I want to avoid building too many factories as they will smog down my cities. An example of this is:
How many Nutellea's do I have? Who knows? I have to scroll in the resources pane in order to find out and to do this with many resources can take a little time.
So I modified the DLL a little so it would show me straight away in the help text, the result is as follows:
Jeaj! I have 1 Nutella already! Guess I'm not building another smokey factory then!
Should be easily done. I might be able to get to that at some point soon.Hi all,
I've been playing C2C for a few years now, but never really contributed to anything on the forums. Just wanted to start by saying that I'm really impressed with everything you've managed to do with C2C, and I'm always looking forward to every single SVN update.
For a while I've been quite annoyed that buildings that provide resources (bonuses) don't show in their help text how many of these resources you already have. Often I want to avoid building too many factories as they will smog down my cities. An example of this is:
How many Nutellea's do I have? Who knows? I have to scroll in the resources pane in order to find out and to do this with many resources can take a little time.
So I modified the DLL a little so it would show me straight away in the help text, the result is as follows:
Jeaj! I have 1 Nutella already! Guess I'm not building another smokey factory then!
Unfortunately it doesn't always look so nice when it goes over several lines, if it's in one line it looks nice enough, but that's really dependent on the resource:
Or one can make it to always be on a new line:
Just not sure if it's clear enough that you actually have 2 of this resource, and not 2 of whatever.
So I couldn't figure out if this could be done in a Python script, so I modified and compiled the DLL, however, my local install runs a little bit slower with my newly compiled DLL (both with this fix and without), so if someone else could do this change and upload it to the SVN I would be grateful, as I don't want to slow down C2C for everyone
Thunderbrd, I think I've seen in the SVN log that you've done the majority of the DLL uploads, do you compile it in any special way? Would you mind doing this fix and compiling and uploading, provided people think this is a change for the better?
The fix is basically done by adding this bit of code at line 22357 of CvGameTextMgr.cpp (under the "if (kBuilding.getFreeBonus() != NO_BONUS)" statement):
Code:if (ePlayer != NO_PLAYER) { CvPlayer& kActivePlayer = GET_PLAYER(GC.getGameINLINE().getActivePlayer()); szBuffer.append(gDLL->getText("TXT_KEY_BONUS_AVAILABLE_PLAYER", kActivePlayer.getNumAvailableBonuses((BonusTypes)(kBuilding.getFreeBonus())), kActivePlayer.getNameKey())); }
I also haven't debugged too much, I don't think this would cause any problems, but I don't know at this stage how to thoroughly debug.
For comedy value, you have a blatant typo in your edit reason.
It's would be really nice to have a way to save build queues and whatnot past the city interface (i.e. control+num for save , num for recall) but I see something was tried and, well, I cannot use it.