void ReleaseDesignerOutlets() { if (lblTransactionText != null) { lblTransactionText.Dispose(); lblTransactionText = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (TransactionImage != null) { TransactionImage.Dispose(); TransactionImage = null; } if (vBasis != null) { vBasis.Dispose(); vBasis = null; } }
//implemented methods public override void InputFormFields() { WebElementWrapper questionContentElement = SelectQuestionContent(); //QuestionAnswerData if (_questionAnswerDataObject != null) { Utilities.DoFileUpload(Editor, _autoItDataObject, _questionAnswerDataObject.FileUploadTree, _questionAnswerDataObject.QuestionContent); Editor.ContentData = _questionAnswerDataObject.QuestionContent; } else //ItemTypeData { Utilities.DoFileUpload(Editor, _autoItDataObject, Data.FileUploadTree, Data.QuestionContent); Editor.ContentData = Data.QuestionContent; } //Editor.ContentData = Data.QuestionContent; Editor.InputAndSubmitForm(questionContentElement); //QuestionAnswerData if (_questionAnswerDataObject != null) { NumberOfAnswerColumnsSelect.SelectByText("" + _questionAnswerDataObject.AnswerList.Count); string answer = ""; foreach (var answerItem in _questionAnswerDataObject.AnswerList) { answer = answer + answerItem; } CorrectAnswerText.SendKeys(answer); PointsText.SendKeys("" + _questionAnswerDataObject.PointValueList[0]); } else //ItemTypeData { NumberOfAnswerColumnsSelect.SelectByText("" + Data.CorrectAnswer.Length); CorrectAnswerText.SendKeys(Data.CorrectAnswer); PointsText.SendKeys("" + Data.PointsValue); } //this is only applicable on https://qa-153mt.sndev.net //SelectEnableManipulativesNo(); //TODO: work on enable manipulatives for version 15.4 }
void ReleaseDesignerOutlets() { if (AspectHeight != null) { AspectHeight.Dispose(); AspectHeight = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeTextLbl != null) { ChallengeTextLbl.Dispose(); ChallengeTextLbl = null; } if (cnImagePlaceholderAspect != null) { cnImagePlaceholderAspect.Dispose(); cnImagePlaceholderAspect = null; } if (cnImagesCountHeight != null) { cnImagesCountHeight.Dispose(); cnImagesCountHeight = null; } if (cnMapPlaceholderAspect != null) { cnMapPlaceholderAspect.Dispose(); cnMapPlaceholderAspect = null; } if (cnMarginCount != null) { cnMarginCount.Dispose(); cnMarginCount = null; } if (cnsMapTop1 != null) { cnsMapTop1.Dispose(); cnsMapTop1 = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CountChallengeLbl != null) { CountChallengeLbl.Dispose(); CountChallengeLbl = null; } if (DetailCollectionView != null) { DetailCollectionView.Dispose(); DetailCollectionView = null; } if (DetailCollectionViewAspect != null) { DetailCollectionViewAspect.Dispose(); DetailCollectionViewAspect = null; } if (MapViewBase != null) { MapViewBase.Dispose(); MapViewBase = null; } if (NeedUploadCountText1 != null) { NeedUploadCountText1.Dispose(); NeedUploadCountText1 = null; } if (paddingMap != null) { paddingMap.Dispose(); paddingMap = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (ScrollContent != null) { ScrollContent.Dispose(); ScrollContent = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (UploadedCountText1 != null) { UploadedCountText1.Dispose(); UploadedCountText1 = null; } if (vImagePlaceholder != null) { vImagePlaceholder.Dispose(); vImagePlaceholder = null; } if (vImagesCount != null) { vImagesCount.Dispose(); vImagesCount = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }
void ReleaseDesignerOutlets() { if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeName != null) { ChallengeName.Dispose(); ChallengeName = null; } if (ChallengeTime != null) { ChallengeTime.Dispose(); ChallengeTime = null; } if (ChellangeRightImage != null) { ChellangeRightImage.Dispose(); ChellangeRightImage = null; } if (ClosedImage != null) { ClosedImage.Dispose(); ClosedImage = null; } if (LeftMargin != null) { LeftMargin.Dispose(); LeftMargin = null; } if (LeftSideView != null) { LeftSideView.Dispose(); LeftSideView = null; } if (NameSeparator != null) { NameSeparator.Dispose(); NameSeparator = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (RightMargin != null) { RightMargin.Dispose(); RightMargin = null; } if (SeperatorView != null) { SeperatorView.Dispose(); SeperatorView = null; } }
void ReleaseDesignerOutlets() { if (btnTopNotify != null) { btnTopNotify.Dispose(); btnTopNotify = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeText != null) { ChallengeText.Dispose(); ChallengeText = null; } if (cnsTableViewHeight != null) { cnsTableViewHeight.Dispose(); cnsTableViewHeight = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CollectionViewHeightConstraint != null) { CollectionViewHeightConstraint.Dispose(); CollectionViewHeightConstraint = null; } if (Content != null) { Content.Dispose(); Content = null; } if (ImageHeightConstraint != null) { ImageHeightConstraint.Dispose(); ImageHeightConstraint = null; } if (ImageOverlayView != null) { ImageOverlayView.Dispose(); ImageOverlayView = null; } if (imgTopLock != null) { imgTopLock.Dispose(); imgTopLock = null; } if (lblTopTime != null) { lblTopTime.Dispose(); lblTopTime = null; } if (lblTopUnlocksIn != null) { lblTopUnlocksIn.Dispose(); lblTopUnlocksIn = null; } if (MCCollectionView != null) { MCCollectionView.Dispose(); MCCollectionView = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SelectAllThatApply != null) { SelectAllThatApply.Dispose(); SelectAllThatApply = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }
void ReleaseDesignerOutlets() { if (AspectHeight != null) { AspectHeight.Dispose(); AspectHeight = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeText != null) { ChallengeText.Dispose(); ChallengeText = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CollectionView != null) { CollectionView.Dispose(); CollectionView = null; } if (CollectionViewDescription != null) { CollectionViewDescription.Dispose(); CollectionViewDescription = null; } if (HashBottomText != null) { HashBottomText.Dispose(); HashBottomText = null; } if (HashtagCopiedText != null) { HashtagCopiedText.Dispose(); HashtagCopiedText = null; } if (HashText != null) { HashText.Dispose(); HashText = null; } if (HashTitle != null) { HashTitle.Dispose(); HashTitle = null; } if (InstaCollectionView != null) { InstaCollectionView.Dispose(); InstaCollectionView = null; } if (InstaCollectionViewAspect != null) { InstaCollectionViewAspect.Dispose(); InstaCollectionViewAspect = null; } if (MainScroll != null) { MainScroll.Dispose(); MainScroll = null; } if (MainSrollBottomConstraint != null) { MainSrollBottomConstraint.Dispose(); MainSrollBottomConstraint = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TagCopiedView != null) { TagCopiedView.Dispose(); TagCopiedView = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }
void ReleaseDesignerOutlets() { if (btnCloseBg != null) { btnCloseBg.Dispose(); btnCloseBg = null; } if (btnCloseBgBottom != null) { btnCloseBgBottom.Dispose(); btnCloseBgBottom = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (MainView != null) { MainView.Dispose(); MainView = null; } if (MessageText != null) { MessageText.Dispose(); MessageText = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (RoundImage != null) { RoundImage.Dispose(); RoundImage = null; } if (TableHeightConstraint != null) { TableHeightConstraint.Dispose(); TableHeightConstraint = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TopViewContainer != null) { TopViewContainer.Dispose(); TopViewContainer = null; } if (vWhiteBackground != null) { vWhiteBackground.Dispose(); vWhiteBackground = null; } }
void endCheck() { SideCoordinator.current_phase = 4; if (armpit_Left_Angle <= 40) { SideCoordinator.armpLeftDegree.GetComponent <Text>().color = Color.black; wristLeftAngle_Check = true; } else { SideCoordinator.armpLeftDegree.GetComponent <Text>().color = Color.red; wristLeftAngle_Check = false; } if (armpit_Right_Angle <= 40) { SideCoordinator.armpRightDegree.GetComponent <Text>().color = Color.black; wristRightAngle_Check = true; } else { SideCoordinator.armpRightDegree.GetComponent <Text>().color = Color.red; wristRightAngle_Check = false; } if (wristLeftAngle_Check && wristRightAngle_Check) { judgment_position(); GameObject PointsText; int ct = 0; UnityEngine.Debug.Log("Arm Check"); for (int i = 0; i < 2; i++) { UnityEngine.Debug.Log("LeftArm[" + i + "]" + LeftArmDepth[i]); UnityEngine.Debug.Log("RightArm[" + i + "]" + RightArmDepth[i]); if (!LeftArmDepth[i]) { ct++; } if (!RightArmDepth[i]) { ct++; } } //UnityEngine.Debug.Log("CT = " + ct); if (ct == 0) { if (SideCoordinator.practice_On) { practice_count++; } PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/yosi")) as GameObject; //Debug.Log("yosi"); SideCoordinator.changeAni("greet_03"); } else if (ct == 1) { PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/soso")) as GameObject; SideCoordinator.changeAni("pose_00"); } else { PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/bad")) as GameObject; SideCoordinator.changeAni("refuse_01"); bad_count++; //Debug.Log("BAD"); } PointsText.GetComponent <ParticleSystem>().loop = false; show_pointText(PointsText); end_Flag = true; if (SideCoordinator.practice_On) { //Debug.Log(practice_count); if (practice_count > 1) { practice_count = 0; bad_count = 0; sideCoordi.ResumeScreen(); } } else { if (score_Count > 2 || set_Count != 0) { if (SideCoordinator.count_timer.ElapsedMilliseconds + 2000 > SideCoordinator.count_time_avg) { //Debug.Log("SLOW!!"); SideCoordinator.changeAni("nod_01"); //MSGorder = 5; } else { SideCoordinator.count_time_avg = (SideCoordinator.count_time_avg + SideCoordinator.count_timer.ElapsedMilliseconds) / score_Count; } //Debug.Log(SideCoordinator.count_timer.ElapsedMilliseconds + " / " + SideCoordinator.count_time_avg); } score_Count++; //if(status board is deactivate if (!SideCoordinator.Status.activeInHierarchy) { SideCoordinator.Status.SetActive(true); } //set board txt clearBoard(); setBoard(); //clear MuscleFail LeftArmMuscle[0] = true; LeftArmMuscle[1] = true; RightArmMuscle[0] = true; RightArmMuscle[1] = true; SideCoordinator.count_timer.Reset(); } Sound_Controller(); clearFail(); ready_Flag = false; start_Flag = false; top_Flag = false; end_Flag = false; sideCoordi.msg2Web("re:" + ready_Flag + " /st:" + start_Flag + " /tp:" + top_Flag + " /en:" + end_Flag); sideCoordi.msg2Web("after send" + score_Count); //Floating Text //GameObject PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/Kinniku")) as GameObject; //PointsText.transform.position = new Vector3(SideCoordinator.JointInfo["SpineShoulder"].X, SideCoordinator.JointInfo["SpineShoulder"].Y); if (!SideCoordinator.practice_On && bad_count > 2) { sideCoordi.SplitScreen(); } } }
void endCheck() { //DumbelCoordinator.setBallonText("팔을 천천히 내려 주세요"); DumbelCoordinator.current_phase = 4; if (armpit_Left_Angle <= 95) { DumbelCoordinator.armpLeftDegree.GetComponent <Text>().color = Color.black; wristLeftAngle_Check = true; } else { DumbelCoordinator.armpLeftDegree.GetComponent <Text>().color = Color.red; wristLeftAngle_Check = false; } if (armpit_Right_Angle <= 95) { DumbelCoordinator.armpRightDegree.GetComponent <Text>().color = Color.black; wristRightAngle_Check = true; } else { DumbelCoordinator.armpRightDegree.GetComponent <Text>().color = Color.red; wristRightAngle_Check = false; } if (wristLeftAngle_Check && wristRightAngle_Check) { judgment_position(); // 4,5 ->0 GameObject PointsText; int ct = 0; UnityEngine.Debug.Log("Arm Check"); for (int i = 0; i < 2; i++) { UnityEngine.Debug.Log("LeftArm[" + i + "]" + LeftArmDepth[i]); UnityEngine.Debug.Log("RightArm[" + i + "]" + RightArmDepth[i]); if (!LeftArmDepth[i]) { ct++; } if (!RightArmDepth[i]) { ct++; } } //UnityEngine.Debug.Log("CT = " + ct); if (ct == 0) { if (DumbelCoordinator.practice_On) { practice_count++; } PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/yosi")) as GameObject; //Debug.Log("yosi"); DumbelCoordinator.changeAni("greet_03"); } else if (ct == 1) { PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/soso")) as GameObject; DumbelCoordinator.changeAni("pose_00"); } else { PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/bad")) as GameObject; DumbelCoordinator.changeAni("refuse_01"); bad_count++; //Debug.Log("BAD"); } PointsText.GetComponent <ParticleSystem>().loop = false; show_pointText(PointsText); end_Flag = true; if (DumbelCoordinator.practice_On) { //Debug.Log(practice_count); if (practice_count > 1) { practice_count = 0; bad_count = 0; dumbelCoordi.practice_mod(false); dumbelCoordi.ResumeScreen(); } } else { if (score_Count > 2 || set_Count != 0) { if (DumbelCoordinator.count_timer.ElapsedMilliseconds + 2000 > DumbelCoordinator.count_time_avg) { //Debug.Log("SLOW!!"); DumbelCoordinator.changeAni("nod_01"); //MSGorder = 5; } else { DumbelCoordinator.count_time_avg = (DumbelCoordinator.count_time_avg + DumbelCoordinator.count_timer.ElapsedMilliseconds) / score_Count; } //Debug.Log(DumbelCoordinator.count_timer.ElapsedMilliseconds + " / " + DumbelCoordinator.count_time_avg); } score_Count++; //if(status board is deactivate if (!DumbelCoordinator.Status.activeInHierarchy) { DumbelCoordinator.Status.SetActive(true); } //set board txt clearBoard(); setBoard(); //clear MuscleFail LeftArmMuscle[0] = true; LeftArmMuscle[1] = true; RightArmMuscle[0] = true; RightArmMuscle[1] = true; DumbelCoordinator.count_timer.Reset(); //if (set_Count == 0 && score_Count == 2) //{ // //DumbelCoordinator.Status.SetActive(false); // DumbelCoordinator.Status.GetComponent<Image>().material = Resources.Load("blackMaterial") as Material; // DumbelCoordinator.title.transform.parent = GameObject.Find("Canvas").transform; // DumbelCoordinator.Status.GetComponent<RectTransform>().localScale = new Vector3(0.1203983f, 0.118181f, 1f); // DumbelCoordinator.Status.GetComponent<RectTransform>().offsetMin = new Vector2(-462f, -77f); // DumbelCoordinator.Status.GetComponent<RectTransform>().offsetMax = new Vector2(680f, 275f); // DumbelCoordinator.title.transform.parent = DumbelCoordinator.Status.transform; //} } Sound_Controller(); clearFail(); ready_Flag = false; start_Flag = false; top_Flag = false; end_Flag = false; dumbelCoordi.msg2Web("re:" + ready_Flag + " /st:" + start_Flag + " /tp:" + top_Flag + " /en:" + end_Flag); dumbelCoordi.msg2Web("after send" + score_Count); //Floating Text //GameObject PointsText = UnityEngine.Object.Instantiate(Resources.Load("Prefabs/Kinniku")) as GameObject; //PointsText.transform.position = new Vector3(DumbelCoordinator.JointInfo["SpineShoulder"].X, DumbelCoordinator.JointInfo["SpineShoulder"].Y); if (!DumbelCoordinator.practice_On && bad_count > 2) { dumbelCoordi.SplitScreen(); } } }