cursor_rect.empty prevent the window from scrolling the data inside it

i tried to edited my Window_ItemList so the cursor itself has it's own cursor graphics

#==============================================================================# ** Window_ItemList#------------------------------------------------------------------------------# This window displays a list of party items on the item screen.#==============================================================================class Window_ItemList < Window_Selectable def initialize(x, y, width, height) super(x, y, width, height) @category = :none @data = [] @old_index = -1 self.opacity = 0 end def category=(category) return if @category == category @category = category refresh self.oy = 0 end def col_max return 1 end def item_max @data ? @data.size : 1 end def item @data && index >= 0 ? @data[index] : nil end def current_item_enabled? enable?(@data[index]) end def include?(item) case @category when :all_items item.is_a?(RPG::Item) || item.is_a?(RPG::Weapon) || item.is_a?(RPG::Armor) when :items item.is_a?(RPG::Item) when :weapons item.is_a?(RPG::Weapon) when :armors item.is_a?(RPG::Armor) when :accessories item.is_a?(RPG::Armor) && item.etype_id == 4 when :key_items item.is_a?(RPG::Item) && item.key_item? else false end end def enable?(item) $game_party.usable?(item) end def make_item_list @data = $game_party.all_items.select {|item| include?(item) } @data.push(nil) if include?(nil) end def select_last select(@data.index($game_party.last_item.object) || 0) end def draw_item(index) item = @data[index] if item rect = item_rect(index) rect.width -= 24 rect.x += 10 if @index == index contents.blt(rect.x - 12, rect.y, Cache.system("Item Highlight"), Cache.system("Item Highlight").rect) end draw_item_name(item, rect.x, rect.y, enable?(item)) draw_item_number(rect, item) end end def refresh make_item_list create_contents draw_all_items end def update super if @old_index != @index refresh @old_index = @index end endendbut the problem is, when i tried to make the default cursor dissappeared from the itemlist, the window contents itself didn't scrolling 🙁
it was really different with my menu command script which has the cursor_rect.empty to make the default cursor dissappeared and the window itself still scrolling 🙁
 

class Window_MenuCommand < Window_Command def initialize super(0, 38) @old_index = -1 select_last self.opacity = 0 end def standard_padding 0 end def window_height 450 end def line_height 40 end def make_command_list add_ffl_commands end def add_ffl_commands add_command(Vocab::item, :inventory, main_commands_enabled) add_command(Vocab::skill, :skills, main_commands_enabled) add_command(Vocab::equip, :equipment, main_commands_enabled) add_command(Vocab::status, :status, main_commands_enabled) add_command(Vocab::formation, :formation, formation_enabled) add_command("Tutorial", :tutorial) add_command(Vocab::save, :save) add_command("Setting", :setting) add_command(Vocab::game_end, :game_end) end def refresh clear_command_list make_command_list create_contents contents.blt(0, 0, Cache.system("Menu Command"), Cache.system("Menu Command").rect) contents.blt(0, @index * 40, Cache.system("Menu Command_Select"), Rect.new(0,@index * 40,160,40)) end def update super if @old_index != @index refresh @old_index = @index end end def update_cursor cursor_rect.empty puts @index endendif i tried to put the def update cursor and the method with it inside the window itemlist, the scrolling problem comes up. is there another way to make the default cursor dissappeared without have a mess with the scrolling window contents?
Why don't you just use the default cursor AND your image, but edit the windowskin so the default cursor is actually completely transparent?
oh yeah i got what you meant shaz :headshake:

it really a shame that i just need to edit the default cursor at windowskin using image editor 😀

nah just forget this thread, this has been solved 🤣
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/cursor_rect-empty-prevent-the-window-from-scrolling-the-data-inside-it.22227/