Changed the type of WorldNumbers to CanvasLayer, so the numbers now go in front of nameplates, also increased the ui's layers, so the numbers are still behind them.

This commit is contained in:
Relintai 2020-07-17 00:08:55 +02:00
parent 7994312105
commit 68e7e888ce
3 changed files with 13 additions and 10 deletions

View File

@ -27,6 +27,7 @@
[ext_resource path="res://ui/windows/CharacterWindow.tscn" type="PackedScene" id=29]
[node name="GUILayer" type="CanvasLayer"]
layer = 5
script = ExtResource( 28 )
loot_window_path = NodePath("GUI/Windows/LootWindow")
@ -226,7 +227,7 @@ __meta__ = {
actionbar_scene = ExtResource( 14 )
[node name="Windows" type="CanvasLayer" parent="GUI"]
layer = 2
layer = 6
[node name="CharacterWindow" parent="GUI/Windows" instance=ExtResource( 29 )]
visible = false

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,8 @@
[ext_resource path="res://ui/world_numbers_2d/WorldNumbers.gd" type="Script" id=1]
[ext_resource path="res://ui/world_numbers_2d/Number.tscn" type="PackedScene" id=2]
[node name="WorldNumbers" type="Node"]
[node name="WorldNumbers" type="CanvasLayer"]
layer = 2
follow_viewport_enable = true
script = ExtResource( 1 )
number_scene = ExtResource( 2 )