mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Fixed a visual bug related to render targets
This commit is contained in:
parent
2eac9b665f
commit
196b817dc8
@ -142,8 +142,8 @@ Public Class NewInventoryScreen
|
|||||||
|
|
||||||
'JSON Stuff
|
'JSON Stuff
|
||||||
'_translation = New Globalization.Classes.LOCAL_InventoryScreen()
|
'_translation = New Globalization.Classes.LOCAL_InventoryScreen()
|
||||||
target_1 = New RenderTarget2D(GraphicsDevice, 816, 400 - 32, False, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.PreserveContents)
|
target_1 = New RenderTarget2D(GraphicsDevice, 816, 400 - 32, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents)
|
||||||
target_2 = New RenderTarget2D(GraphicsDevice, 500, 368)
|
target_2 = New RenderTarget2D(GraphicsDevice, 500, 368, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
itemBatch = New CoreSpriteBatch(GraphicsDevice)
|
itemBatch = New CoreSpriteBatch(GraphicsDevice)
|
||||||
infoBatch = New CoreSpriteBatch(GraphicsDevice)
|
infoBatch = New CoreSpriteBatch(GraphicsDevice)
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ Public Class PressStartScreen
|
|||||||
_shineRenderer = New SpriteBatch(GraphicsDevice)
|
_shineRenderer = New SpriteBatch(GraphicsDevice)
|
||||||
_backgroundRenderer = New SpriteBatch(GraphicsDevice)
|
_backgroundRenderer = New SpriteBatch(GraphicsDevice)
|
||||||
|
|
||||||
target = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height)
|
target = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
|
|
||||||
'crappy fix
|
'crappy fix
|
||||||
Screens.MainMenu.NewNewGameScreen.CharacterSelectionScreen.SelectedSkin = ""
|
Screens.MainMenu.NewNewGameScreen.CharacterSelectionScreen.SelectedSkin = ""
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
IsDrawingGradients = True
|
IsDrawingGradients = True
|
||||||
|
|
||||||
MouseVisible = True
|
MouseVisible = True
|
||||||
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height)
|
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
_texture = TextureManager.GetTexture("GUI\Menus\General")
|
_texture = TextureManager.GetTexture("GUI\Menus\General")
|
||||||
|
|
||||||
ConstructMenu()
|
ConstructMenu()
|
||||||
|
@ -41,8 +41,8 @@
|
|||||||
_backTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Back")
|
_backTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Back")
|
||||||
_paperClipTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Paperclip")
|
_paperClipTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Paperclip")
|
||||||
_papersTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Papers")
|
_papersTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Papers")
|
||||||
target = New RenderTarget2D(GraphicsDevice, _backTexture.Width, _backTexture.Height + _paperClipTexture.Height)
|
target = New RenderTarget2D(GraphicsDevice, _backTexture.Width, _backTexture.Height + _paperClipTexture.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
target2 = New RenderTarget2D(GraphicsDevice, Core.windowSize.Width, Core.windowSize.Height)
|
target2 = New RenderTarget2D(GraphicsDevice, Core.windowSize.Width, Core.windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
|
|
||||||
If Screen.Level.Surfing = True Then
|
If Screen.Level.Surfing = True Then
|
||||||
_charTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.TempSurfSkin)
|
_charTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.TempSurfSkin)
|
||||||
|
@ -87,7 +87,7 @@ Public Class PartyScreen
|
|||||||
|
|
||||||
Public Sub New(ByVal currentScreen As Screen, ByVal Item As Item, ByVal ChoosePokemon As DoStuff, ByVal Title As String, ByVal canExit As Boolean, ByVal canChooseFainted As Boolean, ByVal canChooseEgg As Boolean, Optional ByVal _pokemonList As List(Of Pokemon) = Nothing, Optional ByVal ChooseMode As Boolean = True)
|
Public Sub New(ByVal currentScreen As Screen, ByVal Item As Item, ByVal ChoosePokemon As DoStuff, ByVal Title As String, ByVal canExit As Boolean, ByVal canChooseFainted As Boolean, ByVal canChooseEgg As Boolean, Optional ByVal _pokemonList As List(Of Pokemon) = Nothing, Optional ByVal ChooseMode As Boolean = True)
|
||||||
|
|
||||||
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height)
|
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
|
||||||
_blur = New Resources.GaussianEffect(windowSize.Width, windowSize.Height)
|
_blur = New Resources.GaussianEffect(windowSize.Width, windowSize.Height)
|
||||||
|
|
||||||
Me.Item = Item
|
Me.Item = Item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user