Added <Level.LoadOffsetMaps>

(Bool) Returns if OffsetMaps are being loaded (based on the Offset Map Quality option in the Options Menu).
This commit is contained in:
JappaWakka 2024-08-14 14:10:18 +02:00
parent f5feba5e99
commit e065eb575a
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,12 @@
Return Screen.Level.DayTime
Case "environmenttype"
Return int(Screen.Level.EnvironmentType)
Case "loadoffsetmaps"
If Core.GameOptions.LoadOffsetMaps > 0 Then
ReturnBoolean(True)
Else
ReturnBoolean(False)
End If
End Select
Return DEFAULTNULL

View File

@ -222,6 +222,7 @@ Namespace ScriptVersion2
r(New ScriptCommand("level", "musicloop", "str", "Returns only the name of the current played song, without path and extension.", ",", True))
r(New ScriptCommand("level", "daytime", "int", "Returns the DayTime of the current map.", ",", True))
r(New ScriptCommand("level", "environmenttype", "int", "Returns the EnvironmentType of the current map.", ",", True))
r(New ScriptCommand("level", "LoadOffsetMaps", "bool", "Returns if OffsetMaps are being loaded (based on the Offset Map Quality option in the Options Menu).", ",", True))
End Sub
Private Shared Sub DoEntity()