I want to change how a subclass of Window_Selectable highlights the item that the cursor is on, but I can't find which method to override. Which method handles how the currently selected option is highlighted?
Which method highlights your selection in a window(VX Ace)
RGSSx Script SupportWhat do you mean by highlight?
Well, in VX Ace if you wanted to select something you'd type "select(X)" so perhaps search for the method "select"?
edit: unless by "highlight" you meant by the way the actual graphic is handled. In that case, I'm not sure if VX ace allows you to edit that code.
edit: unless by "highlight" you meant by the way the actual graphic is handled. In that case, I'm not sure if VX ace allows you to edit that code.
Oh, that's called Cursor Box as far as i know
That is the cursor_rect, which is just a rectangle
You can see it in Window_Selectable
def update_cursor
if @cursor_all
cursor_rect.set(0, 0, contents.width, row_max * item_height)
self.top_row = 0
elsif @index < 0
cursor_rect.empty
else
ensure_cursor_visible
cursor_rect.set(item_rect(@index))
end
end
You don't have much control over how it's drawn.
You can see it in Window_Selectable
def update_cursor
if @cursor_all
cursor_rect.set(0, 0, contents.width, row_max * item_height)
self.top_row = 0
elsif @index < 0
cursor_rect.empty
else
ensure_cursor_visible
cursor_rect.set(item_rect(@index))
end
end
You don't have much control over how it's drawn.
Original thread: https://forums.rpgmakerweb.com/threads/which-method-highlights-your-selection-in-a-window-vx-ace.65375/
