Beispiel #1
0
    public void NewPressed()
    {
        CloseRenameToolbar();
        CloseDeleteToolbar();

        CreateToolbar.Show();
        CreateEdit.Clear();
        CreateEdit.GrabFocus();

        ToolbarScrollSeperator.Show();
    }
Beispiel #2
0
    async public void ShowGameOver()
    {
        ShowMessage("Game Over");
        Timer messageTimer = GetNode <Timer>("MessageTimer");

        await ToSignal(messageTimer, "timeout");

        _startScreen.Show();
        _1PlayerButton.GrabFocus();
        _hud.Reset();
    }
Beispiel #3
0
    public void DeletePressed()
    {
        if (SelectedSave != null)
        {
            CloseCreateToolbar();
            CloseRenameToolbar();

            DeleteToolbar.Show();
            DeleteMessage.Text = $"Are you sure you want to delete save: {SelectedSave}";

            ToolbarScrollSeperator.Show();
        }
    }
Beispiel #4
0
    public void OpenFile(string path)
    {
        if (File.Exists(path))
        {
            SaveFilePath(path);

            TextPreview textPreview = GetNode <TextPreview>("/root/Window/VB/MainHB/TextPreview");
            textPreview.SetTextFromFile(path);

            HBoxContainer bottomButtons = GetNode <HBoxContainer>("/root/Window/VB/BottomHB");
            bottomButtons.Show();
        }
    }
Beispiel #5
0
    public void RenamePressed()
    {
        if (SelectedSave != null)
        {
            CloseCreateToolbar();
            CloseDeleteToolbar();

            RenameToolbar.Show();
            RenameEdit.Clear();
            RenameEdit.GrabFocus();

            ToolbarScrollSeperator.Show();
        }
    }
Beispiel #6
0
 public void HandleInstallError(Exception e)
 {
     InstallErrorLabel.Show();
     InstallErrorButtons.Show();
     System.Console.WriteLine($"[{e.GetType().Name}]: {e.Message}\n{e.StackTrace}");
 }