mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 13:59:57 +00:00
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:
parent
eff90ea95f
commit
6c819d0249
1 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue