Example #1
0
            }                                                   // for some reason Windows Forms need this constructor

            internal MusicMenuItem(BGMManager owner, BGMContribution contrib)
            {
                this.contrib = contrib;
                this.owner   = owner;
                if (contrib == null)
                {
                    this.Text = "Silence";
                }
                //! this.Text = "なし";
                else
                {
                    this.Text = contrib.name;
                }
            }
Example #2
0
        /// <summary>
        /// Initializes the framework.
        /// Should be called once and only once.
        /// </summary>
        /// <param name="additionalPluginDirs">
        /// additional directories from which plug-ins are loaded.
        /// </param>
        /// <param name="owner">application's main window.</param>
        /// <param name="bgmMenuItem">"BGM" sub-menu</param>
        /// <param name="progressHandler">
        /// Receives initializtion progress report. Can be null.
        /// </param>
        public static void init(string[] args, Control owner, MenuItem bgmMenuItem, ProgressHandler progressHandler, bool constructionMode)
        {
            _isConstructionMode = constructionMode;

            if (progressHandler == null)
            {
                progressHandler = new ProgressHandler(silentProgressHandler);
            }

            _soundEffectManager = new SoundEffectManager(owner);

            // load plug-ins
            Core.plugins.init(
                args.Length == 0?getDefaultProfile():parseProfile(args[0]),
                progressHandler, new DefaultPluginErrorHandler(5));

            _bgmManager = new BGMManager(bgmMenuItem);
        }
Example #3
0
            }                                                   // for some reason Windows Forms need this constructor

            internal SelectMenuItem(BGMManager owner)
            {
                this.owner = owner;
                this.Text  = "&Select From File...";
                //! this.Text = "ファイルから選択(&S)...";
            }