mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
deactivates arrows quick scroll outside of long lists and pokedex
This commit is contained in:
@@ -741,6 +741,7 @@ class SpriteWindow_Selectable < SpriteWindow_Base
|
||||
@row_height = 32
|
||||
@column_spacing = 32
|
||||
@ignore_input = false
|
||||
@allow_arrows_jump=false
|
||||
end
|
||||
|
||||
def itemCount
|
||||
@@ -767,6 +768,10 @@ class SpriteWindow_Selectable < SpriteWindow_Base
|
||||
end
|
||||
end
|
||||
|
||||
def setAllowArrowsJump(value)
|
||||
@allow_arrows_jump=value
|
||||
end
|
||||
|
||||
def columns
|
||||
return @column_max || 1
|
||||
end
|
||||
@@ -851,13 +856,13 @@ class SpriteWindow_Selectable < SpriteWindow_Base
|
||||
scroll_up()
|
||||
elsif Input.repeat?(Input::DOWN)
|
||||
scroll_down()
|
||||
elsif Input.repeat?(Input::LEFT) && @column_max > 1
|
||||
elsif Input.repeat?(Input::LEFT) && !@allow_arrows_jump
|
||||
scroll_left()
|
||||
elsif Input.repeat?(Input::RIGHT) && @column_max > 1
|
||||
elsif Input.repeat?(Input::RIGHT) && !@allow_arrows_jump
|
||||
scroll_right()
|
||||
elsif Input.repeat?(Input::JUMPUP) || Input.repeat?(Input::LEFT)
|
||||
elsif Input.repeat?(Input::JUMPUP) || (Input.repeat?(Input::LEFT) && @allow_arrows_jump)
|
||||
jump_up()
|
||||
elsif Input.repeat?(Input::JUMPDOWN) || Input.repeat?(Input::RIGHT)
|
||||
elsif Input.repeat?(Input::JUMPDOWN) || (Input.repeat?(Input::RIGHT) && @allow_arrows_jump)
|
||||
jump_down()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user