Esempio n. 1
0
        private void AddRoom()
        {
            Range range = tasText.Selection;

            int start = range.Start.iLine;

            tasText.Selection = new Range(tasText, 0, start, 0, start);
            string text = tasText.SelectedText;

            tasText.SelectedText = "# lvl_" + memory.LevelName() + '\n';
            tasText.Selection    = new Range(tasText, 0, start, 0, start);
        }
Esempio n. 2
0
        private void UpdateStatusBar()
        {
            if (memory.IsHooked)
            {
                lblStatus.Text = "(" + (currentFrame > 0 ? currentFrame + "/" : "") + totalFrames + ") " + memory.TASPlayerOutput() + '[' + memory.LevelName() + ']';
            }
            else
            {
                lblStatus.Text = "(" + totalFrames + ")\r\nSearching...";
            }
            string text       = lblStatus.Text;
            int    totalLines = 0;
            int    index      = 0;

            while ((index = text.IndexOf('\n', index) + 1) > 0)
            {
                totalLines++;
            }
            if (text.LastIndexOf('\n') + 1 < text.Length)
            {
                totalLines++;
            }
            totalLines = totalLines * 18;
            totalLines = totalLines < 22 ? 22 : totalLines;
            if (statusBar.Height - totalLines != 0)
            {
                tasText.Height  += statusBar.Height - totalLines;
                statusBar.Height = totalLines;
            }
        }
Esempio n. 3
0
 private void UpdateStatusBar()
 {
     if (memory.IsHooked)
     {
         lblStatus.Text = "(" + (currentFrame > 0 ? currentFrame + "/" : "") + totalFrames + ") " + memory.TASPlayerOutput() + '[' + memory.LevelName() + ']';
     }
     else
     {
         lblStatus.Text = "(" + totalFrames + ")\r\nSearching...";
     }
 }