Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_ChoiceCommand < Window_Command
- def command(index=self.index) ; return @commands[index] ; end
- def refresh
- self.height = 80
- create_contents()
- for i in 0...@item_max
- draw_item(i)
- end
- @last_index = -1
- end
- def update
- super
- if self.index != @last_index
- self.contents.draw_text(0, 24, self.contents.width, 24, @command[self.index])
- @last_index = self.index
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment