mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-31 09:49:06 +03:00
Misc fixes and tweaks
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
|
||||
[node name="BackgroundLoad" type="Control"]
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Progress" type="ProgressBar" parent="."]
|
||||
visible = false
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource path="res://scene_a.gd" type="Script" id=1]
|
||||
|
||||
[node name="scene_a" type="Panel"]
|
||||
[node name="SceneA" type="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_horizontal = 2
|
||||
@@ -12,7 +12,7 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="label" type="Label" parent="."]
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 104.0
|
||||
@@ -20,7 +20,7 @@ margin_bottom = 62.0
|
||||
size_flags_vertical = 0
|
||||
text = "This is scene A."
|
||||
|
||||
[node name="goto_scene" type="Button" parent="."]
|
||||
[node name="GoToScene" type="Button" parent="."]
|
||||
margin_left = 64.0
|
||||
margin_top = 128.0
|
||||
margin_right = 192.0
|
||||
@@ -28,4 +28,7 @@ margin_bottom = 160.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
text = "Go to Scene B"
|
||||
[connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"]
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[connection signal="pressed" from="GoToScene" to="." method="_on_goto_scene_pressed"]
|
||||
|
||||
@@ -2,61 +2,30 @@
|
||||
|
||||
[ext_resource path="res://scene_b.gd" type="Script" id=1]
|
||||
|
||||
[node name="scene_b" type="Panel"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
[node name="SceneB" type="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="label" type="Label" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 64.0
|
||||
margin_top = 48.0
|
||||
margin_right = 164.0
|
||||
margin_bottom = 62.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 0
|
||||
text = "This is scene B."
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="goto_scene" type="Button" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="GoToScene" type="Button" parent="."]
|
||||
margin_left = 64.0
|
||||
margin_top = 128.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 160.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Go to Scene A"
|
||||
flat = false
|
||||
|
||||
[connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"]
|
||||
|
||||
|
||||
[connection signal="pressed" from="GoToScene" to="." method="_on_goto_scene_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user