Finalised input names, added some more save file conversion code

This commit is contained in:
Maruno17
2021-04-11 15:18:04 +01:00
parent 614e0ed9a2
commit e5a0e3acdd
39 changed files with 145 additions and 106 deletions

View File

@@ -882,7 +882,7 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect
end
end
elsif Input.repeat?(Input::L)
elsif Input.repeat?(Input::JUMPUP)
if @index > 0
oldindex = @index
@index = [self.index-self.page_item_max, 0].max
@@ -892,7 +892,7 @@ class SpriteWindow_Selectable < SpriteWindow_Base
update_cursor_rect
end
end
elsif Input.repeat?(Input::R)
elsif Input.repeat?(Input::JUMPDOWN)
if @index < @item_max-1
oldindex = @index
@index = [self.index+self.page_item_max, @item_max-1].min

View File

@@ -226,13 +226,13 @@ class Window_TextEntry < SpriteWindow_Base
self.refresh if (@frame%10)==0
return if !self.active
# Moving cursor
if Input.repeat?(Input::LEFT) && Input.press?(Input::SPECIAL)
if Input.repeat?(Input::LEFT) && Input.press?(Input::ACTION)
if @helper.cursor > 0
@helper.cursor -= 1
@frame = 0
self.refresh
end
elsif Input.repeat?(Input::RIGHT) && Input.press?(Input::SPECIAL)
elsif Input.repeat?(Input::RIGHT) && Input.press?(Input::ACTION)
if @helper.cursor < self.text.scan(/./m).length
@helper.cursor += 1
@frame = 0
@@ -1311,9 +1311,9 @@ class PokemonEntryScene2
Input.update
pbUpdate
next if pbMoveCursor
if Input.trigger?(Input::Z)
if Input.trigger?(Input::SPECIAL)
pbChangeTab
elsif Input.trigger?(Input::SPECIAL)
elsif Input.trigger?(Input::ACTION)
@cursorpos = OK
@sprites["cursor"].setCursorPos(@cursorpos)
elsif Input.trigger?(Input::BACK)