Fix global level

This commit is contained in:
jianmingyong 2017-03-25 02:00:13 +08:00
parent 5fbbf804f6
commit e5f2db323e

View File

@ -1,3 +1,4 @@
Imports net.Pokemon3D.Game
''' <summary>
''' The base class for all screens in the game.
''' </summary>
@ -104,6 +105,7 @@ Public MustInherit Class Screen
''' </summary>
Public Shared Property Camera() As Camera
Private Shared _globalLevel As Level
''' <summary>
''' A global level instance, that carries over screen instances.
''' </summary>
@ -213,13 +215,13 @@ Public MustInherit Class Screen
''' </summary>
''' <param name="scr">The source screen.</param>
Protected Sub CopyFrom(ByVal scr As Screen)
_mouseVisible = scr._mouseVisible
_canBePaused = scr._canBePaused
_canMuteMusic = scr._canMuteMusic
_canChat = scr._canChat
_canTakeScreenshot = scr._canTakeScreenshot
_canDrawDebug = scr._canDrawDebug
_canGoFullscreen = scr._canGoFullscreen
_MouseVisible = scr._MouseVisible
_CanBePaused = scr._CanBePaused
_CanMuteMusic = scr._CanMuteMusic
_CanChat = scr._CanChat
_CanTakeScreenshot = scr._CanTakeScreenshot
_CanDrawDebug = scr._CanDrawDebug
_CanGoFullscreen = scr._CanGoFullscreen
End Sub
''' <summary>
@ -398,7 +400,7 @@ Public MustInherit Class Screen
Dim s As Screen = Me
While s.PreScreen IsNot Nothing And canDrawGradients = True
If s._isOverlay = False Then
If s._IsOverlay = False Then
s = s.PreScreen
If s.IsDrawingGradients = True Then
canDrawGradients = False