mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Title screen background and music
This commit is contained in:
parent
b78692f150
commit
5b2b11545a
12 changed files with 326 additions and 123 deletions
|
|
@ -5,7 +5,7 @@ public partial class MainMenu : Control
|
|||
{
|
||||
|
||||
[Export]
|
||||
public string GameScene { get; set; }
|
||||
public PackedScene GameScene { get; set; }
|
||||
|
||||
[Export]
|
||||
public string MainMenuScene { get; set; }
|
||||
|
|
@ -23,7 +23,7 @@ public partial class MainMenu : Control
|
|||
private void _on_start_button_pressed()
|
||||
{
|
||||
if (GameScene != null) {
|
||||
GetTree().ChangeSceneToFile(GameScene);
|
||||
GetTree().ChangeSceneToFile(GameScene.ResourcePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue