mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 16:54:56 +02:00
Fixed menus not displaying. Still getting OpenTK issues.
This commit is contained in:
parent
2c4032ea5c
commit
498c0b29ee
@ -150,7 +150,7 @@ Public Class NewInventoryScreen
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Overrides Sub Draw()
|
Public Overrides Sub Draw()
|
||||||
PreScreen.Draw()
|
'PreScreen.Draw()
|
||||||
|
|
||||||
DrawGradients(CInt(255 * _interfaceFade))
|
DrawGradients(CInt(255 * _interfaceFade))
|
||||||
|
|
||||||
@ -246,7 +246,9 @@ Public Class NewInventoryScreen
|
|||||||
|
|
||||||
If CInt(_enrollY) - 32 > 0 Then 'Only draw, when the size is at least 1 pixel high.
|
If CInt(_enrollY) - 32 > 0 Then 'Only draw, when the size is at least 1 pixel high.
|
||||||
|
|
||||||
Dim target As New RenderTarget2D(GraphicsDevice, 816, CInt(_enrollY) - 32, False, GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents)
|
'Bring back when Monogame begins supporting this stuff
|
||||||
|
' Dim target As New RenderTarget2D(GraphicsDevice, 816, CInt(_enrollY) - 32, False, GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents)
|
||||||
|
Dim target As New RenderTarget2D(GraphicsDevice, 816, CInt(_enrollY) - 32, False, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.PreserveContents)
|
||||||
GraphicsDevice.SetRenderTarget(target)
|
GraphicsDevice.SetRenderTarget(target)
|
||||||
GraphicsDevice.Clear(Color.Transparent)
|
GraphicsDevice.Clear(Color.Transparent)
|
||||||
|
|
||||||
@ -315,7 +317,10 @@ Public Class NewInventoryScreen
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Private Sub DrawInfo(ByVal preBatch As SpriteBatch, ByVal preTarget As RenderTarget2D)
|
Private Sub DrawInfo(ByVal preBatch As SpriteBatch, ByVal preTarget As RenderTarget2D)
|
||||||
'Create a new render target and set it.
|
'Create a new render target and set it.
|
||||||
Dim target As New RenderTarget2D(GraphicsDevice, _infoSize, 368, False, GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents)
|
|
||||||
|
'Bring back when Monogame begins supporting this stuff
|
||||||
|
' Dim target As New RenderTarget2D(GraphicsDevice, _infoSize, 368, False, GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents)
|
||||||
|
Dim target As New RenderTarget2D(GraphicsDevice, _infoSize, 368, False, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.DiscardContents)
|
||||||
GraphicsDevice.SetRenderTarget(target)
|
GraphicsDevice.SetRenderTarget(target)
|
||||||
|
|
||||||
'Render background:
|
'Render background:
|
||||||
@ -475,7 +480,7 @@ Public Class NewInventoryScreen
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If _interfaceFade < 1.0F Then
|
If _interfaceFade < 1.0F Then
|
||||||
_interfaceFade = MathHelper.Lerp(1, _interfaceFade, 0.95F)
|
_interfaceFade = MathHelper.Lerp(1.0F, _interfaceFade, 0.95F)
|
||||||
If _interfaceFade > 1.0F Then
|
If _interfaceFade > 1.0F Then
|
||||||
_interfaceFade = 1.0F
|
_interfaceFade = 1.0F
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user