Which method highlights your selection in a window(VX Ace)

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
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?
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
970
Reaction score
810
First Language
English
Primarily Uses
N/A
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.
 
Last edited by a moderator:

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
What do you mean by highlight?


What I mean is how in a menu when you move the cursor around the button that the cursor is on is surrounded by a lighter color rectangle.  A screenshot: Screenshot (16).png
 

kovak

Silverguard
Veteran
Joined
Apr 3, 2016
Messages
1,263
Reaction score
1,565
First Language
PT - EN
Primarily Uses
RMMV
Oh, that's called Cursor Box as far as i know
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,848
First Language
English
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top