예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (ApplicationDeployment.IsNetworkDeployed)
            {
                version = ApplicationDeployment.CurrentDeployment.CurrentVersion;
            }

            userActivityHook        = new UserActivityHook(false, true);
            userActivityHook.KeyUp += new KeyEventHandler(UserActivityHook_KeyUp);
            registerStartKeybind    = false;
            registerStopKeybind     = false;
            startKeystroke          = "F1";
            stopKeystroke           = "F2";

            cyclopsVariant  = new ThargoidsVariant("Cyclops", 360, 105);
            basiliskVariant = new ThargoidsVariant("Basilisk", 420, 180);
            medusaVariant   = new ThargoidsVariant("Medusa", 420, 240);
            hydraVariant    = new ThargoidsVariant("Hydra", 480, 320);


            currentVariant = cyclopsVariant;

            overlayForm = new OverlayForm();
            configForm  = new ConfigForm();
            Application.Run(overlayForm);
        }
예제 #2
0
 public static void ChangeVariant(ThargoidsVariant variant)
 {
     currentVariant = variant;
     overlayForm.EnrageTimer_Set(currentVariant.EnrageSeconds);
     overlayForm.ShieldTimer_Set(currentVariant.ShieldSeconds);
 }