FANDOM


Watch in the Pokégear screen
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This script add a watch at Pokégear screen. I suggest you to change the pokégear pokegearbg.png and pokegearbgf.png (at Graphics\Pictures) to the ones that I edited for this purpose. At PokemonPokegear script section, before line 'Graphics.transition' add:

@sprites["overlay"]=BitmapSprite.new(
    Graphics.width,Graphics.height,@viewport)
pbSetSystemFont(@sprites["overlay"].bitmap)
@dateString=""
updateDateIfNecessary

Change

  #-----------------------------------------------------------------------------
  # update the scene
  #-----------------------------------------------------------------------------
  def update

to

  #-----------------------------------------------------------------------------
  # update the date display if necessary
  #-----------------------------------------------------------------------------
  def updateDateIfNecessary
    showSeconds = true # Make it false to won't show the seconds
    newDate = pbGetTimeNow.strftime(showSeconds ? "%I:%M:%S %p" : "%I:%M %p")
    return false if @dateString==newDate
    @dateString=newDate  
    overlay=@sprites["overlay"].bitmap
    overlay.clear 
    baseColor=Color.new(72,72,72)
    shadowColor=Color.new(160,160,160)
    textPositions=[
       [@dateString,Graphics.width/2,-2,2,baseColor,shadowColor]]
    pbDrawTextPositions(overlay,textPositions)
    return true
  end
  #-----------------------------------------------------------------------------
  # update the scene
  #-----------------------------------------------------------------------------
  def update
    updateDateIfNecessary

This script works well with Unreal time system.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.