Window Constructors giving x as 0?

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
Code:
def initialize
    super(0, 0, window_width, window_height)
    refresh
    self.openness = 0
end
This is the constructor for Window_BattleStatus.  It shows 0 as the x coordinate, but it is displayed at x = 128.  Why is this, and how can I change the script so that the window is displayed at x = 122?
 
Joined
Jul 17, 2015
Messages
586
Reaction score
316
First Language
English
Primarily Uses
When the Window_BattleStatus window is created in Scene_Battle, it sets the x coordinate for the window afterwards:


#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_BattleStatus.new
@status_window.x = 128
end


So you would edit it there.
 

jwideman

Veteran
Veteran
Joined
Oct 2, 2015
Messages
230
Reaction score
97
First Language
English
Primarily Uses
Because this is in Scene_Battle

Code:
  def create_status_window
    @status_window = Window_BattleStatus.new
    @status_window.x = 128
  end
I leave it to you to figure out the rest.
 

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
When the Window_BattleStatus window is created in Scene_Battle, it sets the x coordinate for the window afterwards:



#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_BattleStatus.new
@status_window.x = 128
end


So you would edit it there.


Thank you!
 

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,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top