Notice: fwrite(): Write of 483 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - [RESOLVED] Remove Window Cursor

The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: DoctorTodd on February 23, 2012, 12:27:28 AM

Title: [RESOLVED] Remove Window Cursor
Post by: DoctorTodd on February 23, 2012, 12:27:28 AM
I currently working on a script and I'm just about done where it overwrites Window_BattleStatus and adds more detail for only one actor. Any way I face a problem where it stills display a cursor (See picture attached) and I can't seem to remove it. I understand it is a sub class of Window_Selectable and I tried changing it to being a sub class of Window_Base but that would require a bunch of modifications to the battle system. And I wish for this to work with others that use Window_BattleStatus. So does any one know how to remove the cursor with out changing its super class or at least re-size it to fit the whole window. I also attached the script.
Title: Re: [VX] Remove Window Cursor
Post by: TDS on February 23, 2012, 01:19:11 AM
Just add the update_cursor method to your window and don't use super. That way when the window tries to call the update_cursor method to get the size and position of the cursor it will get whatever you put in there like for example self.cursor_rect.empty


  #--------------------------------------------------------------------------
  # * Update cursor
  #--------------------------------------------------------------------------
  def update_cursor
     self.cursor_rect.empty
  end


If you want to resize it you need to set the cursor_rect like so:


self.cursor_rect = Rect.new(0, 0, 200, 24)


Let me know if that works out or if you need it explained any further.

Have a nice day.
Title: Re: [VX] Remove Window Cursor
Post by: DoctorTodd on February 23, 2012, 01:27:56 AM
Thanks TDS, I'll make sure to credit you.