private void CommandButtons_TestButtonClicked(UIMouseEvent evt, UIElement listeningElement) { if (!KhaiosUtil.TestCommand(commandEntered, ref commandError)) { commandTextError.SetText(commandError); } else { commandTextError.SetText("Success!"); } }
private void CommandButtons_ConfirmExecuteButtonClicked(UIMouseEvent evt, UIElement listeningElement) { if (tile == null || tileEntity == null) { return; } tileEntity.commandTileCommand = commandEntered; if (!KhaiosUtil.TestCommand(commandEntered, ref commandError)) { commandTextError.SetText(commandError); return; } KhaiosUtil.ExecuteCommand(commandEntered, ref tileEntity); caller.CloseCommand(); }