-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Lukasdotcom/v0.6.1
V0.6.1
- Loading branch information
Showing
16 changed files
with
408 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extends Control | ||
|
||
func _ready() -> void: | ||
var file = File.new() | ||
file.open(Data.save_file, File.READ) | ||
$Export.text = Marshalls.utf8_to_base64(file.get_as_text()) | ||
|
||
func _on_Return_button_up() -> void: | ||
get_tree().change_scene("res://src/Loading.tscn") | ||
|
||
func _on_Load_button_up() -> void: | ||
var file = File.new() | ||
file.open(Data.save_file, File.WRITE) | ||
file.store_string(Marshalls.base64_to_utf8($Import.text)) | ||
file.close() | ||
_on_Return_button_up() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://src/Export.gd" type="Script" id=1] | ||
[ext_resource path="res://assets/main_theme.tres" type="Theme" id=2] | ||
[ext_resource path="res://assets/Bold.tres" type="Theme" id=3] | ||
|
||
[node name="Export" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
theme = ExtResource( 2 ) | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Label" type="Label" parent="."] | ||
margin_left = 161.0 | ||
margin_right = 305.0 | ||
margin_bottom = 60.0 | ||
theme = ExtResource( 3 ) | ||
text = "Export" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Label2" type="Label" parent="."] | ||
margin_left = 693.0 | ||
margin_right = 842.0 | ||
margin_bottom = 60.0 | ||
theme = ExtResource( 3 ) | ||
text = "Import" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Return" type="Button" parent="."] | ||
margin_left = 149.0 | ||
margin_top = 540.0 | ||
margin_right = 333.0 | ||
margin_bottom = 577.0 | ||
text = "Return to Game" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Load" type="Button" parent="."] | ||
margin_left = 695.0 | ||
margin_top = 540.0 | ||
margin_right = 879.0 | ||
margin_bottom = 577.0 | ||
text = "Load" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Export" type="TextEdit" parent="."] | ||
margin_top = 70.0 | ||
margin_right = 500.0 | ||
margin_bottom = 520.0 | ||
readonly = true | ||
wrap_enabled = true | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Import" type="TextEdit" parent="."] | ||
margin_left = 524.0 | ||
margin_top = 70.0 | ||
margin_right = 1024.0 | ||
margin_bottom = 520.0 | ||
wrap_enabled = true | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[connection signal="button_up" from="Return" to="." method="_on_Return_button_up"] | ||
[connection signal="button_up" from="Load" to="." method="_on_Load_button_up"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
extends Node2D | ||
var simulate = 1.0 | ||
var show = 1.0 | ||
var visibly = 0.0 | ||
var enabled = 0.0 | ||
var total = 0.0 setget changed | ||
var disabledTotal = 0.0 | ||
signal update | ||
|
||
|
||
func changed(value): | ||
total = value | ||
emit_signal("update") | ||
|
||
func _on_Timer_timeout() -> void: | ||
simulate = get_node("/root/Main/TabContainer/Performance/Simulate").value / 100.0 | ||
show = get_node("/root/Main/TabContainer/Performance/Show").value / 100.0 | ||
emit_signal("update") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.