using UnityEngine; namespace COM3D2.MeidoPhotoStudio.Plugin { internal class BGWindowPane : BaseMainWindowPane { private BackgroundSelectorPane backgroundSelectorPane; private LightsPane lightsPane; private EffectsPane effectsPane; private DragPointPane dragPointPane; private Button sceneManagerButton; public BGWindowPane( EnvironmentManager environmentManager, LightManager lightManager, EffectManager effectManager, SceneWindow sceneWindow ) { this.sceneManagerButton = new Button(Translation.Get("backgroundWindow", "manageScenesButton")); this.sceneManagerButton.ControlEvent += (s, a) => sceneWindow.Visible = !sceneWindow.Visible; this.backgroundSelectorPane = AddPane(new BackgroundSelectorPane(environmentManager)); this.dragPointPane = AddPane(new DragPointPane()); this.lightsPane = AddPane(new LightsPane(lightManager)); this.effectsPane = AddPane(new EffectsPane() { ["bloom"] = new BloomPane(effectManager), ["dof"] = new DepthOfFieldPane(effectManager), ["vignette"] = new VignettePane(effectManager), ["fog"] = new FogPane(effectManager) }); } protected override void ReloadTranslation() { this.sceneManagerButton.Label = Translation.Get("backgroundWindow", "manageScenesButton"); } public override void Draw() { this.tabsPane.Draw(); this.sceneManagerButton.Draw(); this.backgroundSelectorPane.Draw(); this.dragPointPane.Draw(); this.scrollPos = GUILayout.BeginScrollView(this.scrollPos); this.lightsPane.Draw(); this.effectsPane.Draw(); GUILayout.EndScrollView(); } public override void UpdatePanes() { if (ActiveWindow) { base.UpdatePanes(); } } } }