diff options
| author | Jerome67000 | 2017-12-29 23:06:03 +0100 |
|---|---|---|
| committer | Jérôme | 2018-01-03 13:02:26 +0100 |
| commit | 42ae3525a3adfc9518361aab5625d7ff76e97623 (patch) | |
| tree | 0b993bd9d2b174be583f83400bc115a651815806 /servers/visual/visual_server_canvas.h | |
| parent | 99960d929435423b25e9bfb55051af60edbfcca9 (diff) | |
| download | godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.gz godot-42ae3525a3adfc9518361aab5625d7ff76e97623.tar.zst godot-42ae3525a3adfc9518361aab5625d7ff76e97623.zip | |
#15078 renamed "z" -> "z_index" property in Node2D
Diffstat (limited to 'servers/visual/visual_server_canvas.h')
| -rw-r--r-- | servers/visual/visual_server_canvas.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/visual/visual_server_canvas.h b/servers/visual/visual_server_canvas.h index 3143ac847..c0fb6249d 100644 --- a/servers/visual/visual_server_canvas.h +++ b/servers/visual/visual_server_canvas.h @@ -39,7 +39,7 @@ public: RID parent; // canvas it belongs to List<Item *>::Element *E; - int z; + int z_index; bool z_relative; bool sort_y; Color modulate; @@ -53,7 +53,7 @@ public: Item() { children_order_dirty = true; E = NULL; - z = 0; + z_index = 0; modulate = Color(1, 1, 1, 1); self_modulate = Color(1, 1, 1, 1); sort_y = false; @@ -187,7 +187,7 @@ public: void canvas_item_add_set_transform(RID p_item, const Transform2D &p_transform); void canvas_item_add_clip_ignore(RID p_item, bool p_ignore); void canvas_item_set_sort_children_by_y(RID p_item, bool p_enable); - void canvas_item_set_z(RID p_item, int p_z); + void canvas_item_set_z_index(RID p_item, int p_z); void canvas_item_set_z_as_relative_to_parent(RID p_item, bool p_enable); void canvas_item_set_copy_to_backbuffer(RID p_item, bool p_enable, const Rect2 &p_rect); |
