Zmian menu na canvas
This commit is contained in:
parent
6788823533
commit
f5f98ba77d
@ -249,21 +249,13 @@ _data = {
|
|||||||
&"ship3": SubResource("Animation_rsfmq")
|
&"ship3": SubResource("Animation_rsfmq")
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="MainMenu" type="CanvasLayer"]
|
||||||
process_mode = 3
|
process_mode = 3
|
||||||
top_level = true
|
layer = 50
|
||||||
z_index = 100
|
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_vjb58")
|
script = ExtResource("1_vjb58")
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="."]
|
[node name="TextureRect" type="TextureRect" parent="."]
|
||||||
z_index = 10
|
z_index = 10
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
@ -538,7 +530,6 @@ autoplay = "ship3"
|
|||||||
|
|
||||||
[node name="VBoxContainer" type="GridContainer" parent="."]
|
[node name="VBoxContainer" type="GridContainer" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 2
|
anchors_preset = 2
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
|||||||
@ -39,10 +39,10 @@ vertical_alignment = 1
|
|||||||
[node name="Info" type="Label" parent="CanvasLayer"]
|
[node name="Info" type="Label" parent="CanvasLayer"]
|
||||||
offset_left = 16.0
|
offset_left = 16.0
|
||||||
offset_top = 32.0
|
offset_top = 32.0
|
||||||
offset_right = 278.0
|
offset_right = 375.0
|
||||||
offset_bottom = 215.0
|
offset_bottom = 215.0
|
||||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||||
theme_override_constants/outline_size = 1
|
theme_override_constants/outline_size = 1
|
||||||
theme_override_fonts/font = ExtResource("3_ggt7d")
|
theme_override_fonts/font = ExtResource("3_ggt7d")
|
||||||
theme_override_font_sizes/font_size = 9
|
theme_override_font_sizes/font_size = 17
|
||||||
autowrap_mode = 2
|
autowrap_mode = 2
|
||||||
|
|||||||
@ -81,7 +81,7 @@ func _ready():
|
|||||||
|
|
||||||
|
|
||||||
func _load_mod_buildings():
|
func _load_mod_buildings():
|
||||||
var mod_path = "res://mods/buildings1.json"
|
var mod_path = "res://mods/buildings.json"
|
||||||
|
|
||||||
if not FileAccess.file_exists(mod_path):
|
if not FileAccess.file_exists(mod_path):
|
||||||
print("Brak pliku modów: ", mod_path)
|
print("Brak pliku modów: ", mod_path)
|
||||||
|
|||||||
@ -108,7 +108,7 @@ func show_menu():
|
|||||||
var menu_instance = MenuScene.instantiate()
|
var menu_instance = MenuScene.instantiate()
|
||||||
#TimeDispaly.visible = false
|
#TimeDispaly.visible = false
|
||||||
add_child(menu_instance)
|
add_child(menu_instance)
|
||||||
menu_instance.z_index = 100 # na wierzchu wszystkiego
|
#menu_instance.z_index = 100 # na wierzchu wszystkiego
|
||||||
get_tree().paused = true # pauzuje grę, jeśli chcesz
|
get_tree().paused = true # pauzuje grę, jeśli chcesz
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
extends Control
|
extends CanvasLayer
|
||||||
@onready var option_popup = $OptionPopup
|
@onready var option_popup = $OptionPopup
|
||||||
@onready var back_button = $TextureRect/back
|
@onready var back_button = $TextureRect/back
|
||||||
@onready var save_button = $TextureRect/save
|
@onready var save_button = $TextureRect/save
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user