RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Remove Window Cursor

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 71
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.
« Last Edit: February 23, 2012, 01:28:35 AM by DoctorTodd »

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
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

Code: [Select]
  #--------------------------------------------------------------------------
  # * 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:

Code: [Select]
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.

****
Rep:
Level 71
Thanks TDS, I'll make sure to credit you.