public void NewPressed() { CloseRenameToolbar(); CloseDeleteToolbar(); CreateToolbar.Show(); CreateEdit.Clear(); CreateEdit.GrabFocus(); ToolbarScrollSeperator.Show(); }
async public void ShowGameOver() { ShowMessage("Game Over"); Timer messageTimer = GetNode <Timer>("MessageTimer"); await ToSignal(messageTimer, "timeout"); _startScreen.Show(); _1PlayerButton.GrabFocus(); _hud.Reset(); }
public void DeletePressed() { if (SelectedSave != null) { CloseCreateToolbar(); CloseRenameToolbar(); DeleteToolbar.Show(); DeleteMessage.Text = $"Are you sure you want to delete save: {SelectedSave}"; ToolbarScrollSeperator.Show(); } }
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(); } }
public void RenamePressed() { if (SelectedSave != null) { CloseCreateToolbar(); CloseDeleteToolbar(); RenameToolbar.Show(); RenameEdit.Clear(); RenameEdit.GrabFocus(); ToolbarScrollSeperator.Show(); } }
public void HandleInstallError(Exception e) { InstallErrorLabel.Show(); InstallErrorButtons.Show(); System.Console.WriteLine($"[{e.GetType().Name}]: {e.Message}\n{e.StackTrace}"); }