mirror of
https://github.com/EverythingWindows/ShiftOS-TheRevival-Old.git
synced 2025-01-22 11:21:47 -05:00
46 lines
1.4 KiB
VB.net
46 lines
1.4 KiB
VB.net
Module ConsoleAPI
|
|
Public StayAtChapter As Boolean = False 'If this set to true, then intro for chapters are mostly going to be in
|
|
|
|
Public Sub Console_Windowed()
|
|
Console.WindowState = FormWindowState.Normal
|
|
End Sub
|
|
|
|
Public Sub Console_Full()
|
|
Console.FormBorderStyle = FormBorderStyle.None
|
|
Console.WindowState = FormWindowState.Maximized
|
|
End Sub
|
|
|
|
Public Sub Console_Interpreters()
|
|
If Console.ShouldChange = True Then
|
|
Console.ChangeInterpreter = True
|
|
Console.ShouldChange = False
|
|
End If
|
|
End Sub
|
|
|
|
Public Sub NewLine(str As String)
|
|
Console.TextBox1.Text = Console.TextBox1.Text & Environment.NewLine & str
|
|
End Sub
|
|
|
|
Public Sub AddLine(str As String)
|
|
Console.TextBox1.Text = Console.TextBox1.Text & str
|
|
End Sub
|
|
|
|
Public Sub ResetLine(str As String)
|
|
Console.TextBox1.Text = str
|
|
End Sub
|
|
|
|
Public Sub Undeveloped()
|
|
NewLine("Oopsie! It's only for newer version")
|
|
End Sub
|
|
|
|
Public Sub TextRebind()
|
|
Console.TextBox1.Select(Console.TextBox1.Text.Length, 0)
|
|
Console.TextBox1.ScrollToCaret()
|
|
End Sub
|
|
|
|
Public Sub TextRebindBehind()
|
|
'Console.TextBox1.Select(Console.TextBox1.Lines.Length - 1, 0)
|
|
Console.TextBox1.Select(Console.TextBox1.Lines.Length - 1, 0)
|
|
Console.TextBox1.ScrollToCaret()
|
|
End Sub
|
|
End Module
|