\$ Move Gold Window

I'm looking to move the gold window a bit futher down when displaying it using the text command ' \$ '.

It's in the top right corner now, but I'm running a time script that displays a time window there too and the windows overlap.

Any ideas?
Try putting this scriptlet under Materials:

class Window_Gold < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize # sets the starting position of the gold window when called. # change out the y for the height of the time window super(0, y, window_width, fitting_height(1)) refresh endendIf the time window and gold window are the same height, you could set the y value to fitting_height(1) as well and that should work.
hmmm...well, I think I did it right but maybe not becasue nothing seems to be changing. I tried using 'fitting_height(1)' and also '75' for y value but the window hasn't moved

screenshots:

Spoiler
oo7yGHr.gif


U5bHZfV.gif
My bad! That only takes care of initial values ><" try replacing it with this:

Spoiler
class Window_Gold < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize # sets the starting position of the gold window when called. # change out the y for the height of the time window super(0, 0, window_width, fitting_height(1)) refresh endendclass Window_Message < Window_Base #-------------------------------------------------------------------------- # * Create All Windows #-------------------------------------------------------------------------- def create_all_windows @gold_window = Window_Gold.new @gold_window.x = Graphics.width - @gold_window.width @gold_window.y = 100 @gold_window.openness = 0 @choice_window = Window_ChoiceList.new(self) @number_window = Window_NumberInput.new(self) @item_window = Window_KeyItem.new(self) end #-------------------------------------------------------------------------- # * Update Window Position #-------------------------------------------------------------------------- def update_placement @position = $game_message.position self.y = @position * (Graphics.height - height) / 2 @gold_window.y = y > 0 ? 100 : Graphics.height - @gold_window.height endend
To change up the values, just swap out the 100 in @gold_window.y = 100 and @gold_window.y = y > 0 ? 100 : Graphics.height - @gold_window.height for different values.
You're a gem!

It works like a charm. Thank you thank you!
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/move-gold-window.18303/