You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
941 B

namespace CMSGame
{
public partial class SettingsMenu : TabContainer
{
private static bool s_inDevelopment => OS.HasFeature("debug") || OS.HasFeature("editor");
public GameSettingsNode? Settings;
public Control? BattleSettingsMenu;
public Control? VideoSettingsMenu;
public Control? AudioSettingsMenu;
public Control? DeveloperOptionsMenu;
public override void _Ready()
{
this.GetAutoloadNode(ref Settings, nameof(GameSettingsNode));
this.GetUniqueNode(ref BattleSettingsMenu, nameof(BattleSettingsMenu));
this.GetUniqueNode(ref VideoSettingsMenu, nameof(VideoSettingsMenu));
this.GetUniqueNode(ref AudioSettingsMenu, nameof(AudioSettingsMenu));
this.GetUniqueNode(ref DeveloperOptionsMenu, nameof(DeveloperOptionsMenu));
DeveloperOptionsMenu!.Visible = s_inDevelopment;
}
}
}