コード例 #1
0
 private void CommandButtons_TestButtonClicked(UIMouseEvent evt, UIElement listeningElement)
 {
     if (!KhaiosUtil.TestCommand(commandEntered, ref commandError))
     {
         commandTextError.SetText(commandError);
     }
     else
     {
         commandTextError.SetText("Success!");
     }
 }
コード例 #2
0
 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();
 }