Permanently cached some graphics (player charsets, windowskins and related graphics)

This commit is contained in:
Maruno17
2021-04-11 15:41:55 +01:00
parent e5a0e3acdd
commit c58164ef97
5 changed files with 27 additions and 3 deletions

View File

@@ -964,6 +964,8 @@ module UpDownArrowMixin
def initUpDownArrow
@uparrow = AnimatedSprite.create("Graphics/Pictures/uparrow",8,2,self.viewport)
@downarrow = AnimatedSprite.create("Graphics/Pictures/downarrow",8,2,self.viewport)
RPG::Cache.addRef("Graphics/Pictures/uparrow")
RPG::Cache.addRef("Graphics/Pictures/downarrow")
@uparrow.z = 99998
@downarrow.z = 99998
@uparrow.visible = false
@@ -1046,8 +1048,10 @@ class Window_DrawableCommand < SpriteWindow_SelectableEx
self.viewport = viewport if viewport
if isDarkWindowskin(self.windowskin)
@selarrow = AnimatedBitmap.new("Graphics/Pictures/selarrow_white")
RPG::Cache.addRef("Graphics/Pictures/selarrow_white")
else
@selarrow = AnimatedBitmap.new("Graphics/Pictures/selarrow")
RPG::Cache.addRef("Graphics/Pictures/selarrow")
end
@index = 0
colors = getDefaultTextColors(self.windowskin)