Exemple #1
0
        public ModMenuForm(ModLoaderForm parent, Modder modder, Game g)
        {
            InitializeComponent();

            button1.Text       = ModLoaderText.ModMenu_Button_Confirm;
            button2.Text       = ModLoaderText.ModMenu_Button_SaveAs;
            button3.Text       = ModLoaderText.ModMenu_Button_Load;
            button4.Text       = ModLoaderText.ModMenu_Button_ResetToDefault;
            button5.Text       = ModLoaderText.ModMenu_Button_Publish;
            button_modbit.Text = ModLoaderText.ModMenu_Label_ModBit;
            Text = ModLoaderText.ModMenuTitle;

            mod        = modder;
            Game       = g;
            parentForm = parent;

            //todo: generate Mod Bit

            GenerateUI();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
            ModLoader  ModProgram = new ModLoader(assemblies);

            if (args.Length == 0)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                using (ModLoaderForm ModProgramForm = new ModLoaderForm(ModProgram))
                {
                    Application.Run(ModProgramForm);
                }
            }
            else
            {
                AttachConsole(ATTACH_PARENT_PROCESS);
                ModLoaderCLI.StartCLI(args);
            }
        }