04-13-2010, 01:27 AM
There is an automatic 16 px padding between the window borders and the contents. If you want that the contents of the window be over these 16 px of padding, you can use a Sprite for that.
For example, if you want only 8 px padding, you can do something like:
So, this new sprite should replace your window.contents bitmap.
For example, if you want only 8 px padding, you can do something like:
Code:
window = Window_Base.new(0, 0, 128, 128)
sprite_contents = Sprite.new
sprite_contents.bitmap = Bitmap.new(window.width- 16, window.height - 16)
sprite_contents.x = window.x + 8
sprite_contents.y = window.y + 8