Example #1
0
        public static XElement SaveMisc()
        {
            var xml = new XElement("Misc",
                                   new XElement("Background", background),
                                   new XElement("Version", SceneCapture.GetPluginVersion()));

            return(xml);
        }
        ///-------------------------------------------------------------------------
        /// <summary>初期化</summary>
        ///-------------------------------------------------------------------------
        private void Initialize()
        {
            try
            {
                int fontSize;
                if (Screen.width < 1366)
                {
                    fontSize = 10;
                }
                else
                {
                    fontSize = 11;
                }

                float windowWidth = Screen.width / 4 - ControlBase.FixedMargin * 2;

                new Instances();

                // モード選択画面
                this.modeSelectView       = new ModeSelectWindow(fontSize);
                this.modeSelectView.Text  = String.Format("{0} ver.{1}", SceneCapture.GetPluginName(), SceneCapture.GetPluginVersion());
                this.modeSelectView.Left  = Screen.width - windowWidth - ControlBase.FixedMargin;
                this.modeSelectView.Top   = ControlBase.FixedMargin * 15;
                this.modeSelectView.Width = windowWidth;

                // メイド設定画面
                this.effectView = new EffectWindow(fontSize);

                // 環境設定画面
                this.envView = new EnvWindow(fontSize);

                this.dataView = new DataWindow(fontSize);
            }
            catch (Exception e)
            {
                Debug.LogError(e.ToString());
            }
        }