- 48
- Posts
- 5
- Years
- Seen Oct 17, 2023
I am trying to make a page in sumary to read only the descriptions of movements and movements when pressing C.
The moveid does not matter that it does not let me put it in any way, it occurred to me to copy other summary sections but nothing.
Can anyone come up with a solution?
The moveid does not matter that it does not let me put it in any way, it occurred to me to copy other summary sections but nothing.
Can anyone come up with a solution?
Spoiler:
# Move info
def drawInfoMove(pokemon)
@sprites["background"].setBitmap("Graphics/Pictures/Summary/bg_movedetail")
@sprites["pokemon"].visible = true
overlay2=@sprites["overlay2"].bitmap
base=Color.new(0,0,0)
shadow=Color.new(255,255,255,0)
pbSetSystemFont(overlay2)
# Get data for selected move
movedata = PBMoveData.new(moveid)
move = moveid
textpos = []
# Draw all text
pbDrawTextPositions(overlay2,textpos)
# Draw selected move's damage category icon
imagepos = [["Graphics/Pictures/category",256,32,0,category*16,48,16]]
pbDrawImagePositions(overlay,imagepos)
# Draw selected move's description
drawTextEx(overlay,0,0,150,6,
pbGetMessage(MessageTypes::MoveDescriptions,moveid),base,shadow)
loop do
Input.update
Graphics.update
if Input.trigger?(Input::B)
Input.update
drawPageTwo
break
elsif Input.trigger?(Input::C)
Input.update
drawPageTwo
break
end
pbUpdate
end
end
def drawInfoMove(pokemon)
@sprites["background"].setBitmap("Graphics/Pictures/Summary/bg_movedetail")
@sprites["pokemon"].visible = true
overlay2=@sprites["overlay2"].bitmap
base=Color.new(0,0,0)
shadow=Color.new(255,255,255,0)
pbSetSystemFont(overlay2)
# Get data for selected move
movedata = PBMoveData.new(moveid)
move = moveid
textpos = []
# Draw all text
pbDrawTextPositions(overlay2,textpos)
# Draw selected move's damage category icon
imagepos = [["Graphics/Pictures/category",256,32,0,category*16,48,16]]
pbDrawImagePositions(overlay,imagepos)
# Draw selected move's description
drawTextEx(overlay,0,0,150,6,
pbGetMessage(MessageTypes::MoveDescriptions,moveid),base,shadow)
loop do
Input.update
Graphics.update
if Input.trigger?(Input::B)
Input.update
drawPageTwo
break
elsif Input.trigger?(Input::C)
Input.update
drawPageTwo
break
end
pbUpdate
end
end
Last edited: