ruff_hi
Live 4ever! Or die trying
The BUG team has looked at the technology screen (or technology chooser) a few times and done a little bit with it (widen, GG preferences, etc). We recently saw this suggestion ...
(above from EF)
... which sounds pretty good. I've got a few ideas that I will post later.
I'm surprised this hasn't been implemented. As per this post:
http://forums.civfanatics.com/showpost.php?p=8745918&postcount=1468
While the request is made in the Legends of Revolution thread, the user's request is not specific to the Legends of Revolution mod; and since LoR uses the BUG UI, it would certainly benefit from such a feature. For those who don't want to check the post, basically the user wants an easy way to know what specific techs belong to what eras. The easiest way to do this would be to implement a color code scheme in the tech tree I'd imagine. It also seems such a color coding system would be pretty easy to implement.
That seems pretty easy (assuming that we can get the era from the tech ).
Edit: which you can ... CvTechInfo.getEra()
This has already been done in Rise of Mankind.
Could you please post the file Assets/Python/Screens/CvTechChooser.py from that mod?
Be warned, RoM's tech tree looks vastly different from Standard BTS. I like the changes, personally.
View attachment 238087
Had a quick look at the file and it looks like the non researched techs are color coded. The current tech and known techs still have the same color as vanilla BtS. My thought was to put a shadow like border (prob about 3 to 5 pixels depending on how it looks) around the techs and color code that off the 'clock era' colors. That way, all techs have a related era color.
Edit:
I know how to change the color of text ... szText = localText.changeTextColor(szText, gc.getInfoTypeForString("COLOR_YELLOW"))
I know how to change the color of a panel ... screen.setPanelColor(szTechRecord, 160, 100, 160)
Anyone know how to change 'COLOR_YELLOW' into its 3 integers for setPanelColor?
Code:
szColor = "COLOR_YELLOW"
iColor = gc.getInfoTypeForString(szColor)
if iColor != -1:
color = gc.getColorInfo(iColor)
if color:
rgb = color.getColor() # NiColorA object
if rgb:
screen.setPanelColor(szTechRecord, rgb.r, rgb.g, rgb.b)
cool - thx. I'll mock up some options and start a new thread later this week.
Another option would be to color just the header part of the tech card where the icon, name, and icons for AND prereq techs go and leave the body colored by whether or not it is researched, in the queue, or otherwise.
... which sounds pretty good. I've got a few ideas that I will post later.