-Update 2-
Ignore Update 1, it was bollocks and me looking in the wrong place lol.
Solved it (see my reply post below) by changing the Viewport Code in the Window_BattleEnemy class.
Good luck to everyone else also messing about with Battle Window positioning for the first time, this stuff is weird 😀.
Changed thread title to include [SOLVED] but will hold off on reporting for closing for a few hours just in case anyone else wants to chip in on the issue.
-end of Update 2-
-Update 1-
I was looking in the wrong place.
-End of Update 1-
Original Post:
Hey everyone!
So I've been messing around with Enemy Select Window and all I've done is change where the window appears, how big it is and how many columns it has in it so far yet I've encountered something quite bizarre...
The "Attack, Special, Guard, Item" Actor Command Window has only PARTIALLY disappeared when Enemy Select is up, leaving behind part of its border as a result.
Pictured here (you'll notice the border of the menu is still a bit there in the bottom right):
-------------------------------------------------------------------------------------
What's more, if I were to move the Info Display Window (the same way it moves to the right or left depending on whether the Party Command Window or the Actor Command Window is active) to the right...
This happens:
-------------------------------------------------------------------------------------
Here are all the changes I've made to the code so far (not many as I'm sure you'll see):
-------------------------------------------------------------------------------------
So, anyone know why it's doing this?
I've tried .hide .show .close .open and .deactivate and .activate for the Actor Command Window but it still creates this weird void-actor command window regardless.
Quite the enigma to me at the moment, so any thoughts on the subject would be appreciated 🙂.
Kind regards and all the best,
- The_Sarah
Ignore Update 1, it was bollocks and me looking in the wrong place lol.
Solved it (see my reply post below) by changing the Viewport Code in the Window_BattleEnemy class.
Good luck to everyone else also messing about with Battle Window positioning for the first time, this stuff is weird 😀.
Changed thread title to include [SOLVED] but will hold off on reporting for closing for a few hours just in case anyone else wants to chip in on the issue.
-end of Update 2-
-Update 1-
I was looking in the wrong place.
-End of Update 1-
Original Post:
Hey everyone!
So I've been messing around with Enemy Select Window and all I've done is change where the window appears, how big it is and how many columns it has in it so far yet I've encountered something quite bizarre...
The "Attack, Special, Guard, Item" Actor Command Window has only PARTIALLY disappeared when Enemy Select is up, leaving behind part of its border as a result.
Pictured here (you'll notice the border of the menu is still a bit there in the bottom right):
-------------------------------------------------------------------------------------
What's more, if I were to move the Info Display Window (the same way it moves to the right or left depending on whether the Party Command Window or the Actor Command Window is active) to the right...
This happens:
-------------------------------------------------------------------------------------
Here are all the changes I've made to the code so far (not many as I'm sure you'll see):
Ruby:
# Under Window_BattleEnemy:
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(info_viewport)
# super(0, info_viewport.rect.y, window_width, fitting_height(4))
super(0, 100, window_width, fitting_height(4))
refresh
self.visible = false
@info_viewport = info_viewport
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
# Graphics.width - 128
Graphics.width - 420
end
#--------------------------------------------------------------------------
# * Get Digit Count
#--------------------------------------------------------------------------
def col_max
# return 2
return 1
end
#--------------------------------------------------------------------------
# * Show Window
#--------------------------------------------------------------------------
def show
if @info_viewport
width_remain = Graphics.width - width
# self.x = width_remain
@info_viewport.rect.width = width_remain
select(0)
end
super
end
Ruby:
# Under Scene_Battle
#--------------------------------------------------------------------------
# * Update Information Display Viewport
#--------------------------------------------------------------------------
def update_info_viewport
move_info_viewport(0) if @party_command_window.active
move_info_viewport(128) if @actor_command_window.active
move_info_viewport(0) if @enemy_window.active
move_info_viewport(64) if BattleManager.in_turn?
end
-------------------------------------------------------------------------------------
So, anyone know why it's doing this?
I've tried .hide .show .close .open and .deactivate and .activate for the Actor Command Window but it still creates this weird void-actor command window regardless.
Quite the enigma to me at the moment, so any thoughts on the subject would be appreciated 🙂.
Kind regards and all the best,
- The_Sarah