Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # GAME LU GA BOLEH NEP!
- # =============================================================================
- class Window_Message < Window_Base
- def update_choice_cursor
- mx, my = *Mouse.position
- for i in 0..$game_message.choices.size - 1
- px = Graphics.width - self.width + cursor_rect.x
- py = Graphics.height - self.height + @choice_y + (i * line_height)
- if mx.between?(px, px + cursor_rect.width) &&
- my.between?(py, py + cursor_rect.height)
- Sound.play_cursor if @choice_index != i
- cursor_rect.y = @choice_y + @choice_index * line_height
- @choice_index = i
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement