#=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Birthsign Page
#=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
def drawBirthsignPage(pokemon)
overlay=@sprites["overlay"].bitmap
overlay.clear
@sprites["background"].setBitmap("Graphics/Pictures/Birthsigns/summaryzodiac")
imagepos=[]
if USENEWBIRTHSIGNS
zodiacimage=sprintf("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign%02d",zodiacValue(@pokemon.timeEggHatched.mon))
elsif !USENEWBIRTHSIGNS
zodiacimage=sprintf("Graphics/Pictures/Birthsigns/birthsign%02d",zodiacValue(@pokemon.timeEggHatched.mon))
end
imagepos.push([zodiacimage,0,0,0,0,-1,-1])
imagepos.push(["Graphics/Pictures/Birthsigns/summaryzboarder",0,0,0,0,-1,-1])
if USENEWBIRTHSIGNS
zodiactoken=sprintf("Graphics/Pictures/Birthsigns/Birthsigns2/token%02d",zodiacValue(@pokemon.timeEggHatched.mon))
elsif !USENEWBIRTHSIGNS
zodiactoken=sprintf("Graphics/Pictures/Birthsigns/token%02d",zodiacValue(@pokemon.timeEggHatched.mon))
end
imagepos.push([zodiactoken,4,122,0,0,-1,-1])
pbDrawImagePositions(overlay,imagepos)
[email protected]
zodiac=pbGetZodiacName(zodiacValue(@pokemon.timeEggHatched.mon)) if !USENEWBIRTHSIGNS
newzodiac=pbGetNewZodiacName(zodiacValue(@pokemon.timeEggHatched.mon)) if USENEWBIRTHSIGNS
zodiacdesc=pbGetZodiacDesc(zodiacValue(@pokemon.timeEggHatched.mon)) if !USENEWBIRTHSIGNS
newzodiacdesc=pbGetNewZodiacDesc(zodiacValue(@pokemon.timeEggHatched.mon)) if USENEWBIRTHSIGNS
base=Color.new(248,248,248)
shadow=Color.new(104,104,104)
pbSetSystemFont(overlay)
textpos=[
[_INTL("BIRTHSIGN"),26,16,0,base,shadow],
[_INTL("{1}'s Birthsign",pokename),8,62,0,base,shadow],
if USENEWBIRTHSIGNS
[newzodiac,42,90,0,Color.new(64,64,64),Color.new(176,176,176)]
elsif !USENEWBIRTHSIGNS
[zodiac,42,90,0,Color.new(64,64,64),Color.new(176,176,176)]
end
]
if pokemon.obtainMode==1
if pokemon.timeEggHatched
month=pbGetAbbrevMonthName(pokemon.timeEggHatched.mon)
date=pokemon.timeEggHatched.day
year=pokemon.timeEggHatched.year
textpos.push([_INTL("Birthday: {1} {2}, {3}\n",month,date,year),4,320,0,base,shadow])
end
end
#If you changed the range of dates for any of the Birthsigns in PField_Time, then you need to
#change the text in the section below to match your new date ranges.
#
#If you changed the names for any of the Birthsigns in PField_Time, then you need to change
#the text in the section below to match your new names. Changes must also be made in
#PScreen_Party, and PScreen_EggHatching.
if pokemon.birthsign==_INTL("'The Apprentice'") || pokemon.birthsign==_INTL("'The Phoenix'")
textpos.push([_INTL("Sign: Jan. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Companion'") || pokemon.birthsign==_INTL("'The Scholar'")
textpos.push([_INTL("Sign: Feb. 1st - 28th"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Beacon'") || pokemon.birthsign==_INTL("'The Fugitive'")
textpos.push([_INTL("Sign: Mar. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Savage'") || pokemon.birthsign==_INTL("'The Aristocrat'")
textpos.push([_INTL("Sign: Apr. 1st - 30th"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Prodigy'") || pokemon.birthsign==_INTL("'The Cleric'")
textpos.push([_INTL("Sign: May. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Martyr'") || pokemon.birthsign==_INTL("'The Monk'")
textpos.push([_INTL("Sign: Jun. 1st - 30th"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Maiden'") || pokemon.birthsign==_INTL("'The Ancestor'")
textpos.push([_INTL("Sign: Jul. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Gladiator'") || pokemon.birthsign==_INTL("'The Specialist'")
textpos.push([_INTL("Sign: Aug. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Voyager'") || pokemon.birthsign==_INTL("'The Assassin'")
textpos.push([_INTL("Sign: Sep. 1st - 30th"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Thief'") || pokemon.birthsign==_INTL("'The Parent'")
textpos.push([_INTL("Sign: Oct. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Glutton'") || pokemon.birthsign==_INTL("'The Hunter'")
textpos.push([_INTL("Sign: Nov. 1st - 30th"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
elsif pokemon.birthsign==_INTL("'The Wishmaker'") || pokemon.birthsign==_INTL("'The Eternal'")
textpos.push([_INTL("Sign: Dec. 1st - 31st"),4,352,0,Color.new(64,64,64),Color.new(176,176,176)])
end
pbDrawTextPositions(overlay,textpos)
pbSetSmallFont(overlay)
#If you changed the description text for any of the Birthsigns in PField_Time,
#then you can adjust the positioning of the text in the following line.
if USENEWBIRTHSIGNS
drawTextEx(overlay,260,320,258,0,newzodiacdesc,base,shadow)
end
if !USENEWBIRTHSIGNS
drawTextEx(overlay,260,320,258,0,zodiacdesc,base,shadow)
end
[COLOR=Red]loop do
Input.update
Graphics.update
if Input.trigger?(Input::B)
Input.update
break
end
end[/COLOR]
end
#===============================================================================