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.
This commit is contained in:
Michael Shirt 2016-11-14 14:48:33 -07:00
parent eff90ea95f
commit 6c819d0249
1 changed files with 18 additions and 18 deletions

View File

@ -173,25 +173,25 @@ class Window_Selectable < Window_Base
end end
end end
# If R button was pressed # If R button was pressed
if Input.repeat?(Input::R) #if Input.repeat?(Input::R)
# If bottom row being displayed is more to front than bottom data row # # 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) # if self.top_row + (self.page_row_max - 1) < (self.row_max - 1)
# Move cursor 1 page back # # Move cursor 1 page back
$game_system.se_play($data_system.cursor_se) # $game_system.se_play($data_system.cursor_se)
@index = [@index + self.page_item_max, @item_max - 1].min # @index = [@index + self.page_item_max, @item_max - 1].min
self.top_row += self.page_row_max # self.top_row += self.page_row_max
end # end
end #end
# If L button was pressed # If L button was pressed
if Input.repeat?(Input::L) #if Input.repeat?(Input::L)
# If top row being displayed is more to back than 0 # # If top row being displayed is more to back than 0
if self.top_row > 0 # if self.top_row > 0
# Move cursor 1 page forward # # Move cursor 1 page forward
$game_system.se_play($data_system.cursor_se) # $game_system.se_play($data_system.cursor_se)
@index = [@index - self.page_item_max, 0].max # @index = [@index - self.page_item_max, 0].max
self.top_row -= self.page_row_max # self.top_row -= self.page_row_max
end # end
end #end
end end
# Update help text (update_help is defined by the subclasses) # Update help text (update_help is defined by the subclasses)
if self.active and @help_window != nil if self.active and @help_window != nil