mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Created folder Graphics/UI, renamed some UI graphics
This commit is contained in:
@@ -86,6 +86,10 @@ module RPG
|
||||
self.load_bitmap("Graphics/Transitions/", filename)
|
||||
end
|
||||
|
||||
def self.ui(filename)
|
||||
self.load_bitmap("Graphics/UI/", filename)
|
||||
end
|
||||
|
||||
def self.retain(folder_name, filename = "", hue = 0)
|
||||
path = folder_name + filename
|
||||
ret = fromCache(path)
|
||||
|
||||
@@ -717,12 +717,12 @@ end
|
||||
#===============================================================================
|
||||
# Adds a background to the sprite hash.
|
||||
# _planename_ is the hash key of the background.
|
||||
# _background_ is a filename within the Graphics/Pictures/ folder and can be
|
||||
# _background_ is a filename within the Graphics/UI/ folder and can be
|
||||
# an animated image.
|
||||
# _viewport_ is a viewport to place the background in.
|
||||
def addBackgroundPlane(sprites, planename, background, viewport = nil)
|
||||
sprites[planename] = AnimatedPlane.new(viewport)
|
||||
bitmapName = pbResolveBitmap("Graphics/Pictures/#{background}")
|
||||
bitmapName = pbResolveBitmap("Graphics/UI/#{background}")
|
||||
if bitmapName.nil?
|
||||
# Plane should exist in any case
|
||||
sprites[planename].bitmap = nil
|
||||
@@ -739,12 +739,12 @@ end
|
||||
|
||||
# Adds a background to the sprite hash.
|
||||
# _planename_ is the hash key of the background.
|
||||
# _background_ is a filename within the Graphics/Pictures/ folder and can be
|
||||
# _background_ is a filename within the Graphics/UI/ folder and can be
|
||||
# an animated image.
|
||||
# _color_ is the color to use if the background can't be found.
|
||||
# _viewport_ is a viewport to place the background in.
|
||||
def addBackgroundOrColoredPlane(sprites, planename, background, color, viewport = nil)
|
||||
bitmapName = pbResolveBitmap("Graphics/Pictures/#{background}")
|
||||
bitmapName = pbResolveBitmap("Graphics/UI/#{background}")
|
||||
if bitmapName.nil?
|
||||
# Plane should exist in any case
|
||||
sprites[planename] = ColoredPlane.new(color, viewport)
|
||||
|
||||
@@ -417,7 +417,7 @@ class Window_AdvancedTextPokemon < SpriteWindow_Base
|
||||
|
||||
def allocPause
|
||||
return if @pausesprite
|
||||
@pausesprite = AnimatedSprite.create("Graphics/Pictures/pause", 4, 3)
|
||||
@pausesprite = AnimatedSprite.create("Graphics/UI/pause_arrow", 4, 3)
|
||||
@pausesprite.z = 100000
|
||||
@pausesprite.visible = false
|
||||
end
|
||||
@@ -958,10 +958,10 @@ end
|
||||
#===============================================================================
|
||||
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.retain("Graphics/Pictures/uparrow")
|
||||
RPG::Cache.retain("Graphics/Pictures/downarrow")
|
||||
@uparrow = AnimatedSprite.create("Graphics/UI/up_arrow", 8, 2, self.viewport)
|
||||
@downarrow = AnimatedSprite.create("Graphics/UI/down_arrow", 8, 2, self.viewport)
|
||||
RPG::Cache.retain("Graphics/UI/up_arrow")
|
||||
RPG::Cache.retain("Graphics/UI/down_arrow")
|
||||
@uparrow.z = 99998
|
||||
@downarrow.z = 99998
|
||||
@uparrow.visible = false
|
||||
@@ -1043,11 +1043,11 @@ class Window_DrawableCommand < SpriteWindow_SelectableEx
|
||||
super(x, y, width, height)
|
||||
self.viewport = viewport if viewport
|
||||
if isDarkWindowskin(self.windowskin)
|
||||
@selarrow = AnimatedBitmap.new("Graphics/Pictures/selarrow_white")
|
||||
RPG::Cache.retain("Graphics/Pictures/selarrow_white")
|
||||
@selarrow = AnimatedBitmap.new("Graphics/UI/sel_arrow_white")
|
||||
RPG::Cache.retain("Graphics/UI/sel_arrow_white")
|
||||
else
|
||||
@selarrow = AnimatedBitmap.new("Graphics/Pictures/selarrow")
|
||||
RPG::Cache.retain("Graphics/Pictures/selarrow")
|
||||
@selarrow = AnimatedBitmap.new("Graphics/UI/sel_arrow")
|
||||
RPG::Cache.retain("Graphics/UI/sel_arrow")
|
||||
end
|
||||
@index = 0
|
||||
colors = getDefaultTextColors(self.windowskin)
|
||||
|
||||
Reference in New Issue
Block a user