Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Hi, I was wondering how you fit the menu's status window's width and height around the actors in your party. For example, if two actors are displayed, the window will be half the size and there won't be a blank space.
change the 'height' parameter when the window is created. (in the 'super' statement.)
You can edit the default Window_MenuStatus script, or paste this above main...
Code:
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
## super(0, 0, 480, 480) # replaced to autosize status window
super(0, 0, 480, $game_party.actors.size * 116 + 16)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
end
In the "super" statement (which calls Window_Selectable.initialize) the numbers are:
super( x_position, y_position, width, height )
I modified the height based on the # of actors in the party.
What will you use to calculate the width?
Or do you just want a static width? If so, just change the '480' in the width parameter to the width you want.