Beispiel #1
0
        public void openCustomLensSetup()
        {
            setCurrentPage(UI_PAGE.LENS);

            TrinusProcessor.getUserSettings().lensParams.selectPreset(TrinusProcessor.LensParams.CUSTOM_PRESET);
            trinusProcessor.applyLensParams();

            updateSlider(getCurrentPageChild("SeparationSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.screenx * 100));
            updateSlider(getCurrentPageChild("WidthSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.scalex * 100));
            updateSlider(getCurrentPageChild("HeightSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.scaley * 100));
            updateSlider(getCurrentPageChild("LensAngleXSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.lensx * 100));
            updateSlider(getCurrentPageChild("WarpXSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.warpx * 100));
            updateSlider(getCurrentPageChild("WarpYSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.warpy * 100));
            updateSlider(getCurrentPageChild("WarpZSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.warpz * 100));
            updateSlider(getCurrentPageChild("ChromaSlider"), (int)(TrinusProcessor.getUserSettings().lensParams.chroma * 100));
        }