Save file functionality
This commit is contained in:
@@ -8,7 +8,7 @@ func _ready():
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
|
||||
get_tree().change_scene_to_file("res://bossFights.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/bossFights.tscn")
|
||||
#if Global.bossScreenVisible == false:
|
||||
#Global.bossScreenVisible = true
|
||||
#Global.teamScreenVisible = false
|
||||
|
||||
@@ -6,19 +6,20 @@ func _ready():
|
||||
# Connect the pressed signal to the _on_Button_pressed function
|
||||
self.connect("pressed", Callable(self, "_on_Button_pressed"))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func _process(delta):
|
||||
#Checks if the texture needs to be set
|
||||
if Global.texture_member1:
|
||||
self.texture_normal = Global.texture_member1
|
||||
|
||||
self.texture_normal = load(Global.texture_member1)
|
||||
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
|
||||
#MemberDatabase.load_character_data()
|
||||
get_tree().change_scene_to_file("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/teamSelection.tscn")
|
||||
|
||||
Global.currentMemberSelected = 0
|
||||
|
||||
|
||||
@@ -12,12 +12,12 @@ func _ready():
|
||||
func _process(delta):
|
||||
#Checks if the texture needs to be set
|
||||
if Global.texture_member2:
|
||||
self.texture_normal = Global.texture_member2
|
||||
self.texture_normal = load(Global.texture_member2)
|
||||
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
|
||||
get_tree().change_scene_to_file("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/teamSelection.tscn")
|
||||
|
||||
Global.currentMemberSelected = 1
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@ func _ready():
|
||||
func _process(delta):
|
||||
#Checks if the texture needs to be set
|
||||
if Global.texture_member3:
|
||||
self.texture_normal = Global.texture_member3
|
||||
self.texture_normal = load(Global.texture_member3)
|
||||
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
#This is an array, numbers will not match
|
||||
|
||||
get_tree().change_scene_to_file("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/teamSelection.tscn")
|
||||
Global.currentMemberSelected = 2
|
||||
|
||||
Global.teamScreenVisible = false
|
||||
|
||||
@@ -12,12 +12,12 @@ func _ready():
|
||||
func _process(delta):
|
||||
#Checks if the texture needs to be set
|
||||
if Global.texture_member4:
|
||||
self.texture_normal = Global.texture_member4
|
||||
self.texture_normal = load(Global.texture_member4)
|
||||
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
|
||||
get_tree().change_scene_to_file("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/teamSelection.tscn")
|
||||
|
||||
Global.currentMemberSelected = 3
|
||||
|
||||
|
||||
@@ -12,12 +12,12 @@ func _ready():
|
||||
func _process(delta):
|
||||
#Checks if the texture needs to be set
|
||||
if Global.texture_member5:
|
||||
self.texture_normal = Global.texture_member5
|
||||
self.texture_normal = load(Global.texture_member5)
|
||||
|
||||
# Function to handle the button press
|
||||
func _on_Button_pressed():
|
||||
|
||||
get_tree().change_scene_to_file("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/teamSelection.tscn")
|
||||
|
||||
Global.currentMemberSelected = 4
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ func _ready():
|
||||
func _on_Button_pressed():
|
||||
|
||||
#var new_scene = load("res://teamSelection.tscn")
|
||||
get_tree().change_scene_to_file("res://team.tscn")
|
||||
get_tree().change_scene_to_file("res://Scenes/team.tscn")
|
||||
|
||||
#if Global.teamScreenVisible == false:
|
||||
#Global.teamSelectionVisible = false
|
||||
|
||||
@@ -1,129 +0,0 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://xh0p6v5ir05f"]
|
||||
|
||||
[ext_resource type="Script" path="res://Root.gd" id="1_dtx5s"]
|
||||
[ext_resource type="Script" path="res://User Interface/TeamButton.gd" id="3_g0muc"]
|
||||
[ext_resource type="Script" path="res://User Interface/Header.gd" id="3_q5rri"]
|
||||
[ext_resource type="Script" path="res://User Interface/Bossbutton.gd" id="4_7wp2t"]
|
||||
|
||||
[node name="Root" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 768.0
|
||||
offset_bottom = 432.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_dtx5s")
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
anchors_preset = 0
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 1080.0
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="UI"]
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="UI/CanvasLayer"]
|
||||
offset_left = 3.0
|
||||
offset_right = 395.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("3_q5rri")
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "Score:"
|
||||
|
||||
[node name="Score" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="Timer" type="Timer" parent="UI/CanvasLayer/Header"]
|
||||
autostart = true
|
||||
|
||||
[node name="ClickUpgrades" type="MenuButton" parent="UI/CanvasLayer/Header"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "Click Upgrades"
|
||||
item_count = 9
|
||||
popup/item_0/text = "+1 Cost:10"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "+10 Cost: 100"
|
||||
popup/item_1/id = 1
|
||||
popup/item_2/text = "+20 Cost:1,000"
|
||||
popup/item_2/id = 2
|
||||
popup/item_3/text = "+40 Cost: 10,000"
|
||||
popup/item_3/id = 3
|
||||
popup/item_4/text = "+60 Cost: 100,000"
|
||||
popup/item_4/id = 4
|
||||
popup/item_5/text = "+80 Cost: 1,000,000"
|
||||
popup/item_5/id = 5
|
||||
popup/item_6/text = "+100 Cost: 10,000,000"
|
||||
popup/item_6/id = 6
|
||||
popup/item_7/text = "+200 Cost: 100,000,000"
|
||||
popup/item_7/id = 7
|
||||
popup/item_8/text = "+400 Cost: 1,000,000,000"
|
||||
popup/item_8/id = 8
|
||||
|
||||
[node name="PassiveUpgrades" type="MenuButton" parent="UI/CanvasLayer/Header"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "Passive Upgrades"
|
||||
item_count = 9
|
||||
popup/item_0/text = "2/s Cost: 100"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "10/s Cost: 1,000"
|
||||
popup/item_1/id = 1
|
||||
popup/item_2/text = "20/s Cost: 10,000"
|
||||
popup/item_2/id = 2
|
||||
popup/item_3/text = "50/s Cost: 100,000"
|
||||
popup/item_3/id = 3
|
||||
popup/item_4/text = "100/s Cost:1,000,000"
|
||||
popup/item_4/id = 4
|
||||
popup/item_5/text = "200/s Cost: 10,000,000"
|
||||
popup/item_5/id = 5
|
||||
popup/item_6/text = "500/s Cost: 100,000,000"
|
||||
popup/item_6/id = 6
|
||||
popup/item_7/text = "1,000/s Cost: 1,000,000,000"
|
||||
popup/item_7/id = 7
|
||||
popup/item_8/text = "10,000/s Cost: 10,000,000,000"
|
||||
popup/item_8/id = 8
|
||||
|
||||
[node name="TeamButton" type="Button" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "Team"
|
||||
flat = true
|
||||
alignment = 0
|
||||
script = ExtResource("3_g0muc")
|
||||
|
||||
[node name="Bossbutton" type="Button" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "Bosses"
|
||||
flat = true
|
||||
alignment = 0
|
||||
script = ExtResource("4_7wp2t")
|
||||
|
||||
[node name="ClickAddLabel" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "ClickAdd:"
|
||||
|
||||
[node name="ClickAdd" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="PerSecLabel" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "PerSec:
|
||||
"
|
||||
|
||||
[node name="PerSec" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="MultiplierLabel" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "Multiplier:
|
||||
"
|
||||
|
||||
[node name="Multiplier" type="Label" parent="UI/CanvasLayer/Header"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
Reference in New Issue
Block a user