small fix

main
Just Dzhi 2023-10-02 21:40:21 +04:00
parent 306cde4a8a
commit d48c9b3c23
4 changed files with 12 additions and 12 deletions

View File

@ -15,5 +15,5 @@ void fragment(){
[resource]
shader = SubResource( 3 )
shader_param/active = true
shader_param/color = Color( 1, 1, 1, 0 )
shader_param/active = false
shader_param/color = Color( 1, 1, 1, 1 )

View File

@ -3,6 +3,7 @@
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1]
size = 8
font_data = ExtResource( 1 )
[resource]

View File

@ -32,14 +32,14 @@ extents = Vector2( 140, 10.125 )
atlas = ExtResource( 6 )
region = Rect2( 155, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 6 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 6 )
region = Rect2( 62, 0, 31, 11 )
@ -54,10 +54,10 @@ region = Rect2( 0, 0, 31, 11 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": true,
"name": "default",
"speed": 5.0
"frames": [ SubResource( 7 ), SubResource( 9 ), SubResource( 8 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": false,
"name": "idle",
"speed": 0.0
} ]
[sub_resource type="Animation" id=5]

View File

@ -14,7 +14,6 @@ func add_modifier(spell_name, selected_modifier):
modifiers.append(spell_name)
var spell_icon = icon_preload.instance()
spell_icon.frame = selected_modifier
self.add_child(spell_icon)
spell_icon.global_position.x += 7 + (modifiers.size() - 1) * (14 + 2)
spell_icon.global_position.y += 7
self.add_child(spell_icon)