static void Main(string[] args) { Engine = new OpenDeckEngine(OpenDeck.Server.API.Actions.ActionScope.Server); Engine.AddButton(new JSONButton() { Name = "Test", Tooltip = "Test", Icon = "128.jpg", Position = 0, Scope = OpenDeck.Server.API.Actions.ActionScope.Client, ActionCMD = "SOUND", ActionArgs = "Hyperscape Drop.mp3" }); Console.ReadKey(); Engine.AddButton(new JSONButton() { Name = "Test", Tooltip = "Test", Icon = "128.jpg", Position = 5, Scope = OpenDeck.Server.API.Actions.ActionScope.Client, ActionCMD = "SOUND", ActionArgs = "Hyperscape Drop.mp3" }); Console.ReadKey(); }
public MainWindow() { InitializeComponent(); this.Engine = new OpenDeckEngine(Server.API.Actions.ActionScope.Client); ButtonPage buttonPage = new ButtonPage(); buttonPage.LoadButtons(this.Engine); this.Content = buttonPage; #if DEBUG this.AttachDevTools(); #endif }
public MainWindow() { InitializeComponent(); #if DEBUG this.AttachDevTools(); #endif if (!Directory.Exists(Environment.CurrentDirectory + "//res")) { Directory.CreateDirectory(Environment.CurrentDirectory + "//res"); } Engine = new OpenDeckEngine(OpenDeck.Server.API.Actions.ActionScope.Client); Engine.onButtonAdded += Engine_onButtonAdded; }
public void LoadButtons(OpenDeckEngine Engine) { this.Engine = Engine; this.Engine.onButtonAdded += Engine_onButtonAdded; }