Problem with Window Contents shown properly

● ARCHIVED · READ-ONLY
Started by Evgenij 1 posts View original ↗
  1. *edit*

    Haha I solved it, padding_bottom was the method I needed to change.

    Hello,

    I have a problem and my head just cant figure it out atm.

    I have made a Window which inherits from Window_Selectable.

    The window is a square and the size of the window is fitting_height(3) (96).

    My contents have a size of 72.

    Now I get this problem:



    I hope someone can help me, I just cant think clearly to solve this problem.

    Here is the Code of the Window:

    Spoiler
    Code:
    class Window_Test < Window_Selectable    def initialize    super(window_x, window_y, window_width, window_height)    activate    refresh  end    def col_max    return 2  end    def window_x    0  end    def window_y    0  end    def window_width    return fitting_height(3)  end    def window_height    return fitting_height(3)  end    def contents_height    height - standard_padding * 2  end    def item_max    return 4  end    def item_width    return 28  end    def item_height    return 28  end    def spacing    (window_width - 24) - item_height * 2   end  #--------------------------------------------------------------------------  # * Get Rectangle for Drawing Items  #--------------------------------------------------------------------------  def item_rect(index)    rect = super(index)    rect.y = index / col_max * (item_height + spacing)    rect  endend