mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Music room music playing
This commit is contained in:
parent
67d7986330
commit
766b04b2ff
9 changed files with 129 additions and 86 deletions
|
|
@ -7,13 +7,13 @@ using DebugMapSelectData = Cirno.Scripts.Resources.DebugMenu.DebugMapSelectData;
|
|||
|
||||
public partial class DebugMenu : MenuBase
|
||||
{
|
||||
|
||||
|
||||
[Export]
|
||||
public Theme ButtonTheme { get; private set; }
|
||||
|
||||
|
||||
[Export]
|
||||
public DebugMapSelectData Levels { get; set; }
|
||||
|
||||
|
||||
[Export]
|
||||
public Container ButtonsContainer { get; private set; }
|
||||
|
||||
|
|
@ -29,9 +29,9 @@ public partial class DebugMenu : MenuBase
|
|||
button.Icon = level.Icon;
|
||||
//button.Text = level;
|
||||
button.Theme = ButtonTheme;
|
||||
|
||||
|
||||
ButtonsContainer.CallDeferred("add_child", button);
|
||||
|
||||
|
||||
button.Pressed += () => ButtonOnPressed(level);
|
||||
}
|
||||
}
|
||||
|
|
@ -45,13 +45,6 @@ public partial class DebugMenu : MenuBase
|
|||
GlobalState.Instance.GoToScene(scene.Path, scene.StartData);
|
||||
}
|
||||
|
||||
private void _on_back_button_pressed()
|
||||
{
|
||||
this.QueueFree();
|
||||
|
||||
EmitSignal(SignalName.MenuClosed);
|
||||
}
|
||||
|
||||
private void _on_check_box_toggled(bool state)
|
||||
{
|
||||
GlobalState.Instance.SessionSettings.SkipDialogues = state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue