River under forest
Posted: Fri Aug 26, 2016 10:36 pm
Can i specify in tileset to draw river first, then forest ?
Otherwise I get something like this.
Otherwise I get something like this.
Freeciv - because civilization should be free!
http://forum.freeciv.org/f/
Untested theory: Rivers are natural roads, natural roads are roads, roads are extras, and extras are drawn on top of the terrain. There are still lots of gaps in what I understand, including "what is a darkness layer" and "what is a blend layer", but I guess that both won't help for your problem.mir3x wrote:Can i specify in tileset to draw river first, then forest ?
Code: Select all
/* Items on the mapview are drawn in layers. Each entry below represents
* one layer. The names are basically arbitrary and just correspond to
* groups of elements in fill_sprite_array(). Callers of fill_sprite_array
* must call it once for each layer. */
enum mapview_layer {
LAYER_BACKGROUND,
LAYER_TERRAIN1,
LAYER_TERRAIN2,
LAYER_TERRAIN3,
LAYER_WATER,
LAYER_ROADS,
LAYER_SPECIAL1,
LAYER_GRID1,
LAYER_CITY1,
LAYER_SPECIAL2,
LAYER_FOG,
LAYER_UNIT,
LAYER_SPECIAL3,
LAYER_CITY2,
LAYER_GRID2,
LAYER_OVERLAYS,
LAYER_TILELABEL,
LAYER_CITYBAR,
LAYER_FOCUS_UNIT,
LAYER_GOTO,
LAYER_WORKERTASK,
LAYER_EDITOR,
LAYER_COUNT
};
Code: Select all
#define mapview_layer_iterate(layer) \
{ \
enum mapview_layer layer; \
\
for (layer = 0; layer < LAYER_COUNT; layer++) { \
Darkness Layer is drawn on explored tiles next to unexplored tiles. It's what creates the 'spillover' look. In 2.4 it was always drawn over layer0, so anything on layer1 or layer2 (mountains, hills, trees, etc.) would wind up being drawn over top the darkness. In 2.5 it was changed to allow it to be drawn over any of the layers desirable, and in A6B 2.5 I chose to draw it over layer2 (With a gradient, of course).dunnoob wrote:Untested theory: Rivers are natural roads, natural roads are roads, roads are extras, and extras are drawn on top of the terrain. There are still lots of gaps in what I understand, including "what is a darkness layer" and "what is a blend layer", but I guess that both won't help for your problem.mir3x wrote:Can i specify in tileset to draw river first, then forest ?
Code: Select all
layer_order = <comma-separated string list>