Well, I was fishing around in the forums to fix my "Stack level too deep" error. Well, that worked just fine. However, now my cursor won't move between actors in Window_MenuStatus. Here is what I had before the fix:
...and here is what I modified (the alias method at the bottom at the previous script):
Well, the error is gone, but now I can't switch between characters in Window_MenuStatus. How can this issue be remedied?
Code:
#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays party member status on the menu screen.
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 416, 352)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
bitmap = RPG::Cache.picture("Separator01")
src_rect = Rect.new(0, 0, 352, 175)
self.contents.blt(16, 72, bitmap, src_rect, 45)
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = 64
y = i * 85
actor = $game_party.actors[i]
text = contents.text_size(actor.name).width
draw_actor_graphic(actor, x - 40, y + 56)
draw_actor_name(actor, x, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + text + 4, y)
draw_actor_hp(actor, x + 176, y)
draw_actor_sp(actor, x + 176, y + 32)
end
end
#--------------------------------------------------------------------------
# * Refresh Graphic
#--------------------------------------------------------------------------
def refresh_graphic
for i in 0...$game_party.actors.size
x = 64
y = i * 85
actor = $game_party.actors[i]
self.contents.fill_rect(10, y + 8, 32, 48, Color.new(0, 0, 0, 0))
draw_actor_graphic(actor, x - 40, y + 56)
end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
else
self.cursor_rect.set(0, @index * 85, self.width - 32, 64)
end
end
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
alias moving_graphic_update update
def update
moving_graphic_update
refresh_graphic
end
end
...and here is what I modified (the alias method at the bottom at the previous script):
Code:
[...]
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
if @moving_graphic_update.nil?
alias moving_graphic_update update
def update
@moving_graphic_update = true
refresh_graphic
end
end
end
Well, the error is gone, but now I can't switch between characters in Window_MenuStatus. How can this issue be remedied?