Skip to content

Commit c350142

Browse files
Show the key to edit wands
1 parent 86ad4e9 commit c350142

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

Game.tscn

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ corner_radius_bottom_right = 12
8888
corner_radius_bottom_left = 6
8989
anti_aliasing = false
9090

91-
[sub_resource type="StyleBoxFlat" id=37]
92-
bg_color = Color( 0, 0, 0, 0.27451 )
93-
9491
[sub_resource type="DynamicFont" id=33]
9592
font_data = ExtResource( 5 )
9693

@@ -111,6 +108,9 @@ Fonts/fonts/normal = SubResource( 33 )
111108
Label/fonts/font = SubResource( 36 )
112109
RichTextLabel/fonts/normal_font = SubResource( 34 )
113110

111+
[sub_resource type="StyleBoxFlat" id=37]
112+
bg_color = Color( 0, 0, 0, 0.27451 )
113+
114114
[sub_resource type="DynamicFont" id=6]
115115
size = 12
116116
font_data = ExtResource( 5 )
@@ -439,6 +439,16 @@ __meta__ = {
439439
"_edit_use_anchors_": false
440440
}
441441

442+
[node name="EditWandTutorial" type="Label" parent="HUD/HUD"]
443+
margin_left = 4.0
444+
margin_top = 34.0
445+
margin_right = 74.0
446+
margin_bottom = 47.0
447+
rect_scale = Vector2( 0.5, 0.5 )
448+
size_flags_vertical = 3
449+
theme = SubResource( 35 )
450+
text = "T: Edit wand"
451+
442452
[node name="WandcraftingGuide" type="Panel" parent="HUD/HUD"]
443453
anchor_right = 1.0
444454
anchor_bottom = 1.0

HUD/HUD.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func _ready():
9090
func _process(delta):
9191
$HUD/WandcraftingGuide.visible = Items.visible_spells
9292
SpellBagHUD.visible = Items.visible_spells
93+
$HUD/EditWandTutorial.visible = !Items.visible_spells
9394
var size := 1.0 if Items.visible_spells else 0.5
9495
WandSpellHUD.rect_scale = Vector2(size, size)
9596

0 commit comments

Comments
 (0)