Yanfly's System Options- Blank Spots

I would need to make the highlight rectangle skip the blank spaces depicted on the image. I know it's possible to erase those blank spaces using the script's user functions, but it makes the entire thing contract and look bad aesthetically.


Here's a link to Yanfly's script: https://github.com/Archeia/YEARepo/blob/master/Menu/System_Options.rb


Blanksp_zps85n9pvxg.png
This snippet should do what you want:

Spoiler
class Window_SystemOptions < Window_Command

def cursor_up(wrap = false)
old_oy = self.oy
super(wrap)
if current_symbol == :blank
if @index == 0 && (!wrap || old_oy != 0)
cursor_down
else
cursor_up(true)
end
end
end

def cursor_down(wrap = false)
super(wrap)
cursor_down(true) if current_symbol == :blank
end

def cursor_pagedown
super
cursor_up(true) if current_symbol == :blank
end

def cursor_pageup
super
cursor_down(true) if current_symbol == :blank
end

end



Place it below the System Options script.
A perfect piece of coding! Thank you! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-system-options-blank-spots.71589/