Minor tweaks

This commit is contained in:
Maruno17
2020-09-12 18:21:05 +01:00
parent e4436c0fa3
commit 6ac7aca902
11 changed files with 118 additions and 119 deletions

View File

@@ -175,16 +175,16 @@ def pbEncounterEditorMap(encdata,map)
enccmd = pbListWindow([])
# This window displays the help text
enchelp = Window_UnformattedTextPokemon.new("")
enchelp.x = 256
enchelp.x = Graphics.width/2
enchelp.y = 0
enchelp.width = 224
enchelp.width = Graphics.width/2 - 32
enchelp.height = 96
enchelp.z = 99999
mapinfos = load_data("Data/MapInfos.rxdata")
mapname = mapinfos[map].name
loop do
enc = encdata[map]
enchelp.text = mapname
enchelp.text = _ISPRINTF("{1:03d}: {2:s}\r\nChoose a method",map,mapname)
choice = pbEncounterEditorTypes(enc,enccmd)
if !enc
enc = [EncounterTypes::EnctypeDensities.clone,[]]
@@ -197,11 +197,11 @@ def pbEncounterEditorMap(encdata,map)
elsif choice==-3
ret = pbNewEncounterType(enc)
if ret>=0
enchelp.text = _INTL("{1}\r\n{2}",mapname,EncounterTypes::Names[ret])
enchelp.text = _ISPRINTF("{1:03d}: {2:s}\r\n{3:s}",map,mapname,EncounterTypes::Names[ret])
pbEditEncounterType(enc,ret)
end
else
enchelp.text = _INTL("{1}\r\n{2}",mapname,EncounterTypes::Names[choice])
enchelp.text = _ISPRINTF("{1:03d}: {2:s}\r\n{3:s}",map,mapname,EncounterTypes::Names[choice])
pbEditEncounterType(enc,choice)
end
end
@@ -228,7 +228,7 @@ def pbTrainerTypeEditorNew(trconst)
end
trainertype = maxid+1
trname = pbMessageFreeText(_INTL("Please enter the trainer type's name."),
(trconst) ? trconst.gsub(/_+/," ") : "",false,256)
(trconst) ? trconst.gsub(/_+/," ") : "",false,30)
return -1 if trname=="" && !trconst
# Create an internal name based on the trainer type's name if there is none.
trconst = trname if !trconst
@@ -432,7 +432,7 @@ def pbTrainerBattleEditor
else
next
end
trainername = pbMessageFreeText(_INTL("Now enter the trainer's name."),"",false,32)
trainername = pbMessageFreeText(_INTL("Now enter the trainer's name."),"",false,30)
next if trainername==""
trainerparty = pbGetFreeTrainerParty(trainertype,trainername)
if trainerparty<0
@@ -1086,9 +1086,9 @@ def pbRegionalDexEditor(dex)
viewport = Viewport.new(0,0,Graphics.width,Graphics.height)
viewport.z = 99999
info = Window_AdvancedTextPokemon.new(_INTL("Z+Up/Down: Rearrange entries\nZ+Right: Insert new entry\nZ+Left: Delete entry\nF: Clear entry"))
info.x = 256
info.x = Graphics.width/2
info.y = 64
info.width = Graphics.width-256
info.width = Graphics.width/2
info.height = Graphics.height-64
info.viewport = viewport
info.z = 2
@@ -1229,16 +1229,16 @@ def pbRegionalDexEditorMain
cmdwin.viewport = viewport
cmdwin.z = 2
title = Window_UnformattedTextPokemon.new(_INTL("Regional Dexes Editor"))
title.x = 256
title.x = Graphics.width/2
title.y = 0
title.width = Graphics.width-256
title.width = Graphics.width/2
title.height = 64
title.viewport = viewport
title.z = 2
info = Window_AdvancedTextPokemon.new(_INTL("Z+Up/Down: Rearrange Dexes"))
info.x = 256
info.x = Graphics.width/2
info.y = 64
info.width = Graphics.width-256
info.width = Graphics.width/2
info.height = Graphics.height-64
info.viewport = viewport
info.z = 2
@@ -1387,16 +1387,16 @@ def pbAnimationsOrganiser
cmdwin.viewport = viewport
cmdwin.z = 2
title = Window_UnformattedTextPokemon.new(_INTL("Animations Organiser"))
title.x = 256
title.x = Graphics.width/2
title.y = 0
title.width = Graphics.width-256
title.width = Graphics.width/2
title.height = 64
title.viewport = viewport
title.z = 2
info = Window_AdvancedTextPokemon.new(_INTL("Z+Up/Down: Swap\nZ+Left: Delete\nZ+Right: Insert"))
info.x = 256
info.x = Graphics.width/2
info.y = 64
info.width = Graphics.width-256
info.width = Graphics.width/2
info.height = Graphics.height-64
info.viewport = viewport
info.z = 2