Esempio n. 1
0
 private void ReplayTriggered()
 {
     SetProgressText("REPLAYING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END REPLAY", instructionColor);
     if (replayPath.Length > 0)
     {
         SetSavedPathsText("Replay File @ " + replayPath);
     }
     bug_report_state_ = BugReportState.REPLAYING;
 }
Esempio n. 2
0
 private void RecordingTriggered()
 {
     saving_triggered_ = false;
     leap_controller_.BugReport.BeginRecording();
     handController.ResetRecording();
     handController.Record();
     SetProgressText("RECORDING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END RECORD", instructionColor);
     SetSavedPathsText("");
     bug_report_state_ = BugReportState.RECORDING;
 }
Esempio n. 3
0
 private void ReadyTriggered()
 {
     handController.ResetRecording();
     handController.StopRecording();
     InterfaceEnabled          = m_interfaceEnabled;
     progressStatus.fillAmount = 1.0f;
     SetProgressText("READY", Color.green);
     SetInstructionText("PRESS '" + unlockStart + "' + '" + changeState + "' TO START RECORDING", instructionColor);
     SetSavedPathsText("");
     bug_report_state_ = BugReportState.READY;
 }
Esempio n. 4
0
 private void OnBugReportClick()
 {
     if (BugReportState.isReady)
     {
         StateLayer defaultLayer = default(StateLayer);
         if (!StateManager.TryGetLayer("OptionUI", ref defaultLayer))
         {
             defaultLayer = StateManager.GetDefaultLayer();
         }
         StateManager.SetActiveInputLayer(defaultLayer);
         BugReportState bugReportState = new BugReportState();
         bugReportState.Initialize();
         defaultLayer.GetChainEnd().SetChildState(bugReportState, 0);
     }
 }
Esempio n. 5
0
 private void OnBugReport()
 {
     if (BugReportState.isReady)
     {
         StateLayer defaultLayer = default(StateLayer);
         if (!StateManager.TryGetLayer("OptionUI", ref defaultLayer))
         {
             defaultLayer = StateManager.GetDefaultLayer();
         }
         StateManager.SetActiveInputLayer(defaultLayer);
         UIManager.instance.NotifyLayerIndexChange();
         BugReportState bugReportState = new BugReportState();
         bugReportState.Initialize();
         defaultLayer.GetChainEnd().SetChildState(bugReportState, 0);
         m_popupMenu.Close();
     }
 }
Esempio n. 6
0
 private void ReadyTriggered()
 {
     handController.ResetRecording();
     handController.StopRecording();
     if (synchronizeRecorder != null &&
         synchronizeRecorder.camRecorder != null)
     {
         synchronizeRecorder.m_hideInstructions = false;
         synchronizeRecorder.InterfaceEnabled   = synchronizeRecorder.m_interfaceEnabled;
         synchronizeRecorder.showFrameTimeStamp = synchronizeRecorder.m_enableFrameTimeStamp;
         synchronizeRecorder.camRecorder.StopRecording();
     }
     InterfaceEnabled          = m_interfaceEnabled;
     progressStatus.fillAmount = 1.0f;
     SetProgressText("READY", Color.green);
     SetInstructionText("PRESS '" + unlockStart + "' + '" + changeState + "' TO START RECORDING", instructionColor);
     SetSavedPathsText("");
     bug_report_state_ = BugReportState.READY;
 }
Esempio n. 7
0
 private void RecordingTriggered()
 {
     saving_triggered_ = false;
     leap_controller_.BugReport.BeginRecording();
     handController.ResetRecording();
     handController.Record();
     if (synchronizeRecorder != null &&
         synchronizeRecorder.camRecorder != null)
     {
         synchronizeRecorder.m_hideInstructions    = true;
         synchronizeRecorder.InterfaceEnabled      = true;
         synchronizeRecorder.showFrameTimeStamp    = true;
         synchronizeRecorder.camRecorder.directory = Application.persistentDataPath + "/" + DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
         synchronizeRecorder.camRecorder.StartRecording();
     }
     SetProgressText("RECORDING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END RECORD", instructionColor);
     SetSavedPathsText("");
     bug_report_state_ = BugReportState.RECORDING;
 }
Esempio n. 8
0
 private void ReplayTriggered()
 {
     SetProgressText("REPLAYING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END REPLAY", instructionColor);
     if (replayPath.Length > 0) {
       SetSavedPathsText("Replay File @ " + replayPath);
     }
     bug_report_state_ = BugReportState.REPLAYING;
 }
Esempio n. 9
0
 private void RecordingTriggered()
 {
     saving_triggered_ = false;
     leap_controller_.BugReport.BeginRecording();
     handController.ResetRecording();
     handController.Record();
     SetProgressText("RECORDING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END RECORD", instructionColor);
     SetSavedPathsText ("");
     bug_report_state_ = BugReportState.RECORDING;
 }
Esempio n. 10
0
 private void ReadyTriggered()
 {
     handController.ResetRecording();
     handController.StopRecording();
     InterfaceEnabled = m_interfaceEnabled;
     progressStatus.fillAmount = 1.0f;
     SetProgressText("READY", Color.green);
     SetInstructionText("PRESS '" + unlockStart + "' + '" + changeState + "' TO START RECORDING", instructionColor);
     SetSavedPathsText ("");
     bug_report_state_ = BugReportState.READY;
 }
Esempio n. 11
0
 private void RecordingTriggered()
 {
   saving_triggered_ = false;
   leap_controller_.BugReport.BeginRecording();
   handController.ResetRecording();
   handController.Record();
   if (synchronizeRecorder != null &&
       synchronizeRecorder.camRecorder != null) {
     synchronizeRecorder.m_hideInstructions = true;
     synchronizeRecorder.InterfaceEnabled = true;
     synchronizeRecorder.showFrameTimeStamp = true;
     synchronizeRecorder.camRecorder.directory = Application.persistentDataPath + "/" + DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
     synchronizeRecorder.camRecorder.StartRecording();
   }
   SetProgressText("RECORDING", Color.yellow);
   SetInstructionText("PRESS '" + changeState + "' TO END RECORD", instructionColor);
   SetSavedPathsText ("");
   bug_report_state_ = BugReportState.RECORDING;
 }
Esempio n. 12
0
 private void ReadyTriggered()
 {
   handController.ResetRecording();
   handController.StopRecording();
   if (synchronizeRecorder != null &&
       synchronizeRecorder.camRecorder != null) {
     synchronizeRecorder.m_hideInstructions = false;
     synchronizeRecorder.InterfaceEnabled = synchronizeRecorder.m_interfaceEnabled;
     synchronizeRecorder.showFrameTimeStamp = synchronizeRecorder.m_enableFrameTimeStamp;
     synchronizeRecorder.camRecorder.StopRecording();
   }
   InterfaceEnabled = m_interfaceEnabled;
   progressStatus.fillAmount = 1.0f;
   SetProgressText("READY", Color.green);
   SetInstructionText("PRESS '" + unlockStart + "' + '" + changeState + "' TO START RECORDING", instructionColor);
   SetSavedPathsText ("");
   bug_report_state_ = BugReportState.READY;
 }
Esempio n. 13
0
 private void ReplayTriggered()
 {
     SetProgressText("REPLAYING", Color.yellow);
     SetInstructionText("PRESS '" + changeState + "' TO END REPLAY", instructionColor);
     bug_report_state_ = BugReportState.REPLAYING;
 }
Esempio n. 14
0
 private void ReadyTriggered()
 {
     handController.ResetRecording();
     handController.StopRecording();
     progressStatus.fillAmount = 1.0f;
     SetProgressText("READY", Color.green);
     SetInstructionText("PRESS '" + changeState + "' TO START RECORD", instructionColor);
     bug_report_state_ = BugReportState.READY;
 }