ld39-dead_in_the_water/game/areas/area_base.tscn

78 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-07-31 00:17:24 +00:00
[gd_scene load_steps=3 format=1]
[ext_resource path="res://areas/area_base.gd" type="Script" id=1]
[ext_resource path="res://areas/area_health_bar.tscn" type="PackedScene" id=2]
[node name="area_base" type="Node2D" groups=[
"areas",
]]
script/script = ExtResource( 1 )
max_health = 3
health = 3
activated = false
energy_cost = 0
display_name = ""
[node name="Sprite" type="Sprite" parent="."]
[node name="area_health_bar" parent="." instance=ExtResource( 2 )]
transform/pos = Vector2( -32.5694, -52.3751 )
[node name="Label" type="Label" parent="."]
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -44.0
margin/top = 49.0
margin/right = 46.0
margin/bottom = 63.0
text = "Cost: 3 Energy"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="CheckButton" type="CheckButton" parent="."]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = -13.0
margin/top = -64.0
margin/right = 63.0
margin/bottom = -42.0
toggle_mode = true
enabled_focus_mode = 0
shortcut = null
flat = false
align = 0
[node name="display_name" type="Label" parent="."]
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -56.0
margin/top = -85.0
margin/right = 56.0
margin/bottom = -71.0
text = "Area Base"
align = 1
valign = 1
autowrap = true
uppercase = true
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[connection signal="game_area_health_changed" from="." to="area_health_bar" method="_on_area_base_game_area_health_changed"]
[connection signal="toggled" from="CheckButton" to="." method="_on_CheckButton_toggled"]