From 6c819d0249ca12100415a48ffb66bec3965245f4 Mon Sep 17 00:00:00 2001 From: Michael Shirt Date: Mon, 14 Nov 2016 14:48:33 -0700 Subject: [PATCH] Commenting out choice scrolling with L/R This was causing a bug where if you had 4 choices you could access another page with blank choices? Rather than try to figure out why that's happening I'm opting to remove the functionality entirely, as we're short on time and we don't even have any choice dialogues that have more than 4 choices anyways. --- scripts/Window_Selectable.rb | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/scripts/Window_Selectable.rb b/scripts/Window_Selectable.rb index d61065b..bbaf7c4 100644 --- a/scripts/Window_Selectable.rb +++ b/scripts/Window_Selectable.rb @@ -173,25 +173,25 @@ class Window_Selectable < Window_Base end end # If R button was pressed - if Input.repeat?(Input::R) - # If bottom row being displayed is more to front than bottom data row - if self.top_row + (self.page_row_max - 1) < (self.row_max - 1) - # Move cursor 1 page back - $game_system.se_play($data_system.cursor_se) - @index = [@index + self.page_item_max, @item_max - 1].min - self.top_row += self.page_row_max - end - end + #if Input.repeat?(Input::R) + # # If bottom row being displayed is more to front than bottom data row + # if self.top_row + (self.page_row_max - 1) < (self.row_max - 1) + # # Move cursor 1 page back + # $game_system.se_play($data_system.cursor_se) + # @index = [@index + self.page_item_max, @item_max - 1].min + # self.top_row += self.page_row_max + # end + #end # If L button was pressed - if Input.repeat?(Input::L) - # If top row being displayed is more to back than 0 - if self.top_row > 0 - # Move cursor 1 page forward - $game_system.se_play($data_system.cursor_se) - @index = [@index - self.page_item_max, 0].max - self.top_row -= self.page_row_max - end - end + #if Input.repeat?(Input::L) + # # If top row being displayed is more to back than 0 + # if self.top_row > 0 + # # Move cursor 1 page forward + # $game_system.se_play($data_system.cursor_se) + # @index = [@index - self.page_item_max, 0].max + # self.top_row -= self.page_row_max + # end + #end end # Update help text (update_help is defined by the subclasses) if self.active and @help_window != nil