Developing Chapter 2 stuff now

This commit is contained in:
EverythingWindows 2022-11-24 08:18:00 +07:00
parent 537ba4982e
commit a594d38810
6 changed files with 36 additions and 9 deletions

View file

@ -29,6 +29,9 @@ Module TerminalAPI
StayAtChapter = False StayAtChapter = False
InitializeTerminal() InitializeTerminal()
Else Else
If Strings.AvailableFeature(35) = 0 Then
MsgBox("Fuck you!")
End If
Terminal_CheckFeature() Terminal_CheckFeature()
Terminal_PrintPrompt() Terminal_PrintPrompt()
Terminal_AssignPrompt() Terminal_AssignPrompt()

View file

@ -91,6 +91,7 @@
'Chapter 2 for ShiftOS 'Chapter 2 for ShiftOS
'35 = Dual Window Manager [Simple Window Manager for ShiftOS] (default : 0) '35 = Dual Window Manager [Simple Window Manager for ShiftOS] (default : 0)
'36 = Shifter [Customization program for ShiftOS, DuWM version] (default : 0) '36 = Shifter [Customization program for ShiftOS, DuWM version] (default : 0)
'37 = Knowledge Input [Guess how much things as many as you can] (default : 0)
' '
'Features bought hierarchy : 'Features bought hierarchy :
' '

View file

@ -138,6 +138,10 @@
'This is for Chapter 2 packages for ShiftOS 'This is for Chapter 2 packages for ShiftOS
If Strings.AvailableFeature(35) = 0 Then If Strings.AvailableFeature(35) = 0 Then
NewLine("(duwm | 200 CP) Dual Window Manager") NewLine("(duwm | 200 CP) Dual Window Manager")
Else
If Strings.AvailableFeature(36) = 0 Then
NewLine("(shifter | 250 CP) Shifter")
End If
End If End If
End Sub End Sub
@ -451,6 +455,17 @@
NewLine(ManHeader(1)) NewLine(ManHeader(1))
NormalCommand() NormalCommand()
End If End If
Case "shifter"
If Strings.AvailableFeature(36) = 0 Then
ManHeader(0) = "Shifter"
ManHeader(1) = "250 CP"
NewLine(ManHeader(0))
NewLine(Nothing)
NewLine("Desktop customization program for ShiftOS")
NewLine(Nothing)
NewLine(ManHeader(1))
NormalCommand()
End If
Case Else Case Else
NormalCommand() NormalCommand()
Console.TextBox1.Text = Console.TextBox1.Text & Environment.NewLine & "Shiftorium: Bad command or not available" Console.TextBox1.Text = Console.TextBox1.Text & Environment.NewLine & "Shiftorium: Bad command or not available"
@ -735,6 +750,7 @@
'Chapter 2 packages 'Chapter 2 packages
Case "duwm" Case "duwm"
Strings.AvailableFeature(35) = "1" Strings.AvailableFeature(35) = "1"
Strings.AvailableFeature(36) = "0"
success = True success = True
End Select End Select
If success = False Then If success = False Then

View file

@ -53,11 +53,13 @@ Module SaveLoadSystem
Strings.AvailableFeature(33) = "2" Strings.AvailableFeature(33) = "2"
'0.2.7 Features '0.2.7 Features
Strings.AvailableFeature(34) = "2" Strings.AvailableFeature(34) = "2"
Strings.AvailableFeature(35) = "2"
Strings.AvailableFeature(36) = "2"
End Sub End Sub
Public Sub FreeRoamMode() Public Sub FreeRoamMode()
IsConsoleParent = True IsConsoleParent = True
'Sets all features to as bought 'Sets all features to as bought or either upgraded, Complete ShiftOS should have been like this
Strings.ComputerInfo(0) = "shiftos" Strings.ComputerInfo(0) = "shiftos"
Strings.ComputerInfo(1) = "user" Strings.ComputerInfo(1) = "user"
Strings.ComputerInfo(2) = "0" Strings.ComputerInfo(2) = "0"
@ -101,6 +103,8 @@ Module SaveLoadSystem
Strings.AvailableFeature(33) = "1" Strings.AvailableFeature(33) = "1"
'0.2.7 Features '0.2.7 Features
Strings.AvailableFeature(34) = "1" Strings.AvailableFeature(34) = "1"
Strings.AvailableFeature(35) = "1"
Strings.AvailableFeature(36) = "1"
End Sub End Sub
Public Sub GodMode() Public Sub GodMode()
@ -147,10 +151,15 @@ Module SaveLoadSystem
Strings.AvailableFeature(33) = "2" Strings.AvailableFeature(33) = "2"
'0.2.7 Features '0.2.7 Features
Strings.AvailableFeature(34) = "2" Strings.AvailableFeature(34) = "2"
Strings.AvailableFeature(35) = "2"
Strings.AvailableFeature(36) = "2"
End Sub End Sub
Public Sub SaveGame() Public Sub SaveGame()
If Strings.OnceInfo(6) = "story" Then If Strings.OnceInfo(6) = "story" Then
If Strings.AvailableFeature(35) = 0 Then
MsgBox("Fuck you!!")
End If
File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\ShiftOS\saved\ComputerInfo.sos", Strings.ComputerInfo) File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\ShiftOS\saved\ComputerInfo.sos", Strings.ComputerInfo)
File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\ShiftOS\saved\AvailableFeature.sos", Strings.AvailableFeature) File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\ShiftOS\saved\AvailableFeature.sos", Strings.AvailableFeature)
End If End If

View file

@ -17,18 +17,14 @@ Module DesktopManager
Public Sub StopG() Public Sub StopG()
IsStartG = False IsStartG = False
'MsgBox("IsConsoleParent should be true!")
IsConsoleParent = True IsConsoleParent = True
''MsgBox("PID 0 0")
'Strings.ProcessID(0) = 0
''MsgBox("PID 1 0")
'Strings.ProcessID(1) = 0
TerminateWindowApps() TerminateWindowApps()
'MsgBox("Hide!")
Cursor.Hide() Cursor.Hide()
If Strings.OnceInfo(6) = "story" Then
SaveGame()
End If
MsgBox("this is not a bug, this is a feature") 'Use this messagebox to hold Console to stay open, because removing this line closes Console all together for some reason MsgBox("this is not a bug, this is a feature") 'Use this messagebox to hold Console to stay open, because removing this line closes Console all together for some reason
Console.Show() Console.Show()
'MsgBox("ADIOS!")
Desktop.Hide() Desktop.Hide()
End Sub End Sub

View file

@ -9,7 +9,9 @@
Case "knowledge_input" Case "knowledge_input"
DuWM_NewProcess(Uni_KnowledgeInput) DuWM_NewProcess(Uni_KnowledgeInput)
Case "shifter" Case "shifter"
If Strings.AvailableFeature(36) = 0 Then
DuWM_NewProcess(DuWM_Shifter) DuWM_NewProcess(DuWM_Shifter)
End If
End Select End Select
End Select End Select
End Sub End Sub