mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-24 22:35:47 +02:00
ContentPack fixes
* Fixed ContentPack menu crashing when trying to load more than 5 Content Packs * Fixed Texture Replacements in exceptions.dat being ignored if not the same case * Fixed minor visual bug in the Box screen where smaller textures would be scaled incorrectly
This commit is contained in:
parent
a73bbee55b
commit
9ff6e94a1f
@ -136,7 +136,7 @@ Public Class TextureSource
|
||||
End Function
|
||||
|
||||
Public Function IsEqual(ByVal TextureSource As TextureSource) As Boolean
|
||||
If Me.TexturePath = TextureSource.TexturePath And Me.TextureRectangle = TextureSource.TextureRectangle Then
|
||||
If Me.TexturePath.ToLower() = TextureSource.TexturePath.ToLower() And Me.TextureRectangle = TextureSource.TextureRectangle Then
|
||||
Return True
|
||||
End If
|
||||
|
||||
|
@ -470,14 +470,14 @@
|
||||
|
||||
Private Sub PackEnabledToggle(ByVal c As ToggleButton)
|
||||
If PackNames.Count > 0 Then
|
||||
If EnabledPackNames.Contains(PackNames(packsMenuIndex(0) + packsMenuIndex(2))) Then
|
||||
If EnabledPackNames.Contains(PackNames(packsMenuIndex(0))) Then
|
||||
isSelectedEnabled = False
|
||||
c.Toggled = False
|
||||
ButtonToggle(PackNames(packsMenuIndex(0) + packsMenuIndex(2)))
|
||||
ButtonToggle(PackNames(packsMenuIndex(0)))
|
||||
Else
|
||||
isSelectedEnabled = True
|
||||
c.Toggled = True
|
||||
ButtonToggle(PackNames(packsMenuIndex(0) + packsMenuIndex(2)))
|
||||
ButtonToggle(PackNames(packsMenuIndex(0)))
|
||||
End If
|
||||
Else
|
||||
isSelectedEnabled = False
|
||||
|
@ -1189,7 +1189,7 @@ Public Class StorageSystemScreen
|
||||
c = New Color(65, 65, 65, 255)
|
||||
End If
|
||||
Dim pokeTexture = box.Pokemon(id).GetPokemon().GetMenuTexture()
|
||||
Core.SpriteBatch.Draw(pokeTexture, New Rectangle(50 + x * 100 - CInt(pokeTexture.Width - 32), 200 + y * 84, pokeTexture.Width * 2, 64), c)
|
||||
Core.SpriteBatch.Draw(pokeTexture, New Rectangle(50 + x * 100 - CInt(pokeTexture.Width - 32), 200 + y * 84, pokeTexture.Width * 2, pokeTexture.Height * 2), c)
|
||||
End If
|
||||
Next
|
||||
Else
|
||||
|
Loading…
x
Reference in New Issue
Block a user