• 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.

[Essentials Tutorial] Adding more borders on Options Screen

FL

Pokémon Island Creator
  • 2,470
    Posts
    14
    Years
    • Seen yesterday
    This tutorial explains how to change the border setting on Option Screen from "On"/"Off", into "Off" and several border graphics.

    First, put your borders on Graphics\Pictures naming as border0.png, border1.png, border2.png and so on.

    At Win32API script section change line 'if $PokemonSystem && $PokemonSystem.border==1' into 'if $PokemonSystem && $PokemonSystem.border>0'.

    At Sprite_Resizer script section change lines:
    1. 'if !FULLSCREENBORDERCROP && $PokemonSystem && $PokemonSystem.border==1' into 'if !FULLSCREENBORDERCROP && $PokemonSystem && $PokemonSystem.border>0'
    2. 'border=$PokemonSystem ? $PokemonSystem.border : 0' to 'border=$PokemonSystem ? [$PokemonSystem.border,1].min : 0'
    3. '@sprite.visible=($PokemonSystem && $PokemonSystem.border==1)' to '@sprite.visible=($PokemonSystem && $PokemonSystem.border>0)'
    4. '@sprite.visible=($PokemonSystem && $PokemonSystem.border==1)' to '@sprite.visible=($PokemonSystem && $PokemonSystem.border>0)'
    At PScreen_Options script section change line 'EnumOption.new(_INTL("Screen Border"),[_INTL("Off"),_INTL("On")],' to 'EnumOption2.new(_INTL("Screen Border"),[_INTL("Off"),_INTL("Border 0 name"),_INTL("Border 1 name"),_INTL("Border 2 name")],'. You can add more items if you wish. Before line 'pbSetResizeFactor($PokemonSystem.screensize)' add 'setScreenBorderName("border"+(value-1).to_s) if value>0'.

    At Main script section change line 'setScreenBorderName("border") # Sets image file for the border' to 'setScreenBorderName("border"+($PokemonSystem.border-1).to_s)'.
     
    Last edited:
    Back
    Top