• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

New pokemon bag. minor problem

  • 70
    Posts
    19
    Years
    I changed the bag screen to fit the new resolution of my game. It works good, except one thing:

    When you open the bagscreen it looks as following:
    [PokeCommunity.com] New pokemon bag. minor problem


    But when you scroll the itemlist, it looks so:
    [PokeCommunity.com] New pokemon bag. minor problem


    The list begins over the white field and I don't know what part of the script I must change.

    I changed the line 372 in PokemonBag:

    Code:
        @sprites["itemwindow"]=Window_PokemonBag.new(@bag,lastpocket,218,-8,364,30+32+ITEMSVISIBLE*32)

    When i change the -8 to a higher number (e.g 14) than the total list goes lower. That would fix my problem, but than the top of the list would be too low.

    Does anyone have a suggestion/ a solution? Thanks.

    Edit: An another question: How can I change the x-position of the begSel.png?
     
    Last edited:
    Sorry for digging this thread up. I was able to solve my begSel.png-problem, but the problem with the list is still current. Which part of the script should I change to fit the itemlist with the white field?
     
    You have to change
    Code:
    40+32+ITEMSVISIBLE*32
    at line 372.. that's the window height.
    You can also change the ITEMVISIBLE value (to put less items per page) at line 350.
     
    I've already changed the ITEMSVISIBLE to 9, because I'm thinking that would it would be match. If I'm changing any value of this line, the complete list is moving, I think that's not the best solution.
     
    Try changing the @sprites["itemwindow"].y, moving down the sprite.
    Code:
    @sprites["itemwindow"]=Window_PokemonBag.new(@bag,lastpocket,168,[B][COLOR="Red"]-8[/COLOR][/B],314,40+32+ITEMSVISIBLE*32)
     
    Im not sure but you need to change in class Window_PokemonBag < Window_DrawableCommand
    in area

    return Rect.new(rect.x+16,rect.y-18,rect.width-16,rect.height)
    The rect height
    Code:
      def drawCursor(index,rect)
        if self.index==index
          pbCopyBitmap(self.contents,@selarrow.bitmap,rect.x,rect.y+14)
        end
        return Rect.new(rect.x+16,rect.y-18,rect.width-16,rect.height)
      end
     
    Nothing of both suggestions is working. Changing the rect.height value doesn't change anything and the y-value of itemwindow changed the entire itemscreen.
     
    Back
    Top