mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Permanently cached some graphics (player charsets, windowskins and related graphics)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user