Change graphic of timer?

Is there a way to change the graphic of the timer that appears in the corner of the screen when you set a timer? I’d like the timer to have a different font to it 😀
Just a different font? Or do you need to apply any other changes to the timer?
Just a different font? Or do you need to apply any other changes to the timer?
I’d like to just change the font. At one oint I wanted to know if it was possible to have the timer tick to the beat of the background music, but people were saying that it’s super complicated. So yeah, I’d just like to change the font. 🙂
Ruby:
# * KModTimer ACE * #
#   Scripter : Kyonides Arkanthes
#   2023-04-30

class Sprite_Timer
  FONT_NAME = "Arial"
  FONT_SIZE = 32
  # Color Ranges (0..255) [Red, Green, Blue, Alpha]
  FONT_BG_COLOR = [0, 0, 0, 80]
  USE_BG_COLOR = true
  # Available Positions: :left, :center, :right
  POSITION_X = :left
  def create_bitmap
    @bg_color = Color.new(*FONT_BG_COLOR)
    self.bitmap = Bitmap.new(96, 48)
    font_setup
  end

  def font_setup
    font = self.bitmap.font
    font.name = FONT_NAME
    font.size = FONT_SIZE
    font.color.set(255, 255, 255)
  end

  def redraw_backdrop
    bm = self.bitmap
    USE_BG_COLOR ? bm.fill_rect(bm.rect, @bg_color) : bm.clear
  end
 
  def redraw
    redraw_backdrop
    bitmap.draw_text(bitmap.rect, timer_text, 1)
  end

  def update_x
    case POSITION_X
    when :left
      self.x = 0
    when :center
      self.x = (Graphics.width - self.bitmap.width) / 2
    when :right
      self.x = Graphics.width - self.bitmap.width
    end
  end

  def update_position
    update_x
    self.y = 0
    self.z = 200
  end
end
Ahh! Thank you! Where do I paste this?
Moved to: RGSS3 Script Requests

Where do I paste this?
into a new slot below Materials and above Main.
Ruby:
# * KModTimer ACE * #
#   Scripter : Kyonides Arkanthes
#   2023-04-30

class Sprite_Timer
  FONT_NAME = "Arial"
  FONT_SIZE = 32
  # Color Ranges (0..255) [Red, Green, Blue, Alpha]
  FONT_BG_COLOR = [0, 0, 0, 80]
  USE_BG_COLOR = true
  # Available Positions: :left, :center, :right
  POSITION_X = :left
  def create_bitmap
    @bg_color = Color.new(*FONT_BG_COLOR)
    self.bitmap = Bitmap.new(96, 48)
    font_setup
  end

  def font_setup
    font = self.bitmap.font
    font.name = FONT_NAME
    font.size = FONT_SIZE
    font.color.set(255, 255, 255)
  end

  def redraw_backdrop
    bm = self.bitmap
    USE_BG_COLOR ? bm.fill_rect(bm.rect, @bg_color) : bm.clear
  end
 
  def redraw
    redraw_backdrop
    bitmap.draw_text(bitmap.rect, timer_text, 1)
  end

  def update_x
    case POSITION_X
    when :left
      self.x = 0
    when :center
      self.x = (Graphics.width - self.bitmap.width) / 2
    when :right
      self.x = Graphics.width - self.bitmap.width
    end
  end

  def update_position
    update_x
    self.y = 0
    self.z = 200
  end
end
Ahh! Thank you! Where do I paste this?

Original thread: https://forums.rpgmakerweb.com/threads/change-graphic-of-timer.157092/