• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Default windowskin for Location Signposts?

Is there a way to set up a windowskin only for location signposts? I've got my code in PokemonField set up like this:

Code:
################################################################################
# Location signpost
################################################################################
class LocationWindow
  def initialize(name)
    @window=Window_AdvancedTextPokemon.new(name)
    #@window.resizeToFit(name,Graphics.width)
    @window.width=320
    @window.height=64
    @window.x=0
    @[email protected]
    @window.z=99999
    @currentmap=$game_map.map_id
    @frames=0
  end

  def disposed?
    @window.disposed?
  end

  def dispose
    @window.dispose
  end

  def update
    return if @window.disposed?
    @window.update
    if $game_temp.message_window_showing ||
       @currentmap!=$game_map.map_id
      @window.dispose
      return
    end
    if @frames>80
      @window.y-=288
      @window.dispose if @[email protected]<0
    else
      @window.y+=288 if @window.y<0
      @frames+=1
    end
  end
end

However, I have no idea how to set a specific windowskin for this window only. I have a skin called "showarea.png" If anyone knows how to do this please let me know! I took a look at the wiki and it only told me where to look to make changes to the Location Signpost.

Thanks for looking,
Pia Carrot
 
Can't you just use the event option "Change Windowskin..." before the text and afterwards change it back to the default? Or in the text itself, use this \w[X] where X is the name of the windowskin.png in the Windowskins folder or you can use \sign[X] where X is the name of the windowskin.png
 
Sorry I don't have time to test or play around with it, considering i'm on my phone right now... But here's just a quick idea, hope it leads you in the right direction? I know this sets the window, text, etc. Or something like this haha

Code:
$SpeechFrames=[
  MessageConfig::TextSkinName,
  "windowskin"]

$TextFrames=[
  "Graphics/Windowskins/"+MessageConfig::ChoiceSkinName,
  "Graphics/Windowskins/skin"
]

$VersionStyles=[
  [MessageConfig::FontName],
  ["Power Red and Blue"]
]

end
 
Add @window.setSkin("Graphics/Windowskins/skin2") under @window.resizeToFit(name,Graphics.width)

Thanks, that did the trick. I just realized that I have to change the text shadow color as well, is there a similar method to do this? I knew it couldn't be this easy xD
 
Back
Top