Example #1
0
 private void SetLinkTransText()
 {
     linkTransText.text = "Transparency " + linkTrans.value.ToString("F2");
     if (oldLinkTrans != linkTrans.value)
     {
         lman.SetLinkTrans(linkTrans.value);
         oldLinkTrans       = linkTrans.value;
         linkTransText.text = "Transparency " + linkTrans.value.ToString("F2");
         sman.RequestRefresh("VisualPanel-SetLinkTransText");
     }
 }
Example #2
0
 public void SetVals()
 {
     Debug.Log("GeneralPanel SetVals called");
     sman.fastMode = fastModeToggle.isOn;
     panelActive   = false;
     sman.RequestRefresh("GeneralPanel-SetVals");
 }
Example #3
0
    public void SetVals()
    {
        Debug.Log("FramePanel SetVals called");
        fman.visibilityTiedToDetectability.SetAndSave(visTiedToggle.isOn);
        fman.showCarRects.SetAndSave(showCarsToggle.isOn);
        fman.showPersRects.SetAndSave(showPersToggle.isOn);
        fman.showHeadRects.SetAndSave(showHeadToggle.isOn);
        fman.frameJourneys.SetAndSave(frameJourneys.isOn);
        fman.frameBuildings.SetAndSave(frameBuildings.isOn);
        fman.frameGarages.SetAndSave(frameGarages.isOn);
        fman.frameZones.SetAndSave(frameZones.isOn);

        {
            var opts   = fman.topLabelText.GetOptionsAsList();
            var newval = opts[topTextDropdown.value];
            fman.topLabelText.SetAndSave(newval);
            Debug.Log("SetAndSave toptextlabel default to " + newval);
        }
        {
            var opts   = fman.botLabelText.GetOptionsAsList();
            var newval = opts[botTextDropdown.value];
            fman.botLabelText.SetAndSave(newval);
            Debug.Log("SetAndSave botLabelText default to " + newval);
        }


        panelActive = false;
        sman.RequestRefresh("FramePanel-SetVals");
    }
Example #4
0
 public void RealizeSlotForm(string inisval)
 {
     slotform.Set(inisval);
     InterpretSlotForm();
     //Debug.Log("Set slotform to " + slotform);
     RefreshGos();
     sman.RequestRefresh("GarageMan-RealizeSlotForm");
 }
Example #5
0
        public void SetLinkAndNodeVisibility(string snewval, bool force = true)
        {
            var newval = lvisOptions.Translate(snewval);

            if (!force && newval == lvisOptions.Get())
            {
                Debug.Log("SetLinkAndNodeVisiblty doing nothing because there was no change");
                return; // do nothing
            }
            this.nodesvisible = false;
            this.linksvisible = false;
            this.flatlinks    = false;
            switch (newval)
            {
            case LinkVisualOptionsE.NodesAndLinks:
                this.nodesvisible = true;
                this.linksvisible = true;
                break;

            case LinkVisualOptionsE.NodesAndFlatLinks:
                this.nodesvisible = true;
                this.linksvisible = true;
                this.flatlinks    = true;
                break;

            case LinkVisualOptionsE.Nodes:
                this.nodesvisible = true;
                break;

            case LinkVisualOptionsE.Links:
                this.linksvisible = true;
                break;

            case LinkVisualOptionsE.FlatLinks:
                this.linksvisible = true;
                this.flatlinks    = true;
                break;

            case LinkVisualOptionsE.None:
                break;
            }
            if (sman != null)
            {
                sman.RequestRefresh("LinkCloudMan-SetLinkAndNodeVisibility");
            }
        }
Example #6
0
    private void UpdateMapHeight()
    {
        var callsettextvalues = false;

        if (oldMapHeight != mapHeight.value)
        {
            Debug.Log("Map height changed to " + mapHeight.value);
            var diffv = new Vector3(0, mapHeight.value - oldMapHeight, 0);
            sman.CorrectPositionDiff(diffv);
            oldMapHeight      = mapHeight.value;
            callsettextvalues = true;
        }
        if (oldMapRotate != mapRotate.value)
        {
            Debug.Log("Map rotation changed to " + mapRotate.value);
            var diff = mapRotate.value - oldMapRotate;
            sman.CorrectAngle(diff);
            oldMapRotate      = mapRotate.value;
            callsettextvalues = true;
        }
        if (oldMapXval != mapXval.value)
        {
            Debug.Log("Map Xval changed to " + mapXval.value);
            var diffv = new Vector3(mapXval.value - oldMapXval, 0, 0);
            sman.CorrectPositionDiff(diffv);
            oldMapXval        = mapXval.value;
            callsettextvalues = true;
        }
        if (oldMapZval != mapZval.value)
        {
            Debug.Log("Map Zval changed to " + mapZval.value);
            var diffv = new Vector3(0, 0, mapZval.value - oldMapZval);
            sman.CorrectPositionDiff(diffv);
            oldMapZval        = mapZval.value;
            callsettextvalues = true;
        }
        if (callsettextvalues)
        {
            SetTextValues();
            sman.RequestRefresh("MapFitPanel-updateMapHeight");
            SetTextValues();
        }
    }
Example #7
0
 void ResizeNodesAndLinks()
 {
     if (largeNodes)
     {
         sm.linknodescale *= 2;
     }
     else
     {
         sm.linknodescale /= 2;
     }
     sm.RequestRefresh("LinkEdit.Update");
 }
Example #8
0
    public void SetVals()
    {
        Debug.Log("B19Panel SetVals called");
        //fman.visibilityTiedToDetectability = visTiedToggle.isOn;
        b19comp.loadmodel.SetAndSave(b19_model.isOn);
        b19comp.level01.SetAndSave(b19_level1.isOn);
        b19comp.level02.SetAndSave(b19_level2.isOn);
        b19comp.level03.SetAndSave(b19_level3.isOn);
        b19comp.hvac.SetAndSave(b19_hvac.isOn);
        b19comp.floors.SetAndSave(b19_floors.isOn);
        b19comp.doors.SetAndSave(b19_doors.isOn);
        {
            var opts   = b19comp.b19_materialMode.GetOptionsAsList();
            var newval = opts[b19_matmode.value];
            //Debug.Log("Set toptextlabel default to " + newval);
            b19comp.b19_materialMode.SetAndSave(newval);
        }

        panelActive = false;
        sman.RequestRefresh("B19Panel-SetVals");
    }
Example #9
0
 static void RefreshGos()
 {
     sman.RequestRefresh("SceneSetupMan-RefreshGos");
 }