瀏覽代碼

Add details about when 9slice scaling is applied. (#90)

Pavel Zavoiskikh 5 年之前
父節點
當前提交
5af102e51a
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/en/manuals/gui-box.md
  2. 二進制
      docs/en/manuals/images/gui-box/slice9_size.png
  3. 二進制
      docs/en/manuals/images/gui-box/[email protected]

+ 6 - 0
docs/en/manuals/gui-box.md

@@ -41,6 +41,12 @@ The margins are set clockwise, starting on the left edge:
 - Edge segments are scaled along a single axis. The left and right edge segments are scaled vertically. The top and bottom edge segments are scaled horizontally.
 - The central texture area is scaled horizontally and vertically as needed.
 
+The *Slice9* texture scaling described above is only applied when you change box node's size:
+
+![GUI box node size](images/gui-box/slice9_size.png){srcset="images/gui-box/[email protected] 2x"}
+
+If you change scale parameter of the box node - the node and texture is scaled without applying *Slice9* parameters.
+
 Due to the way mipmapping works in the renderer, scaling of texture segments can sometimes exhibit artifacts. This happens when you _scale down_ segments below the original texture size. The renderer then selects a lower resolution mipmap for the segment, resulting in visual artifacts.
 
 ![Slice 9 mipmapping](images/gui-box/mipmap.png){srcset="images/gui-box/[email protected] 2x"}

二進制
docs/en/manuals/images/gui-box/slice9_size.png


二進制
docs/en/manuals/images/gui-box/[email protected]