resort gorgeous / debug options

This commit is contained in:
infinitefusion
2021-07-20 10:45:45 -04:00
parent 0190b3c365
commit 77878847b5
9 changed files with 72 additions and 36 deletions

View File

@@ -116,9 +116,13 @@ end
# the ID of the species to initially select. Pressing Input::ACTION will toggle
# the list sorting between numerical and alphabetical.
def pbChooseSpeciesList(default = nil)
commands = []
GameData::Species.each { |s| commands.push([s.id_number, s.real_name, s.id]) if s.form == 0 }
return pbChooseList(commands, default, nil, -1)
# commands = []
# GameData::Species.each { |s| commands.push([s.id_number, s.real_name, s.id]) if s.form == 0 }
# return pbChooseList(commands, default, nil, -1)
params = ChooseNumberParams.new
params.setRange(1,PBSpecies.maxValue)
dexNum = pbMessageChooseNumber("dex number?",params)
return GameData::Species.get(dexNum)
end
def pbChooseSpeciesFormList(default = nil)

View File

@@ -7,7 +7,27 @@ def pbDefaultMap
return 0
end
def pbWarpToMapId
params = ChooseNumberParams.new
params.setRange(1,pbMapTree().length)
map_id = pbMessageChooseNumber("map id?",params)
return [map_id,0,0]
end
def pbWarpToMap
choice = pbMessage("type", [_INTL("List"),_INTL("Map id"), _INTL("Town map")], 0)
if choice == 0
map = pbWarpToMapList
elsif choice == 1
map = pbWarpToMapId
elsif choice == 2
Kernel.pbMessage("Not currently supported")
map = pbWarpToMapList
end
return map
end
def pbWarpToMapList
mapid = pbListScreen(_INTL("WARP TO MAP"),MapLister.new(pbDefaultMap))
if mapid>0
map = Game_Map.new