So I've tried to add HIT and CRI to the equip status window, but the text won't display. I've added this code to Window_EquipStatus
All the puts commands were for debugging purposes, and by that I've figured out that draw_sparam and draw_sparam_name are being called, and that the correct name and values are being passed to the methods, but for whatever reason, its just not appearing in the window. (I've neglected to add the scripts that changed the size of the window to make room for these new parameters)
Code:
def refresh
contents.clear
draw_all_items
end
def draw_sparam(x, y, value)
change_color(normal_color)
draw_text(x, y, 100, line_height, value, 2)
end
def draw_sparam_name(x, y, name)
change_color(system_color)
puts "#{name}"
draw_text(x, y, 80, line_height, name)
end
def draw_all_items
9.times {|i| draw_item(0, line_height * (i), 2 + i) }
end
def draw_item(x, y, param_id)
puts "#{param_id}"
if param_id == 9
draw_sparam_name(x, y + line_height * 7, "HIT")
draw_sparam(x + 120, y + line_height * 7, @actor.hit.to_i.to_s) if @actor
elsif param_id == 10 draw_sparam_name(x, y + line_height * 8, "CRI")
draw_sparam(x + 120, y + line_height * 8, @actor.cri.to_i.to_s) if @actor
elsif param_id <= 7
puts "f"
draw_param_name(x + 4, y, param_id)
draw_current_param(x + 94, y, param_id) if @actor
draw_right_arrow(x + 126, y)
draw_new_param(x + 150, y, param_id) if @temp_actor
end
end
All the puts commands were for debugging purposes, and by that I've figured out that draw_sparam and draw_sparam_name are being called, and that the correct name and values are being passed to the methods, but for whatever reason, its just not appearing in the window. (I've neglected to add the scripts that changed the size of the window to make room for these new parameters)