Esempio n. 1
0
    public void SetVals()
    {
        var chg = false;

        {
            var curregion = SceneMan.GetSceneOptionsString(initialScene.value);
            SceneMan.SetInitialSceneOption(curregion);
        }
        {
            var tropts = bman.treeMode.GetOptionsAsList();
            var newval = tropts[treeOptions.value];
            chg = chg || bman.treeMode.SetAndSave(newval);
        }
        {
            var blopts = bman.bldMode.GetOptionsAsList();
            var newval = blopts[bldOptions.value];
            chg = chg || bman.bldMode.SetAndSave(newval);
        }
        {
            var lvopts = lman.lvisOptions.GetOptionsAsList();
            var newval = lvopts[linkVisuals.value];
            var lchg   = lman.lvisOptions.SetAndSave(newval);
            if (lchg)
            {
                lman.SetLinkAndNodeVisibility(newval);
            }
            chg = chg || lchg;
        }
        {
            var lchg = lman.SetLinkTrans(linkTrans.value);
            if (lchg)
            {
                SetLinkTransText();
            }
            chg = chg || lchg;
        }
        {
            var slopts = gman.slotform.GetOptionsAsList();
            var newval = slopts[slotVisuals.value];
            var lchg   = gman.slotform.SetAndSave(newval);
            if (lchg)
            {
                gman.RealizeSlotForm(newval);
            }
            chg = chg || lchg;
        }
        {
            var mvopts = mman.mapVisiblity.GetOptionsAsList();
            var newval = mvopts[mapVisuals.value];
            var lchg   = mman.mapVisiblity.SetAndSave(newval);
            if (lchg)
            {
                mman.RealizeMapVisuals();
            }
            chg = chg || lchg;
        }
        {
            var bkopts = vman.backType.GetOptionsAsList();
            var newval = bkopts[backVisuals.value];
            var lchg   = vman.backType.SetAndSave(newval);
            if (lchg)
            {
                vman.RealizeBackground();
            }
            chg = chg || lchg;
        }
        {
            var vcopts = vman.GetCameraOptions();
            var newval = vcopts[camSelection.value];
            var lchg   = vman.mainCamName.SetAndSave(newval);
            if (lchg)
            {
                vman.SetMainCameraToVcam(newval);
            }
            chg = chg || lchg;
        }
        {
            var ggopts = lman.graphGenOptions.GetOptionsAsList();
            var newval = ggopts[graphGenMode.value];
            chg = chg || lman.graphGenOptions.SetAndSave(newval);
        }
        panelActive = false;
        if (chg)
        {
            sman.RequestRefresh("VisualPanel-SetVals");
        }
    }