small fix
parent
306cde4a8a
commit
d48c9b3c23
|
@ -15,5 +15,5 @@ void fragment(){
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
shader = SubResource( 3 )
|
shader = SubResource( 3 )
|
||||||
shader_param/active = true
|
shader_param/active = false
|
||||||
shader_param/color = Color( 1, 1, 1, 0 )
|
shader_param/color = Color( 1, 1, 1, 1 )
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
|
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=1]
|
[sub_resource type="DynamicFont" id=1]
|
||||||
|
size = 8
|
||||||
font_data = ExtResource( 1 )
|
font_data = ExtResource( 1 )
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
|
|
|
@ -32,14 +32,14 @@ extents = Vector2( 140, 10.125 )
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 155, 0, 31, 11 )
|
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]
|
[sub_resource type="AtlasTexture" id=9]
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 93, 0, 31, 11 )
|
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]
|
[sub_resource type="AtlasTexture" id=10]
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 62, 0, 31, 11 )
|
region = Rect2( 62, 0, 31, 11 )
|
||||||
|
@ -54,10 +54,10 @@ region = Rect2( 0, 0, 31, 11 )
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=4]
|
[sub_resource type="SpriteFrames" id=4]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
"frames": [ SubResource( 7 ), SubResource( 9 ), SubResource( 8 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
||||||
"loop": true,
|
"loop": false,
|
||||||
"name": "default",
|
"name": "idle",
|
||||||
"speed": 5.0
|
"speed": 0.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[sub_resource type="Animation" id=5]
|
[sub_resource type="Animation" id=5]
|
||||||
|
|
|
@ -14,7 +14,6 @@ func add_modifier(spell_name, selected_modifier):
|
||||||
modifiers.append(spell_name)
|
modifiers.append(spell_name)
|
||||||
var spell_icon = icon_preload.instance()
|
var spell_icon = icon_preload.instance()
|
||||||
spell_icon.frame = selected_modifier
|
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.x += 7 + (modifiers.size() - 1) * (14 + 2)
|
||||||
spell_icon.global_position.y += 7
|
spell_icon.global_position.y += 7
|
||||||
self.add_child(spell_icon)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue