Merge remote-tracking branch 'fabiann/remote-tiles' into devel
This commit is contained in:
@@ -432,6 +432,13 @@ values. The valid configuration keys are listed below.
|
||||
|
||||
**Default:** ``#1a1a1a``
|
||||
|
||||
``base``
|
||||
Allows you to specify a remote location for the tile folder, useful if you
|
||||
rsync your map's images to a remote server. Leave a trailing slash and point
|
||||
to the location that contains the tile folders for each render, not the
|
||||
tiles folder itself. For example, if the tile images start at
|
||||
http://domain.com/map/world_day/ you want to set this to http://domain.com/map/
|
||||
|
||||
.. _option_texture_pack:
|
||||
|
||||
``texturepath``
|
||||
|
||||
@@ -421,7 +421,7 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
|
||||
|
||||
# only pass to the TileSet the options it really cares about
|
||||
render['name'] = render_name # perhaps a hack. This is stored here for the asset manager
|
||||
tileSetOpts = util.dict_subset(render, ["name", "imgformat", "renderchecks", "rerenderprob", "bgcolor", "imgquality", "optimizeimg", "rendermode", "worldname_orig", "title", "dimension", "changelist","showspawn", "overlay"])
|
||||
tileSetOpts = util.dict_subset(render, ["name", "imgformat", "renderchecks", "rerenderprob", "bgcolor", "imgquality", "optimizeimg", "rendermode", "worldname_orig", "title", "dimension", "changelist","showspawn", "overlay","base"])
|
||||
tileSetOpts.update({"spawn": w.find_true_spawn()}) # TODO find a better way to do this
|
||||
tset = tileset.TileSet(rset, assetMrg, tex, tileSetOpts, tileset_dir)
|
||||
tilesets.append(tset)
|
||||
|
||||
@@ -81,6 +81,7 @@ renders = Setting(required=True, default=util.OrderedDict(),
|
||||
"markers": Setting(required=False, validator=validateMarkers, default=[]),
|
||||
"overlay": Setting(required=False, validator=validateOverlays, default=[]),
|
||||
"showspawn": Setting(required=False, validator=validateBool, default=True),
|
||||
"base": Setting(required=False, validator=validateStr, default=""),
|
||||
|
||||
# Remove this eventually (once people update their configs)
|
||||
"worldname": Setting(required=False, default=None,
|
||||
|
||||
@@ -516,7 +516,7 @@ class TileSet(object):
|
||||
defaultZoom = 1,
|
||||
maxZoom = self.treedepth,
|
||||
path = self.options.get('name'),
|
||||
base = '',
|
||||
base = self.options.get('base'),
|
||||
bgcolor = bgcolorformat(self.options.get('bgcolor')),
|
||||
world = self.options.get('worldname_orig') +
|
||||
(" - " + self.options.get('dimension') if self.options.get('dimension') != 'default' else ''),
|
||||
|
||||
Reference in New Issue
Block a user