Add Godot project shell
This commit is contained in:
23
godot/scripts/menu/MenuPlaceholder.cs
Normal file
23
godot/scripts/menu/MenuPlaceholder.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
#nullable enable
|
||||
|
||||
using Godot;
|
||||
|
||||
namespace SideScrollerGame.Menu;
|
||||
|
||||
public partial class MenuPlaceholder : Control
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
Label? title = GetNodeOrNull<Label>("Title");
|
||||
if (title is not null)
|
||||
{
|
||||
title.Text = "SideScrollerGame - Menu Placeholder";
|
||||
}
|
||||
|
||||
Label? hint = GetNodeOrNull<Label>("Hint");
|
||||
if (hint is not null)
|
||||
{
|
||||
hint.Text = "Run with -- --debug-boot=smoke for smoke scene";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user