예제 #1
0
        private void showModSelect(ParadoxTitle game)
        {
            Form modSelect = new frmModSelect(game);

            this.Hide();
            modSelect.ShowDialog();
            this.Show();
        }
        public ModEditorController(ITextEditorView view, ParadoxTitle game, string modDirectory)
            : base(view)
        {
            this.game         = game;
            this.modDirectory = modDirectory.Substring(0, modDirectory.LastIndexOf("\\") + 1);

            gameFilePairs = new Dictionary <ParadoxTitle, Dictionary <string, List <string> > >();
            foreach (ParadoxTitle title in Enum.GetValues(typeof(ParadoxTitle)))
            {
                gameFilePairs.Add(title, new Dictionary <string, List <string> >());
            }

            LoadScriptPairs();
        }
예제 #3
0
        public frmModSelect(ParadoxTitle game)
        {
            InitializeComponent();
            this.game = game;
            switch (game)
            {
            case ParadoxTitle.CrusaderKings:
                this.Text = "Crusader Kings II";
                break;

            case ParadoxTitle.EuropaUniversalis:
                this.Text = "Europa Universalis IV";
                break;

            case ParadoxTitle.HeartsOfIron:
                this.Text = "Hearts of Iron IV";
                break;

            case ParadoxTitle.Stellaris:
                this.Text = "Stellaris";
                break;
            }
            this.Text += " Mod Editor";
        }