Beispiel #1
0
    private void ExposeCapi()
    {
        Capi.expose <string>("UI.Lesson Title.Text", () => { return(LessonLabel.text); }, (value) => { return(LessonLabel.text = value); });

        Capi.expose <bool>("UI.ButtonPanel.Shown", () => { return(UiElements[0].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[0].gameObject)); });
        Capi.expose <bool>("UI.CacheCase.Shown", () => { return(UiElements[1].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[1].gameObject)); });
        Capi.expose <bool>("UI.MiniMap.Shown", () => { return(UiElements[2].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[2].gameObject)); });
        Capi.expose <bool>("UI.ZoomSlider.Shown", () => { return(UiElements[3].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[3].gameObject)); });

        Capi.expose <bool>("UI.PauseButton.Enabled", () => { return(UiElements[4].GetComponent <Button>().interactable); }, (value) => { return(SetButtonInteractable(value, UiElements[4].gameObject)); });
        Capi.expose <bool>("UI.PlanetToggleButton.Enabled", () => { return(UiElements[5].GetComponent <Button>().interactable); }, (value) => { return(SetButtonInteractable(value, UiElements[5].gameObject)); });
        Capi.expose <bool>("UI.StarfieldToggleButton.Enabled", () => { return(UiElements[6].GetComponent <Button>().interactable); }, (value) => { return(SetButtonInteractable(value, UiElements[6].gameObject)); });
        Capi.expose <bool>("UI.TestObjectDragButton.Enabled", () => { return(UiElements[7].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[7].gameObject)); });

        Capi.expose <bool>("UI.NEO Counter.Enabled", () => { return(UiElements[8].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[8].gameObject)); });
        Capi.expose <bool>("UI.MBA Counter.Enabled", () => { return(UiElements[9].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[9].gameObject)); });
        Capi.expose <bool>("UI.KBO Counter.Enabled", () => { return(UiElements[10].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[10].gameObject)); });

        Capi.expose <bool>("UI.Next Button.Shown", () => { return(ShowNextButton); }, (value) => { return(DisableNextButton(value, UiElements[11].gameObject)); });
        Capi.expose <string>("UI.Next Button.Text", () => { return(UiElements[11].gameObject.GetComponent <NextButtonWidget>().MyLabel.text); }, (value) => { return(UiElements[11].gameObject.GetComponent <NextButtonWidget>().MyLabel.text = value); });

        Capi.expose <string>("UI.CenterMessage", () => { return(UiElements[14].GetComponent <Text>().text); }, (value) => { return(UpdateCenterMessage(value, UiElements[14])); });

        Capi.expose <string>("UI.CenterErrorMessage", () => { return(UiElements[16].GetComponent <Text>().text); }, (value) => { return(UpdateCenterMessage(value, UiElements[16])); });

        Capi.expose <float>("UI.CenterMessageFadeTimer", () => { return(FadeSpeed); }, (value) => { return(FadeSpeed = value); });

        Capi.expose <bool>("UI.ShowProgressLabel", () => { return(UiElements[15].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[15].gameObject)); });

        Capi.expose <bool>("UI.SpeedSlider.Shown", () => { return(UiElements[12].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[12].gameObject)); });
        Capi.expose <bool>("UI.PauseButton.Shown", () => { return(UiElements[13].activeSelf); }, (value) => { return(ReturnActiveState(value, UiElements[13].gameObject)); });

        //Capi.expose<bool>("UI.CacheCase.ENV Toggle", () => { return CacheCaseEnvToggle.activeSelf; }, (value) => { return ReturnActiveState(value, CacheCaseEnvToggle); });
    }
    private void ExposeMyCapi()
    {
        Capi.expose <bool>(transform.parent.name + ".CacheFound", () => { return(Studied); }, (value) => { return(Studied = value); });
        Capi.expose <bool>(transform.parent.name + ".AddNameplate", () => { return(AddNamePlate); }, (value) => { return(AddNamePlate = value); });

        Capi.expose <bool>(transform.parent.name + ".AddOrbitalPath", () => { return(AddOrbitalPath); }, (value) => { return(AddOrbitalPath = value); });
    }
Beispiel #3
0
    private void ExposeCAPI()
    {
        Capi.expose <bool>(gameObject.name + ".FlashZone", () => { return(ToggleZone); }, (value) => { return(ToggleZone = value); });
        Capi.expose <bool>(gameObject.name + ".FadeZone", () => { return(ForceFadeOut); }, (value) => { return(ForceFadeOut = value); });

        CapiExposed = true;
    }
    private void ExposeCapi()
    {
        Capi.expose <float>("Module 1 Assessment.Mode", () => { return(AssessmentMode); }, (value) => { return(AssessmentMode = value); });
        Capi.expose <bool>("Module 1 Assessment.Reset Assessment", () => { return(ResetAssessmentState); }, (value) => { return(ResetAssessmentState = value); });
        Capi.expose <bool>("Module 1 Assessment.NEO Zone Correct", () => { return(NEOZoneCorrect); }, (value) => { return(NEOZoneCorrect = value); });
        Capi.expose <bool>("Module 1 Assessment.MAB Zone Correct", () => { return(MABZoneCorrect); }, (value) => { return(MABZoneCorrect = value); });
        Capi.expose <bool>("Module 1 Assessment.KB Zone Correct", () => { return(KBOZoneCorrect); }, (value) => { return(KBOZoneCorrect = value); });

        Capi.expose <string>("Module 1 Assessment.Verify Button Label", () => { return(transform.GetChild(1).GetComponent <Text>().text); }, (value) => { return(transform.GetChild(1).GetComponent <Text>().text = value); });
    }
Beispiel #5
0
 public void ExposeMyCapi()
 {
     Capi.expose <float>(gameObject.name + ".distance", () => { return(radius); }, (value) => { return(radius = value); });
     Capi.expose <bool>(gameObject.name + ".fixLocation", () => { return(FixLocation); }, (value) => { return(FixLocation = value); });
     Capi.expose <bool>(gameObject.name + ".UpdatePosition", () => { return(UpdateStagePosition); }, (value) => { return(UpdateStagePosition = value); });
     Capi.expose <float>(gameObject.name + ".OrbitSpeed", () => { return(rotationSpeed); }, (value) => { return(rotationSpeed = value); });
     Capi.expose <float>(gameObject.name + ".Position.x", () => { return(StagePosition.x); }, (value) => { return(StagePosition.x = value); });
     Capi.expose <float>(gameObject.name + ".Position.y", () => { return(StagePosition.y); }, (value) => { return(StagePosition.y = value); });
     Capi.expose <float>(gameObject.name + ".Position.z", () => { return(StagePosition.z); }, (value) => { return(StagePosition.z = value); });
 }
Beispiel #6
0
 private void ExposeCAPI()
 {
     if (!CustomCapiNames)
     {
         Capi.expose <float>("Camera.SSV.Zoom Level", () => { return(MyCamera.transform.position.y); }, (value) => { return(UpdateSSVCameraPosition(value)); });
         //Debug.Log(gameObject.name);
     }
     else
     {
         Capi.expose <float>("Camera." + gameObject.name + ".Zoom Level", () => { return(MyCamera.transform.position.y); }, (value) => { return(UpdateSSVCameraPosition(value)); });
         //Debug.Log(gameObject.name);
     }
 }
Beispiel #7
0
    public void ExposeMyCapi()
    {
        // EXPOSE ALL NUMBERS AS FLOATS! INCLUDING INTEGERS! THEY ARE NOW EXPOSED AS FLOATS!
        // JOS: 7/29/2016

        Capi.expose <float>("Globals.WorldSpeed", () => { return(CurrentTime); }, (value) => { return(UpdateWorldSpeedAndSlider(value)); });
        //Capi.expose<bool>("Paused", () => { return Paused; }, (value) => { return Paused = value; });
        Capi.expose <string>("Globals.SelectedObject", () => { return(SelectedObject); }, (value) => { return(SelectedObject = value); });
        Capi.expose <string>("Globals.SelectedObjectType", () => { return(SelectedObjectType); }, (value) => { return(SelectedObjectType = value); });
        Capi.expose <bool>("Globals.Starfield", () => { return(_starField); }, (value) => { return(_starField = value); });
        Capi.expose <bool>("Globals.SPR FoundCache", () => { return(SPR_FoundCache); }, (value) => { return(SPR_FoundCache = value); });
        Capi.expose <bool>("Globals.ToggleSSV", () => { return(ToggleSSV); }, (value) => { return(ToggleSSV = value); });
        Capi.expose <bool>("Globals.ToggleCUP", () => { return(ToggleCUP); }, (value) => { return(ToggleCUP = value); });
        Capi.expose <bool>("Globals.LockTarget", () => { return(LockTarget); }, (value) => { return(LockTarget = value); });

        Capi.expose <bool>("System.Save Current Data Now", () => { return(SaveDataRightNow); }, (value) => { return(SaveDataRightNow = value); });
        Capi.expose <bool>("System.AllowNextOnCacheCase", () => { return(AllowNextOnCacheCase); }, (value) => { return(AllowNextOnCacheCase = value); });
        Capi.expose <bool>("System.Trigger Delayed Next", () => { return(TriggerDelayedNext); }, (value) => { return(TriggerDelayedNext = value); });
        Capi.expose <float>("System.Delayed Next Duration", () => { return(NextScreenDelay); }, (value) => { return(NextScreenDelay = value); });

        Capi.expose <bool>("ENV.ToggleKBOGroup", () => { return(DrawKBOGroup); }, (value) => { return(DrawKBOGroup = value); });
        Capi.expose <bool>("ENV.ToggleMBOGroup", () => { return(DrawMBOGroup); }, (value) => { return(DrawMBOGroup = value); });
        Capi.expose <bool>("ENV.ToggleNEOGroup", () => { return(DrawNEOGroup); }, (value) => { return(DrawNEOGroup = value); });

        Capi.expose <bool>("Module 1 Assessment.Toggle NEO Orbit Lines", () => { return(ShowNEOAssessmentLines); }, (value) => { return(ShowNEOAssessmentLines = value); });
        Capi.expose <bool>("Module 1 Assessment.Toggle MAB Orbit Lines", () => { return(ShowMABAssessmentLines); }, (value) => { return(ShowMABAssessmentLines = value); });
        Capi.expose <bool>("Module 1 Assessment.Toggle KBO Orbit Lines", () => { return(ShowKBOAssessmentLines); }, (value) => { return(ShowKBOAssessmentLines = value); });

        Capi.expose <bool>("Globals.Pause", () => { return(PPToggle); }, (value) => { return(PPToggle = value); });
        Capi.expose <bool>("Globals.FadeZone", () => { return(_OrbitalZoneFlasher.ForceFadeOut); }, (value) => { return(_OrbitalZoneFlasher.ForceFadeOut = value); });
        Capi.expose <bool>("System.AllowSimTriggers", () => { return(AllowSimTriggers); }, (value) => { return(AllowSimTriggers = value); });
        Capi.expose <bool>("System.AllowDelayedSimTriggers", () => { return(AllowDelayedSimTriggers); }, (value) => { return(AllowDelayedSimTriggers = value); });
        Capi.expose <bool>("System.TutorialMode", () => { return(TutorialMode); }, (value) => { return(TutorialMode = value); });

        Capi.expose <float>("Globals.KBOs Found", () => { return(KBO_Found); }, (value) => { return(KBO_Found = value); });
        Capi.expose <float>("Globals.MBOs Found", () => { return(MBO_Found); }, (value) => { return(MBO_Found = value); });
        Capi.expose <float>("Globals.NEOs Found", () => { return(NEO_Found); }, (value) => { return(NEO_Found = value); });

        // Camera CAPI
        Capi.expose <float>("Camera.Rotation.x", () => { return(CameraRotation.x); }, (value) => { return(CameraRotation.x = value); });
        Capi.expose <float>("Camera.Rotation.y", () => { return(CameraRotation.y); }, (value) => { return(CameraRotation.y = value); });

        Capi.expose <bool>("UI.Minimap.FlashZone", () => { return(TestObjectDragMenuObject.GetComponent <DragMe>().ShowZone); }, (value) => { return(TestObjectDragMenuObject.GetComponent <DragMe>().ShowZone = value); });
        Capi.expose <bool>("UI.Minimap.SetCurrentZone", () => { return(SetCurrentZoneData); }, (value) => { return(SetCurrentZoneData = value); });
        Capi.expose <float>("UI.Minimap.SetCurrentZoneWidth", () => { return(SetCurrentZoneWidth); }, (value) => { return(SetCurrentZoneWidth = value); });
        Capi.expose <float>("UI.Minimap.SetCurrentZoneMidpoint", () => { return(SetCurrentZoneMidpoint); }, (value) => { return(SetCurrentZoneMidpoint = value); });

        //NB:04/15/2018
        //capi expose for resetdata
        Capi.expose <bool>("Globals.ResetData", () => { return(ResetData); }, (value) => { return(ResetData = value); });
    }
Beispiel #8
0
    private void ExposeCapi()
    {
        //Debug.Log(_MyText);

        Capi.expose <string>(CAPI_Name + ".Text", () => { return(MyFeedbackText); }, (value) => { return(ReturnFormattedText(value, MyFeedbackText)); });
        Capi.expose <string>(CAPI_Name + ".ObjectiveText", () => { return(MyObjectiveText.text); }, (value) => { return(UpdateObjectiveText(value)); });
        Capi.expose <string>(CAPI_Name + ".WebLinkText", () => { return(WebContentText); }, (value) => { return(WebContentText = value); });
        Capi.expose <string>(CAPI_Name + ".WebLinkURL", () => { return(WebContentURL); }, (value) => { return(WebContentURL = value); });

        Capi.expose <string>(CAPI_Name + ".SendMessage1", () => { return(CAPI_SendMessage[0]); }, (value) => { return(ContentViaMessage(0, value)); });
        Capi.expose <string>(CAPI_Name + ".SendMessage2", () => { return(CAPI_SendMessage[1]); }, (value) => { return(ContentViaMessage(1, value)); });
        Capi.expose <string>(CAPI_Name + ".SendMessage3", () => { return(CAPI_SendMessage[2]); }, (value) => { return(ContentViaMessage(2, value)); });
        Capi.expose <string>(CAPI_Name + ".SendMessage4", () => { return(CAPI_SendMessage[3]); }, (value) => { return(ContentViaMessage(3, value)); });
        Capi.expose <string>(CAPI_Name + ".SendMessage5", () => { return(CAPI_SendMessage[4]); }, (value) => { return(ContentViaMessage(4, value)); });

        Capi.expose <bool>(CAPI_Name + ".Shown", () => { return(Shown); }, (value) => { return(ReturnActiveState(value, gameObject)); });
        Capi.expose <bool>(CAPI_Name + ".CreateNewFeedback", () => { return(CreateNewContentObject); }, (value) => { return(CreateNewContentObject = value); });
        Capi.expose <bool>(CAPI_Name + ".CreateNewWebLink", () => { return(CreateNewWebContentObject); }, (value) => { return(CreateNewWebContentObject = value); });
        Capi.expose <float>(CAPI_Name + ".Type", () => { return(FeedbackType); }, (value) => { return(UpdateFeedbackBoxColor(value)); });
        Capi.expose <float>(CAPI_Name + ".Web Content Width", () => { return(WebContentWidth); }, (value) => { return(WebContentWidth = value); });
        Capi.expose <float>(CAPI_Name + ".Web Content Height", () => { return(WebContentHeight); }, (value) => { return(WebContentHeight = value); });
    }
Beispiel #9
0
 public void ExposeCAPI()
 {
     Capi.expose <bool>(gameObject.name + ".PlaySelectedSound", () => { return(PlaySelectedSound); }, (value) => { return(PlaySelectedSound = value); });
     Capi.expose <float>(gameObject.name + ".SelectedSound", () => { return(ClipIndex); }, (value) => { return(ClipIndex = (int)value); });
     Capi.expose <float>(gameObject.name + ".Volume", () => { return(MySource.volume); }, (value) => { return(MySource.volume = value); });
 }
 private void ExposeCAPI()
 {
     Capi.expose <bool>("UI." + gameObject.name + ".TriggerFlash", () => { return(TriggerFlash); }, (value) => { return(TriggerFlash = value); });
 }
 void ExposeMyCapi()
 {
     Capi.expose <float>(gameObject.name + ".Radius", () => { return(PathRadius); }, (value) => { return(PathRadius = value); });
     Capi.expose <float>(gameObject.name + ".Width", () => { return(width); }, (value) => { return(SetWidth(value)); });
     Capi.expose <bool>(gameObject.name + ".ResizeLine", () => { return(UpdateLineSize); }, (value) => { return(UpdateLineSize = value); });
 }
Beispiel #12
0
 private void ExposeMyCapi()
 {
     Capi.expose <bool>("UI.Next Button.Shown", () => { return(gameObject.activeSelf); }, (value) => { return(ReturnActiveState(value, gameObject)); });
     Capi.expose <string>("UI.Next Button.Label Text", () => { return(MyLabel.text); }, (value) => { return(MyLabel.text = value); });
 }
Beispiel #13
0
 private void ExposeMyCapi()
 {
     Capi.expose <bool>("UI." + CAPIName + "Toggle", () => { return(ToggleButton); }, (value) => { return(ToggleButton = value); });
 }
 private void ExposeMyCapi()
 {
     Capi.expose <bool>("System.Restart.Sim Wants To Restart", () => { return(SimWantsToRestart); }, (value) => { return(SimWantsToRestart = value); });
     Capi.expose <bool>("System.Restart.Attempt Restart", () => { return(AttemptRestart); }, (value) => { return(AttemptRestart = value); });
 }
Beispiel #15
0
 private void ExposeCapi()
 {
     Capi.expose <bool>(gameObject.name + ".AutoFlashZone", () => { return(AutoFlashZone); }, (value) => { return(AutoFlashZone = value); });
 }
Beispiel #16
0
 private void ExposeCAPI()
 {
     Capi.expose <bool>("System.Reset Reticle", () => { return(ResetReticle); }, (value) => { return(ResetReticle = value); });
 }
Beispiel #17
0
 private void ExposeMyCapi()
 {
     Capi.expose <bool>("Camera.AutoTrackCurrentTarget", () => { return(AutoTrackCurrentTarget); }, (value) => { return(AutoTrackCurrentTarget = value); });
 }