@@ -9,9 +9,9 @@ resolution, positioning controls would be a simple matter of setting the
99position and size of each one of them. Unfortunately, that is rarely the
1010case.
1111
12- While some configurations may be more common than others, devices like
13- phones, tablets and portable gaming consoles can vary greatly. Therefore,
14- we often have to account for different aspect ratios, resolutions and user
12+ While some configurations may be more common than others, devices like
13+ phones, tablets and portable gaming consoles can vary greatly. Therefore,
14+ we often have to account for different aspect ratios, resolutions and user
1515scaling.
1616
1717There are several ways to account for this, but for now, let's just imagine
@@ -22,7 +22,7 @@ the top of the screen, or maybe the right or left margins.
2222.. image :: img/anchors.png
2323
2424This is done by editing the *anchor offsets * of controls, which behave similar
25- to a margin. To access these settings, you will first need to select the *Custom *
25+ to a margin. To access these settings, you will first need to select the *Custom *
2626anchor preset.
2727
2828Each control has four anchor offsets: left, right, bottom, and top, which correspond
@@ -72,7 +72,7 @@ a TextureRect can be centered in its parent:
7272 .. code-tab :: gdscript GDScript
7373
7474 var rect = TextureRect.new()
75- rect.texture = load("res://icon.png ")
75+ rect.texture = load("res://icon.svg ")
7676 rect.anchor_left = 0.5
7777 rect.anchor_right = 0.5
7878 rect.anchor_top = 0.5
@@ -88,7 +88,7 @@ a TextureRect can be centered in its parent:
8888
8989 var rect = new TextureRect();
9090
91- rect.Texture = ResourceLoader.Load<Texture>("res://icon.png ");
91+ rect.Texture = ResourceLoader.Load<Texture>("res://icon.svg ");
9292 rect.AnchorLeft = 0.5f;
9393 rect.AnchorRight = 0.5f;
9494 rect.AnchorTop = 0.5f;
0 commit comments