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.
Windows - How to?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 55
Waiting ...
I wanted to play with windows, So I built this really basic thing:

Code: [Select]
class Game_Interpreter
  def call_sample
    SceneManager.call(Scene_Sample)
  end
end

class Sample < Window_Base
  def initialize(x, y, width, height)
    super
  end
end

class Scene_Sample < Scene_MenuBase
 
  def start
    super
    create_window
  end
 
  def create_window
    @window = Sample.new(122, 122, 122, 122)
  end
 
end

calling: call_sample will open your window, how ever hitting esc, like on any other window won't close it.....I've seen numerous scripts do this and no one seems to have a dispose method built for their windows. How are they doing it? How are they closing windows when you hit esc?

-- Updated code to show a better example
« Last Edit: July 17, 2013, 12:48:02 AM by Vindictive Personality »