Fix high score
This commit is contained in:
3 files changed
+2
-9
No files matched your search
@@ -15,10 +15,11 @@ public partial class FirstLoad : Control {
|
|||||||
|
|
||||||
LatestVersionLabel.Text = "Latest Version: " + Globals.LatestVersion;
|
LatestVersionLabel.Text = "Latest Version: " + Globals.LatestVersion;
|
||||||
} else {
|
} else {
|
||||||
//Load settings
|
//Load savefile stuff
|
||||||
List<string> settings = Utils.LoadSettings();
|
List<string> settings = Utils.LoadSettings();
|
||||||
string fullscreen = settings.ElementAtOrDefault(0) ?? "1";
|
string fullscreen = settings.ElementAtOrDefault(0) ?? "1";
|
||||||
Utils.ToggleFullscreen(fullscreen == "1", settings); //This will also load VSync
|
Utils.ToggleFullscreen(fullscreen == "1", settings); //This will also load VSync
|
||||||
|
Globals.HighScore = int.Parse(BazookaManager.Read(BazookaManager.HighScore, "0"));
|
||||||
|
|
||||||
//Version checking
|
//Version checking
|
||||||
HttpRequest GetLatestVersionNode = GetNode<HttpRequest>("VersionText/LatestVersion/HTTPRequest");
|
HttpRequest GetLatestVersionNode = GetNode<HttpRequest>("VersionText/LatestVersion/HTTPRequest");
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
using Godot;
|
|
||||||
|
|
||||||
public partial class LoadSaveFIle : Control {
|
|
||||||
public override void _Ready() {
|
|
||||||
Globals.HighScore = int.Parse(BazookaManager.Read(BazookaManager.HighScore, "0"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://crsloi4abxhqh
|
|
||||||
Reference in new issue
Block a user