Added final features for this release. Now only polishing (if needed) remains.

Features: Sacrifice-Node, Maintain-Node, Options for screen type, lightcolor and soundvolume, tied in sound effects, game pause when menu is open, visibly open up gate when opening it.
This commit is contained in:
2026-05-10 14:09:14 +02:00
parent 228e81ab4e
commit 8170b700b2
28 changed files with 797 additions and 14 deletions
+18
View File
@@ -130,6 +130,8 @@ public partial class CodingWindow : PanelContainer
public void LoadProgram(int index)
{
if (index <= 0) return;
ClearWindow();
string scriptContent = FileHandler.LoadProgram(availableScripts.GetItemText(index));
string[] nodes = scriptContent.Split(";");
@@ -151,6 +153,22 @@ public partial class CodingWindow : PanelContainer
availableScripts.Select(0);
}
public void DeleteProgram()
{
string filename = scriptName.Text;
int selectedIndex = availableScripts.GetSelectedId();
if (selectedIndex > 0)
{
filename = availableScripts.GetItemText(selectedIndex);
}
if (filename.Length <= 0) return;
if (!FileHandler.DeleteProgram(filename)) return;
ClearWindow();
SetupScriptOptions();
}
public void SaveProgram()
{
string result = "";