Пример #1
0
        private void CreatePanels()
        {
            _panelLeft.AddUIComponent <RainProbabilityDayPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <RainProbabilityNightPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <FogProbabilityDayPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <FogProbabilityNightPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <NorthernLightsProbabilityPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);

            _panelCenter.AddUIComponent <MinTemperatureDayPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <MaxTemperatureDayPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <MinTemperatureNightPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <MaxTemperatureNightPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);

            _panelRight.AddUIComponent <MinTemperatureRainPanel>();
            _panelRight.CreateSpace(1.0f, 5.0f);
            _panelRight.AddUIComponent <MaxTemperatureRainPanel>();
            _panelRight.CreateSpace(1.0f, 5.0f);
            _panelRight.AddUIComponent <MinTemperatureFogPanel>();
            _panelRight.CreateSpace(1.0f, 5.0f);
            _panelRight.AddUIComponent <MaxTemperatureFogPanel>();
            _panelRight.CreateSpace(1.0f, 5.0f);
        }
Пример #2
0
 private void CreateLeftSideTexturePanels()
 {
     _panelLeft.AddUIComponent <GrassDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
     _panelLeft.AddUIComponent <RuinedDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
     _panelLeft.AddUIComponent <GravelDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
 }
Пример #3
0
 private void CreateRightSideTexturePanels()
 {
     _panelRight.AddUIComponent <PavementDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
     _panelRight.AddUIComponent <OilDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
     _panelRight.AddUIComponent <OreDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
 }
Пример #4
0
 private void CreateMiddleTexturePanels()
 {
     _panelCenter.AddUIComponent <CliffDiffusePanel>();
     _panelCenter.CreateSpace(1.0f, 5.0f);
     _panelCenter.AddUIComponent <SandDiffusePanel>();
     _panelCenter.CreateSpace(1.0f, 5.0f);
     _panelCenter.AddUIComponent <CliffSandNormalPanel>();
     _panelCenter.CreateSpace(1.0f, 5.0f);
 }
Пример #5
0
 private void CreateRightSideTexturePanels()
 {
     _panelRight.AddUIComponent <BuildingFloorDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
     _panelRight.AddUIComponent <BuildingBurntDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
     _panelRight.AddUIComponent <BuildingAbandonedDiffusePanel>();
     _panelRight.CreateSpace(1.0f, 5.0f);
     _panelRight.AddUIComponent <LightColorPalettePanel>();
 }
Пример #6
0
 private void CreateLeftSideTexturePanels()
 {
     _panelLeft.AddUIComponent <UpwardRoadDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
     _panelLeft.AddUIComponent <DownwardRoadDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
     _panelLeft.AddUIComponent <BuildingBaseDiffusePanel>();
     _panelLeft.CreateSpace(1.0f, 5.0f);
     _panelLeft.AddUIComponent <BuildingBaseNormalPanel>();
 }
Пример #7
0
 private void CreateLoadLutsPanel()
 {
     _loadLutPanel = AddUIComponent <PanelBase>();
     _loadLutPanel.Setup("Select Mix Panel", 350.0f, 0.0f, 5, true, LayoutDirection.Vertical, LayoutStart.TopLeft, "WhiteRect");
     _loadLutPanel.color = UIColorGrey;
     _loadLutPanel.CreateSpace(0.0f, 0.01f);
     CreateLabel(_loadLutPanel, Translation.Instance.GetTranslation(TranslationID.LABEL_SELECTLUT));
     _loadLutPanel.CreateSpace(0.0f, 0.01f);
     CreateDropDown();
     _loadLutPanel.CreateSpace(0.0f, 0.01f);
     RefreshDropdown();
 }
Пример #8
0
 private void CreateColorsPanel()
 {
     _colorsPanel = AddUIComponent <PanelBase>();
     _colorsPanel.Setup("Colors Panel", 360.0f, 0.0f, 0, true, LayoutDirection.Vertical);
     _waterCleanColorPanel = _colorsPanel.AddUIComponent <WaterCleanPanel>();
     _waterCleanColorPanel.EventVisibilityChanged += OnColorPanelVisibilityChanged;
     _space1 = _colorsPanel.CreateSpace(1.0f, 5.0f);
     _waterUnderColorPanel = _colorsPanel.AddUIComponent <WaterUnderPanel>();
     _waterUnderColorPanel.EventVisibilityChanged += OnColorPanelVisibilityChanged;
     _space2 = _colorsPanel.CreateSpace(1.0f, 5.0f);
     _waterDirtyColorPanel = _colorsPanel.AddUIComponent <WaterDirtyPanel>();
     _waterDirtyColorPanel.EventVisibilityChanged += OnColorPanelVisibilityChanged;
     _colorsPanel.CreateSpace(1.0f, 5.0f);
 }
Пример #9
0
        private void CreateSaveMixPanel()
        {
            _saveMixPanel = AddUIComponent <PanelBase>();
            _saveMixPanel.Setup("Save Mix Panel", 350.0f, 0.0f, 5, true, LayoutDirection.Vertical, LayoutStart.TopLeft, "WhiteRect");
            _saveMixPanel.color = UIColorGrey;

            _saveMixPanel.CreateSpace(0.0f, 0.01f);
            CreateLabel(_saveMixPanel, Translation.Instance.GetTranslation(TranslationID.LABEL_SAVEMIX));
            _saveMixPanel.CreateSpace(0.0f, 0.01f);
            CreateTextField();
            _saveMixPanel.CreateSpace(0.0f, 0.01f);
            if (Application.platform == RuntimePlatform.OSXPlayer)
            {
                CreateDisableCompileCheckbox();
                _saveMixPanel.CreateSpace(0.0f, 0.01f);
            }
            CreateSaveButton();
            _saveMixPanel.CreateSpace(0.0f, 5.0f);
        }
Пример #10
0
        private void CreatePanels()
        {
            _panelLeft.AddUIComponent <LongitudePanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <LatitudePanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <SunSizePanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <SunAnisotropyPanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);
            _panelLeft.AddUIComponent <ExposurePanel>();
            _panelLeft.CreateSpace(1.0f, 5.0f);

            _panelCenter.AddUIComponent <RayleighPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <MiePanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <StarsIntensityPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <OuterSpaceIntensityPanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);
            _panelCenter.AddUIComponent <MoonSizePanel>();
            _panelCenter.CreateSpace(1.0f, 5.0f);


            _skyTint = _panelRight.AddUIComponent <SkyTintPanel>();
            _skyTint.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _earlyNightZenithColor           = _panelRight.AddUIComponent <EarlyNightZenithPanel>();
            _earlyNightZenithColor.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _lateNightZenithColor = _panelRight.AddUIComponent <LateNightZenithPanel>();
            _lateNightZenithColor.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _nightHorizonColor = _panelRight.AddUIComponent <NightHorizonPanel>();
            _nightHorizonColor.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _moonInnerCorona = _panelRight.AddUIComponent <MoonInnerCoronaPanel>();
            _moonInnerCorona.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _moonOuterCorona = _panelRight.AddUIComponent <MoonOuterCoronaPanel>();
            _moonOuterCorona.EventVisibilityChanged += OnColorPanelVisibilityChanged;
            _moonTexture = _panelRight.AddUIComponent <MoonTexturePanel>();
        }
Пример #11
0
 private void CreateSelectMixPanel()
 {
     _selectMixPanel = AddUIComponent <PanelBase>();
     _selectMixPanel.Setup("Select Mix Panel", 350.0f, 0.0f, 5, true, LayoutDirection.Vertical, LayoutStart.TopLeft, "WhiteRect");
     _selectMixPanel.color = UIColorGrey;
     _selectMixPanel.CreateSpace(0.0f, 0.01f);
     CreateLabel(_selectMixPanel, Translation.Instance.GetTranslation(TranslationID.LABEL_SELECTMIX));
     _selectMixPanel.CreateSpace(0.0f, 0.01f);
     CreateDropDown();
     _selectMixPanel.CreateSpace(0.0f, 0.01f);
     CreateUseAsDefaultCheckbox();
     _selectMixPanel.CreateSpace(0.0f, 0.01f);
     CreateLoadButton();
     _selectMixPanel.CreateSpace(0.0f, 5.0f);
     CreateSubscribeButton();
     _selectMixPanel.CreateSpace(0.0f, 5.0f);
     RefreshDropdown();
 }