Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Message Window Trouble
#1
This feels like a stupid question for someone who could consider himself a 6 or 7 out of 10 in scripting ability, but it's pissing me off and I need some help.

I'm working on a custom message system, and I'm using a slightly smaller font than the default. The problem I'm having is that the padding around the text in the message window is disproportionately large. How do I reduce this padding? I have tired various things with the bitmap and text properties, but all of them either do nothing or have unexpected negative consequences, like making random arrows appear on the right side of my window.

Any help on this would be appreciated.
Reply }
#2
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:
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
So, this new sprite should replace your window.contents bitmap.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Sorting Items in Shop Window Melana 13 15,323 01-18-2018, 05:49 AM
Last Post: DerVVulfman
   Custom Message by Hodgeelmf, need to make it above picture LunarBerry 6 9,693 05-09-2016, 01:15 AM
Last Post: LunarBerry
   Showing only specific skills in a window Melana 2 5,282 01-12-2016, 01:34 PM
Last Post: Melana
  Changing Window Styles in Game JackMonty 8 9,530 03-22-2013, 11:54 PM
Last Post: JackMonty
   Something I noticed about the Advanced Shop Status Window yamina-chan 5 9,026 08-21-2011, 09:16 PM
Last Post: yamina-chan
   YEM Equipment Error Message Samven 3 6,262 06-12-2011, 06:30 AM
Last Post: Samven
   I found a message script and cannot figure out how to use it Rose Guardian 3 6,214 05-14-2011, 06:31 PM
Last Post: Rose Guardian
   [Atoa SBS] Changing the command window font MegaPowerNinja 3 7,527 04-12-2011, 10:23 PM
Last Post: Victor Sant
   Repositioning the actor command window. MegaPowerNinja 4 8,494 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja
   Need Help on Making Battle Status Window riou 4 9,637 03-22-2011, 06:04 AM
Last Post: Victor Sant



Users browsing this thread: