mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Added SKIP_TITLE_SCREEN Setting, added const for type icon size, fixed some battle bugs and inconsistencies
This commit is contained in:
@@ -94,7 +94,7 @@ class TriadCard
|
||||
if type
|
||||
typebitmap = AnimatedBitmap.new(_INTL("Graphics/UI/types"))
|
||||
type_number = GameData::Type.get(type).icon_position
|
||||
typerect = Rect.new(0, type_number * 28, 64, 28)
|
||||
typerect = Rect.new(0, type_number * GameData::Type::ICON_SIZE[1], *GameData::Type::ICON_SIZE)
|
||||
bitmap.blt(8, 50, typebitmap.bitmap, typerect, 192)
|
||||
typebitmap.dispose
|
||||
end
|
||||
@@ -116,7 +116,7 @@ class TriadCard
|
||||
bitmap.blt(0, 0, cardbitmap.bitmap, Rect.new(0, 0, cardbitmap.width, cardbitmap.height))
|
||||
# Draw type icon
|
||||
type_number = GameData::Type.get(@type).icon_position
|
||||
typerect = Rect.new(0, type_number * 28, 64, 28)
|
||||
typerect = Rect.new(0, type_number * GameData::Type::ICON_SIZE[1], *GameData::Type::ICON_SIZE)
|
||||
bitmap.blt(8, 50, typebitmap.bitmap, typerect, 192)
|
||||
# Draw Pokémon icon
|
||||
bitmap.blt(8, 24, iconbitmap.bitmap, Rect.new(0, 0, 64, 64))
|
||||
|
||||
Reference in New Issue
Block a user