made some changes :D

This commit is contained in:
pennyrigate 2023-05-10 23:02:06 -04:00
parent 5f89fbc891
commit 0006f02a0f
16 changed files with 131 additions and 20 deletions

View file

@ -16,7 +16,7 @@ func _ready():
scale.y = 1
#Label
label.visible = true
label.set_text(str(cost))
label.set_text("" + str(cost))
label.rect_position.y = scale.y / 2 + label_offset.y
func _physics_process(delta):

View file

@ -115,7 +115,7 @@ margin_top = -15.0
margin_right = 22.0
margin_bottom = 5.0
theme = ExtResource( 3 )
text = "00"
text = "00"
align = 1
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]

View file

@ -7,7 +7,7 @@ onready var map = get_owner()
func _ready():
anims.play("closed")
label.text = str(cost)
label.text = "" + str(cost)
func _physics_process(delta):

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=10 format=2]
[ext_resource path="res://ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://objects/environment/exit/exit.gd" type="Script" id=2]
[ext_resource path="res://graphics/exit/exit.png" type="Texture" id=3]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=4]
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=5]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 4 )
@ -122,13 +123,13 @@ z_index = -1
script = ExtResource( 2 )
[node name="Label" type="Label" parent="."]
visible = false
margin_left = -7.0
material = ExtResource( 5 )
margin_left = -10.0
margin_top = -15.0
margin_right = 33.0
margin_right = 30.0
margin_bottom = 5.0
theme = ExtResource( 1 )
text = "22"
text = "22"
[node name="Sprite" type="Sprite" parent="."]
material = SubResource( 1 )