CozyPixelStudio/src/UI/Canvas/Canvas.tscn
OverloadedOrama 14d958e55f Moved tile mode drawing logic from Canvas to a new script
I mostly did it so I could move tile mode logic into a new node, so I could have control over the drawing order. TileMode.gd also always draws 8 blank rectangles, which are being drawn on top of the grid, in order to hide it if it gets out of boundaries. We are now very close to implementing an isometric grid, #305.

This shouldn't have much of a performance impact, but some more testing is most likely needed.
2020-08-18 17:03:49 +03:00

18 lines
607 B
Text

[gd_scene load_steps=5 format=2]
[ext_resource path="res://src/UI/Canvas/Canvas.gd" type="Script" id=1]
[ext_resource path="res://src/UI/Canvas/Grid.gd" type="Script" id=2]
[ext_resource path="res://src/UI/Canvas/Indicators.gd" type="Script" id=3]
[ext_resource path="res://src/UI/Canvas/TileMode.gd" type="Script" id=4]
[node name="Canvas" type="Node2D"]
script = ExtResource( 1 )
[node name="Grid" type="Node2D" parent="."]
script = ExtResource( 2 )
[node name="TileMode" type="Node2D" parent="."]
script = ExtResource( 4 )
[node name="Indicators" type="Node2D" parent="."]
script = ExtResource( 3 )