Merge branch 'dev' into feature/link-hud-to-code
This commit is contained in:
@@ -52,13 +52,13 @@ func _configure_select(level, node):
|
||||
select.connect("pressed", self, _build_method(level.name()))
|
||||
|
||||
func _configure_reset(level, node):
|
||||
var reset = get_node(node+"/VBoxContainer/ButtonReset")
|
||||
var reset = get_node(node+"/VBoxContainer/MarginContainer/ButtonReset")
|
||||
|
||||
if int(level.object_finding()) != 0:
|
||||
reset.set_disabled(true)
|
||||
reset.connect("pressed", self, "_on_reset_level")
|
||||
|
||||
func _configure_counter(level, node):
|
||||
var count = get_node(node+"/VBoxContainer/ButtonCount/Label")
|
||||
var count = get_node(node+"/VBoxContainer/MarginContainer2/ButtonCount/Label")
|
||||
|
||||
count.set_text(level.object_finding()+" / "+level.object_to_find())
|
||||
|
||||
@@ -41,5 +41,7 @@ custom_constants/separation = 120
|
||||
|
||||
[node name="example" parent="MarginContainer/HBoxContainer" instance=ExtResource( 2 )]
|
||||
visible = false
|
||||
margin_right = 200.0
|
||||
margin_bottom = 284.0
|
||||
|
||||
[editable path="MarginContainer/HBoxContainer/example"]
|
||||
|
||||
+39
-30
@@ -1,7 +1,11 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://assets/ui/themes/level-btn.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/icon-reset.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-Clear-Large.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-Reset-hover.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-Reset.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-Clear-Large-hover.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/ui/themes/UI-Button-Reset-disabled.png" type="Texture" id=6]
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer"]
|
||||
margin_right = 150.0
|
||||
@@ -11,7 +15,7 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
margin_right = 217.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 200.0
|
||||
texture = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
@@ -32,41 +36,46 @@ __meta__ = {
|
||||
|
||||
[node name="VBoxContainer" type="HBoxContainer" parent="."]
|
||||
margin_top = 204.0
|
||||
margin_right = 217.0
|
||||
margin_bottom = 332.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 284.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
custom_constants/separation = 25
|
||||
alignment = 1
|
||||
|
||||
[node name="ButtonReset" type="TextureButton" parent="VBoxContainer"]
|
||||
margin_right = 64.0
|
||||
margin_bottom = 128.0
|
||||
[node name="MarginContainer" type="CenterContainer" parent="VBoxContainer"]
|
||||
margin_right = 98.0
|
||||
margin_bottom = 80.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ButtonReset" type="TextureButton" parent="VBoxContainer/MarginContainer"]
|
||||
margin_left = 9.0
|
||||
margin_right = 89.0
|
||||
margin_bottom = 80.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 3
|
||||
disabled = true
|
||||
texture_normal = ExtResource( 4 )
|
||||
texture_hover = ExtResource( 3 )
|
||||
texture_disabled = ExtResource( 6 )
|
||||
texture_focused = ExtResource( 3 )
|
||||
|
||||
[node name="MarginContainer2" type="CenterContainer" parent="VBoxContainer"]
|
||||
margin_left = 102.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 80.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ButtonCount" type="TextureButton" parent="VBoxContainer/MarginContainer2"]
|
||||
margin_left = 9.0
|
||||
margin_right = 89.0
|
||||
margin_bottom = 80.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 3
|
||||
texture_normal = ExtResource( 2 )
|
||||
texture_hover = ExtResource( 5 )
|
||||
texture_focused = ExtResource( 5 )
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/ButtonReset"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 7
|
||||
text = "Reset"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonCount" type="TextureButton" parent="VBoxContainer"]
|
||||
margin_left = 89.0
|
||||
margin_right = 217.0
|
||||
margin_bottom = 128.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_horizontal = 3
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/ButtonCount"]
|
||||
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer2/ButtonCount"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
Reference in New Issue
Block a user