Split project
This commit is contained in:
32
Manual/ProgrammableModuleSettingTab.cs
Normal file
32
Manual/ProgrammableModuleSettingTab.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Enigmos.Modules.ProgrammableModules;
|
||||
using Godot;
|
||||
using Nocturnis.Enigmos.ModuleManuals;
|
||||
using TabulaSmaragdina;
|
||||
|
||||
namespace Enigmos.Manual;
|
||||
|
||||
public partial class ProgrammableModuleSettingTab : Panel, IModuleManualTab
|
||||
{
|
||||
private ProgrammableModule Module { get; set; }
|
||||
|
||||
private Button EditModule { get; set; }
|
||||
|
||||
public void Init(ProgrammableModule module)
|
||||
{
|
||||
Module = module;
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
EditModule = GetNode<Button>("EditModule");
|
||||
Name = "Prog";
|
||||
base._Ready();
|
||||
}
|
||||
|
||||
public string FullName() => "Programmable";
|
||||
|
||||
private void EnterProgrammableBoard()
|
||||
{
|
||||
GlobalProvider.SceneProvider.RootScene.ChangeScene(Module.UnderlyingBoard);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user