private void TimedLine() { ConsoleAccess.Lock(); if (CurrentLine.ConsolePos == null) { CurrentLine.ConsolePos = new int[2] { Console.CursorLeft, Console.CursorTop } } ; if (CurrentLineTimer >= CurrentLine.Speed) { if (CurrentLine.Line[CurrentLine.LineIndex] != '$') { ConsoleAccess.Write(CurrentLine.Line[CurrentLine.LineIndex]); CurrentLine.LineIndex++; CurrentLine.RealCharLineIndex++; CurrentLineTimer -= CurrentLine.Speed; } else if (CurrentLine.SpecialColor == false) { LineQueueProcessColor(); } else { LineQueueRestoreColor(); } } ConsoleAccess.Unlock(); }
private void SameLineDot() { ConsoleAccess.Lock(); var OrigConsolePos = new int[2] { Console.CursorLeft, Console.CursorTop }; ConsoleAccess.ForegroundColor = PreviousLine.LastCharForeground; ConsoleAccess.BackgroundColor = PreviousLine.LastCharBackground; if (PreviousLine.DotCount < 3) { ConsoleAccess.SetCursorPosition( PreviousLine.ConsolePos[0] + PreviousLine.RealCharLineIndex + PreviousLine.DotCount, PreviousLine.ConsolePos[1]); PreviousLine.DotCount++; ConsoleAccess.Write("."); } else { ConsoleAccess.SetCursorPosition( PreviousLine.ConsolePos[0] + PreviousLine.RealCharLineIndex, PreviousLine.ConsolePos[1]); ConsoleAccess.Write(". "); PreviousLine.DotCount = 1; } ConsoleAccess.ResetColor(); ConsoleAccess.ConsolePosition = OrigConsolePos; CurrentLine = PreviousLine; LineQueueEndOfSameLine(); ConsoleAccess.Unlock(); FinishedTyping(); }
private void LineQueueEndOfLine() { LineQueueEndOfSameLine(); ConsoleAccess.Write("\n"); }