Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test < Window_Command
- attr_accessor :close
- def initialize
- s1 = "Kaufen"
- s2 = "Zurück"
- super(192,[s1, s2])
- self.opacity = 155
- self.x = 120 - self.width / 2
- self.y = 188
- Graphics.transition
- # Main loop
- loop do
- # Update game screen
- Graphics.update
- # Update input information
- Input.update
- # Frame update
- self.updateWindow
- if @close == true
- self.contents.clear
- self.dispose
- break
- end
- end
- end
- def updateWindow
- self.update
- # If C button was pressed
- if Input.trigger?(Input::C)
- # Branch by command window cursor position
- case self.index
- when 0 # New game
- print 1
- when 1 # Continue
- @close = true
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement