2022-11-01 08:27:02 +00:00
|
|
|
|
Imports System.IO
|
|
|
|
|
|
2022-11-02 01:52:31 +00:00
|
|
|
|
Public Class ShiftOSMenu
|
2022-11-01 08:27:02 +00:00
|
|
|
|
|
|
|
|
|
Public Shared ActualBuildLab As String
|
|
|
|
|
Public Shared BuildLab() As String
|
|
|
|
|
|
|
|
|
|
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
|
|
|
|
Try
|
2022-11-02 01:52:31 +00:00
|
|
|
|
If File.Exists("D:\ShiftOSBuildLab.txt") Then
|
|
|
|
|
BuildLab = File.ReadAllLines("D:\ShiftOSBuildLab.txt")
|
|
|
|
|
If BuildLab(0) = "No" Then
|
|
|
|
|
Dim BuildNum As Integer = BuildLab(1)
|
|
|
|
|
BuildNum = BuildLab(1) + 1
|
|
|
|
|
ActualBuildLab = "ShiftOS_TheRevival." & BuildLab(3) & "." & BuildNum & "." & Date.Today.Year & Date.Today.Month & Date.Today.Day
|
|
|
|
|
BuildLab(1) = BuildNum
|
|
|
|
|
File.WriteAllLines("D:\ShiftOSBuildLab.txt", BuildLab)
|
|
|
|
|
End If
|
|
|
|
|
lbl_BuildString.Text = ActualBuildLab
|
|
|
|
|
Else
|
|
|
|
|
|
2022-11-01 08:27:02 +00:00
|
|
|
|
End If
|
|
|
|
|
Catch ex As Exception
|
|
|
|
|
MsgBox("Why? Because of " & ex.Message)
|
|
|
|
|
End Try
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Private Sub btn_Exit_Click(sender As Object, e As EventArgs) Handles btn_Exit.Click
|
|
|
|
|
Close()
|
|
|
|
|
End Sub
|
2022-11-01 12:48:52 +00:00
|
|
|
|
|
|
|
|
|
Private Sub btn_FreeRoam_Click(sender As Object, e As EventArgs) Handles btn_FreeRoam.Click
|
2022-11-02 04:17:14 +00:00
|
|
|
|
Select Case btn_FreeRoam.Text
|
|
|
|
|
Case "Free Roam Mode"
|
|
|
|
|
Try
|
|
|
|
|
Strings.IsFree = True
|
|
|
|
|
Terminal.Show()
|
|
|
|
|
Close()
|
|
|
|
|
Catch ex As Exception
|
|
|
|
|
Dim NewBugSlap As New BugSlap
|
|
|
|
|
NewBugSlap.Show()
|
|
|
|
|
NewBugSlap.TextBox1.Text = ex.Message
|
|
|
|
|
Close()
|
|
|
|
|
End Try
|
|
|
|
|
Case "Continue"
|
|
|
|
|
MsgBox("This feature is in development")
|
|
|
|
|
End Select
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Private Sub btn_StoryMode_Click(sender As Object, e As EventArgs) Handles btn_StoryMode.Click
|
|
|
|
|
Select Case btn_StoryMode.Text
|
|
|
|
|
Case "Story Mode"
|
|
|
|
|
btn_StoryMode.Text = "New Game"
|
|
|
|
|
btn_FreeRoam.Text = "Continue"
|
|
|
|
|
btn_Aboot.Text = "Back"
|
|
|
|
|
btn_Exit.Visible = False
|
|
|
|
|
Case "New Game"
|
|
|
|
|
MsgBox("This feature is in development")
|
|
|
|
|
End Select
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
Private Sub btn_Aboot_Click(sender As Object, e As EventArgs) Handles btn_Aboot.Click
|
|
|
|
|
Select Case btn_Aboot.Text
|
|
|
|
|
Case "Back"
|
|
|
|
|
btn_StoryMode.Text = "Story Mode"
|
|
|
|
|
btn_FreeRoam.Text = "Free Roam Mode"
|
|
|
|
|
btn_Aboot.Text = "About"
|
|
|
|
|
btn_Exit.Visible = True
|
|
|
|
|
End Select
|
2022-11-01 12:48:52 +00:00
|
|
|
|
End Sub
|
2022-11-01 08:27:02 +00:00
|
|
|
|
End Class
|