hanklin45110126 / wot-xvm

Automatically exported from code.google.com/p/wot-xvm
0 stars 0 forks source link

Config #516

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Default settings for minimap.square are:
    "square" : { // Квадрат со стороной 1000m. Показывает границы максимальной отрисовка юнитов.
      "enabled": false,
      // Show square if using artillery\SPG vehicle.
      // Показывать ли квадрат в случае артиллерии.
      "artilleryEnabled": false,
      // Толщина линии.
      "thickness": 0.7,
      // Прозрачность.
      "alpha": 40,
      // Цвет.
      "color": "0xFFFFFF"
    }
single difference in my configuration is that minimap.square.enabled is true.

Would it be possible to put into config file entries:
"minimap": ${"configs/@Default/minimap.xc":"minimap"},
minimap.square.enabled = true
to overwrite default values?

Original issue reported on code.google.com by jakub.cz...@gmail.com on 17 Sep 2013 at 5:51

GoogleCodeExporter commented 8 years ago
"minimap": {
   "$ref": { "file":"minimap.xc", "path":"minimap" },
   "square": {
        "$ref": { "file":"minimap.xc", "path":"minimap.square" },
        "enabled": true
   }
}

Something like this should work (not tested).
Try search for "$ref" function in 
http://www.koreanrandom.com/forum/forum/43-xvm-extended-visualization-mod/ 
(can't find it right now)

Original comment by maca.pa...@gmail.com on 17 Sep 2013 at 1:31

GoogleCodeExporter commented 8 years ago
Indeed, it works, thanks. So it's fixed.

Original comment by jakub.cz...@gmail.com on 17 Sep 2013 at 10:27

GoogleCodeExporter commented 8 years ago

Original comment by maca.pa...@gmail.com on 17 Sep 2013 at 10:30