Coloring tiles...

primem0ver

Emperor
Joined
Jun 16, 2006
Messages
1,158
Location
Peoria, AZ
I started this thread to ask a basic question. How does one add new "views" to view different information on the map?

I have done some checking and it appears the map views are handled in the executable, not the SDK or python (which was a surprise to me). So I need to try a different approach. Is there any way to make features invisible? Or any item that is drawn besides bonuses that can be made invisible? My idea is this:

Features can have varieties. I want to create a colored, semi-transparent square of a solid color; the size of a plot with a large number of varieties where the only thing that changes is color (can someone make this for me?). Since we can have more than one feature now this might work but Features can't be made invisible as far as I know.

I also thought about using the culture color graphics... but that way we are limited by a number of problems, the biggest of which is that there are only as many cultures as there are countries on the board... ugh!

Any other ideas on how to color tiles?
 
I started this thread to ask a basic question. How does one add new "views" to view different information on the map?
Check CIV4InterfaceModeInfos.xml and CvGameInterface.cpp (especially getPlotHighlightColor).

I have done some checking and it appears the map views are handled in the executable, not the SDK or python (which was a surprise to me). So I need to try a different approach. Is there any way to make features invisible? Or any item that is drawn besides bonuses that can be made invisible? My idea is this:

Features can have varieties. I want to create a colored, semi-transparent square of a solid color; the size of a plot with a large number of varieties where the only thing that changes is color (can someone make this for me?). Since we can have more than one feature now this might work but Features can't be made invisible as far as I know.
They can be made invisible, but currently that is linked to the reveal state of the plot in the code.
 
Thanks for the pointers. I'll check them out.
 
Thanks alot AI_ANDY... this may be the break I was looking for!

Apparently the UpdateColoredPlots (as an example) and the enums it uses helped me find two things I can make use of found in CvEnums.h:

PLOT_STYLE_BOX_FILL and AREA_BORDER_LAYER_HIGHLIGHT_PLOT. Oddly, these are not used at all in the SDK except as enums. They may be what is used by the executable when highlighting culture locations. Either way, they give me an idea of how to adapt my plans for future map modes and I hope I can use them for my own map modes without interfering with what they are traditionally used for.

I can probably now make my own map highlighting modes.
 
Back
Top Bottom