ThemeCfg: Add anchors help (stub)
authorWuzzy
Thu, 16 May 2019 23:15:05 +0100
changeset 1879 686923e40b80
parent 1878 e19e8b5cbf5a
child 1880 5125933b2cd0
ThemeCfg: Add anchors help (stub)
ThemeCfg.wiki
--- a/ThemeCfg.wiki	Thu May 16 22:53:17 2019 +0100
+++ b/ThemeCfg.wiki	Thu May 16 23:15:05 2019 +0100
@@ -78,6 +78,17 @@
  * `overlay_filename_1`: File name of the overlay image to use
  * You must repeat the last 3 arguments if `overlay_count` is greater than 1; each overlay needs its own offset and file name.
 
+=== `anchors` ===
+An anchor does not create land itself, but instead is a setting that alters the positioning of an object.
+
+This key needs an object file name, an anchor count and rectangles for each anchor. It must be written after the object has been defined.
+
+<code>Values: object_filename, anchor_count, anchor_rect1, anchor_rect2, anchor_rect3, ...</code>
+
+ * `object_filename`: File name of the object to which this overlay applies
+ * `overlay_count`: Number of overlays for this object
+ * `anchor_rect1`, etc.: A rectangle defining the anchor (`left, top, width, height`)
+
 == Land decoration keys ==
 Land decorations alter the appearance of the main terrain without adding any terrain. They are purely decorational.