How do I move a window's contents?

SaburoX

Veteran
Veteran
Joined
Jan 27, 2013
Messages
87
Reaction score
8
Primarily Uses
I'm using XS' popup item script  for Ace and I've deactivated a few of the features that added additional rows and lowered the window's height as per the script instructions but now I've got this problem:


shortwindow.png
There looks like there's enough space that if I just shifted the contents up a few pixels I wouldn't have to make the window any bigger. My ruby knowledge is fairly rudimentary (and is mostly focused in RGSS2), but is there a way to do this?
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
Well, reading it without any highlight is really hugly, but if I am not wrong your problem seems to be with this line:


@pop_window.draw_text_ex_no_reset(2, 34, item.description) unless item.nil?


it starts writing your text giving y=34. That's why, since you reduced your window size, your text is being cut.


Change that line to this:


@pop_window.draw_text_ex_no_reset(2, 0, item.description) unless item.nil?


it should solve your problem.


I hope this helps.
 
Last edited by a moderator:

SaburoX

Veteran
Veteran
Joined
Jan 27, 2013
Messages
87
Reaction score
8
Primarily Uses
Well, reading it without any highlight is really hugly, but if I am not wrong your problem seems to be with this line:



@pop_window.draw_text_ex_no_reset(2, 34, item.description) unless item.nil?


it starts writing your text giving y=34. That's why, since you reduced your window size, your text is being cut.


Change that line to this:



@pop_window.draw_text_ex_no_reset(2, 0, item.description) unless item.nil?


it should solve your problem.


I hope this helps.


I wasn't using the descriptions  but it did give me a good enough idea of the script's syntax that I could figure it out from there. I had to change the positioning for the icon, item names, and amounts as well.


Thanks! That's one problem solved.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top