public override void _Ready() { SlotButtonScene = GD.Load <PackedScene>("res://UI/Menu/HostMenu/SlotButton.tscn"); LabelPieceScene = GD.Load <PackedScene>("res://UI/Menu/Pieces/LabelPiece.tscn"); SelectedSaveLabel = GetNode <Label>("SelectedSave"); ResetSelectedSave(); RenameToolbar = GetNode <HBoxContainer>("RenameToolbar"); RenameEdit = RenameToolbar.GetNode <LineEdit>("NameLineEdit"); RenameToolbar.Hide(); CreateToolbar = GetNode <HBoxContainer>("CreateToolbar"); CreateEdit = CreateToolbar.GetNode <LineEdit>("NameLineEdit"); CreateToolbar.Hide(); DeleteToolbar = GetNode <HBoxContainer>("DeleteToolbar"); DeleteMessage = DeleteToolbar.GetNode <Label>("Label"); DeleteToolbar.Hide(); ToolbarScrollSeperator = GetNode <Label>("ToolbarScrollSeperator"); ToolbarScrollSeperator.Hide(); SlotsVBox = GetNode <VBoxContainer>("SlotsScroll/SlotsVBox"); ResetSlotsVBox(); }
public override void _Ready() { main = GetTree().CurrentScene as MainRoot; pauseButton = GetNode <TextureButton>("PauseButton"); buttons = GetNode <HBoxContainer>("Buttons"); settingMenue = GetTree().CurrentScene.GetNode <Control>("Hud/SettingMenue"); buttons.Hide(); }
public void Install() { DoneLabel.Hide(); var opts = OptionOffline.Pressed ? InstallerFrontend.InstallerOptions.Offline : InstallerFrontend.InstallerOptions.None; if (OptionForceBackup.Pressed) { opts |= InstallerFrontend.InstallerOptions.ForceBackup; } if (OptionForceHTTP.Pressed) { opts |= InstallerFrontend.InstallerOptions.HTTP; } if (OptionLeavePatchDLLs.Pressed) { opts |= InstallerFrontend.InstallerOptions.LeavePatchDLLs; } if (OptionSkipVersionCheck.Pressed) { opts |= InstallerFrontend.InstallerOptions.SkipVersionChecks; } var inst = new InstallerFrontend(opts); if (inst.HasETGModInstalled(GungeonPath.Text)) { ETGModWarningDialog.Popup_(); return; } if (OptionShowLog.Pressed) { LargeImage.Hide(); InstallLog.Show(); } InstallButton.Disabled = true; SettingsButton.Disabled = true; ExeFileButton.Disabled = true; var data = new InstallThreadUserdata { Component = OptionComponent.Text, ExePath = GungeonPath.Text, Frontend = inst }; InstallationDone = false; InstallException = null; InstallErrorLabel.Hide(); InstallErrorButtons.Hide(); var thread = new Thread(new ThreadStart(() => InstallThread(data))); thread.Start(); }
public void CloseFile() { SaveFilePath(""); TextPreview textPreview = GetNode <TextPreview>("/root/Window/VB/MainHB/TextPreview"); textPreview.ClearText(); HBoxContainer bottomButtons = GetNode <HBoxContainer>("/root/Window/VB/BottomHB"); bottomButtons.Hide(); }
public void CloseDeleteToolbar() { DeleteToolbar.Hide(); ToolbarScrollSeperator.Hide(); }
public void CloseRenameToolbar() { RenameToolbar.Hide(); ToolbarScrollSeperator.Hide(); }
public void CloseCreateToolbar() { CreateToolbar.Hide(); ToolbarScrollSeperator.Hide(); }
public void OnStartButtonPressed(int numberOfPlayers) { _options.SetNumberOfPlayers(numberOfPlayers); _startScreen.Hide(); EmitSignal("StartGame"); }