• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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,444
Posts
13
Years
  • Seen Apr 22, 2024
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