double hats UI wip

This commit is contained in:
chardub
2025-03-08 12:52:55 -05:00
parent 20a5811ab8
commit 60de077d01
23 changed files with 870 additions and 144 deletions

View File

@@ -374,6 +374,24 @@ ItemHandlers::UseFromBag.add(:ODDKEYSTONE, proc { |item|
})
def useFavoriteOutfit()
cmd_switch = "Switch to favorite outfit"
cmd_mark_favorite = "Mark current outfit as favorite"
cmd_cancel = "Cancel"
options = [cmd_switch, cmd_mark_favorite, cmd_cancel]
choice = optionsMenu(options)
if options[choice] == cmd_switch
switchToFavoriteOutfit()
elsif options[choice] == cmd_mark_favorite
pbSEPlay("shiny", 80, 100)
$Trainer.favorite_clothes= $Trainer.clothes
$Trainer.favorite_hat = $Trainer.hat
$Trainer.favorite_hat2=$Trainer.hat2
pbMessage(_INTL("Your favorite outfit was updated!"))
end
end
def switchToFavoriteOutfit()
if !$Trainer.favorite_clothes && !$Trainer.favorite_hat && !$Trainer.favorite_hat2
pbMessage(_INTL("You can mark clothes and hats as your favorites in the outfits menu and use this to quickly switch to them!"))
return 0