URL:
  <http://gna.org/patch/?7667>

                 Summary: Add ability to configure the order layers are drawn
in
                 Project: Freeciv
            Submitted by: louis94
            Submitted on: sam. 03 sept. 2016 00:02:32 UTC
                Category: client
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
 Contains string changes: None

    _______________________________________________________

Details:

This patch allows tilesets to configure the order of map layers. It adds a new
optional field to the [tilespec] section, defined as follows:

layer_order = <comma-separated string list>

The list must contain all (and only) layer names defined in mapview_layer, in
the order they will be drawn. Comprehensive diagnostics are provided in case
the list is incomplete, or an unknown layer is present.

I didn't allow omitting layers to avoid situations where eg specials are not
rendered on the map but displayed in the help dialog.

Some editor-related code will need to be adjusted: create_tile_pixbuf in
editprop.c (gtk2/gtk3/gtk3x)

The patch is for trunk. Alongside with it, I provide a .tilespec file to
*include in tilesets for testing. The layer order is more or less random,
don't expect a great gaming experience.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: sam. 03 sept. 2016 00:02:32 UTC  Name:
client-configure-layer-order-0.patch  Size: 7 ko   By: louis94

<http://gna.org/patch/download.php?file_id=28557>
-------------------------------------------------------
Date: sam. 03 sept. 2016 00:02:32 UTC  Name: layers.tilespec  Size: 294 o  
By: louis94

<http://gna.org/patch/download.php?file_id=28558>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?7667>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to