コード例 #1
0
        public List <Point> getAlternatePoint(string resolution)
        {
            if (!this.point.ContainsKey(resolution))
            {
                Dbg.saveErrorImageToFile();
            }

            // TODO: Sometimes get 1344x714 at startup
            return(this.point[resolution]);
        }
コード例 #2
0
        public static void onEnteredLobby()
        {
            Log.log("onEnteredLobby");

            Dbg.saveErrorImageToFile();

            if (Actions.actions.ContainsKey(StateManager.State.Lobby_SurvivorOrKiller))
            {
                Actions.actions[StateManager.State.Lobby_SurvivorOrKiller].activate();
            }
        }
コード例 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Log.log("Startup");

            Dbg.saveErrorImageToFile();

            Config.init();

            ScreenParser.initialize();

            Dbg.initialDiagnostics();

            Gfx.initialize();

            initPlaySoundsConfig();

            // Load stats
            StatSaver.load();

            initActions();

            // Load only after creating actions
            Config.load();

            setGuiStateFromConfigSettings();

            recalcStats();

            if (!Dbg.bDebug)
            {
                tab1.TabPages.RemoveAt(2);
            }


            //       Stats.addCurGameResult( new GameResult( PlayerIndex.Survivor1, EndgameSurvivorIcon.KilledSacrificed,
            //EndgameSurvivorIcon.KilledSacrificed, EndgameSurvivorIcon.KilledSacrificed,
            //EndgameSurvivorIcon.KilledSacrificed ) );



            wndPreview = new Preview(this);

            //var i = Image.FromFile(@"C:\temp\DBD\survivor_prelobby.jpg");
            //ScreenCapture.setScreenShot(new Bitmap(i));

            //picBox.Size = new Size(picBox.Width, picBox.Height);
            //picBox.SizeMode = PictureBoxSizeMode.Zoom;
        }