update 6.7

This commit is contained in:
chardub
2025-09-28 15:53:01 -04:00
parent ef5e023ae0
commit 318ff90d8d
696 changed files with 111759 additions and 198230 deletions

View File

@@ -43,11 +43,26 @@ class PokemonTrainerCard_Scene
@sprites["card"].z=-100
end
def trainerCardActions
cmd_swapBackground = _INTL("Swap background")
cmd_copyTrainerID = _INTL("Copy Trainer ID")
cmd_cancel = _INTL("Cancel")
commands = [cmd_swapBackground, cmd_copyTrainerID,cmd_cancel]
choice = optionsMenu(commands)
case commands[choice]
when cmd_swapBackground
promptSwapBackground
when cmd_copyTrainerID
Input.clipboard = $Trainer.id.to_s
pbMessage(_INTL("Your Trainer ID was copied to the clipboard!"))
end
end
def promptSwapBackground()
$Trainer.unlocked_card_backgrounds = [] if !$Trainer.unlocked_card_backgrounds
if $Trainer.unlocked_card_backgrounds.length >= 1
if pbConfirmMessage("Swap your current Trainer Card background")
chosen = pbListScreen("Trainer card", TrainerCardBackgroundLister.new($Trainer.unlocked_card_backgrounds))
if pbConfirmMessage(_INTL("Swap your current Trainer Card background"))
chosen = pbListScreen(_INTL("Trainer card"), TrainerCardBackgroundLister.new($Trainer.unlocked_card_backgrounds))
echoln chosen
if chosen
$Trainer.card_background = chosen
@@ -70,15 +85,13 @@ class PokemonTrainerCard_Scene
min = totalsec / 60 % 60
time = (hour > 0) ? _INTL("{1}h {2}m", hour, min) : _INTL("{1}m", min)
$PokemonGlobal.startTime = pbGetTimeNow if !$PokemonGlobal.startTime
starttime = _INTL("{1} {2}, {3}",
pbGetAbbrevMonthName($PokemonGlobal.startTime.mon),
$PokemonGlobal.startTime.day,
$PokemonGlobal.startTime.year)
starttime = "#{pbGetAbbrevMonthName($PokemonGlobal.startTime.mon)} #{$PokemonGlobal.startTime.day}, #{$PokemonGlobal.startTime.year}"
textPositions = [
[_INTL("Name"), 34, 58, 0, baseColor, shadowColor],
[$Trainer.name, 302, 58, 1, baseColor, shadowColor],
[_INTL("ID No."), 332, 58, 0, baseColor, shadowColor],
[sprintf("%05d", $Trainer.public_ID), 468, 58, 1, baseColor, shadowColor],
[_INTL("Trainer ID"), 352, 28, 0, baseColor, shadowColor], # [_INTL("ID"), 332, 58, 0, baseColor, shadowColor],
[sprintf("%05d", $Trainer.id), 462, 58, 1, baseColor, shadowColor], # [sprintf("%05d", $Trainer.id), 468, 58, 1, baseColor, shadowColor],
[_INTL("Money"), 34, 106, 0, baseColor, shadowColor],
[_INTL("${1}", $Trainer.money.to_s_formatted), 302, 106, 1, baseColor, shadowColor],
[_INTL("Pokédex"), 34, 154, 0, baseColor, shadowColor],
@@ -129,7 +142,7 @@ class PokemonTrainerCard_Scene
Input.update
pbUpdate
if Input.trigger?(Input::USE)
promptSwapBackground()
trainerCardActions()
end
if Input.trigger?(Input::BACK)
pbPlayCloseMenuSE