Mac's Border/Outline Script
#1
Macs Border/Outline Script


Introduction
What this script does is rather simple, its creates a nice little outline around your original text, to get this to work on your chosen text replace you
Code:
draw_text
with
Code:
draw_text_border
and then you should have yourself a nice little outline.

Script
Add me above Main Winking
Code:
#==============================================================================
#  Border Text Script by Mac
#------------------------------------------------------------------------------
#  This script allows the addon of outlines to your text.
#==============================================================================
class Bitmap
  #--------------------------------------------------------------------------
  # * Draw Text Border
  #     x        : draw spot x-coordinate
  #     y        : draw spot y-coordinate
  #     width    : draw width
  #     height   : draw height
  #     text     : draw text
  #     allign   : draw allignment
  #--------------------------------------------------------------------------
  def draw_text_border(x,y,width,height,text,align=0)
    store_color = Color.new(self.font.color.red,self.font.color.green,self.font.color.blue,self.font.color.alpha)
   #--------------------------------------------------------------------------  
   #  The line: self.font.color = Color.new(0,0,0,self.font.color.alpha)
   #  defines the border colour e.g 0,0,0 being black, 255,255,255 being
   #  white etc
   #--------------------------------------------------------------------------
    self.font.color = Color.new(0,0,0,self.font.color.alpha)
    draw_text(x-1,y-1,width,height,text,align)
    draw_text(x-1,y+1,width,height,text,align)
    draw_text(x+1,y-1,width,height,text,align)
    draw_text(x+1,y+1,width,height,text,align)
    self.font.color = store_color
    draw_text(x,y,width,height,text,align)
  end
end
Authors Notes
I know this isn't exactly a great script its just a little addon i was making.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Text Scroll Script - Enhanced DerVVulfman 23 34,356 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 15,392 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 4,780 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 4,717 08-08-2019, 02:53 PM
Last Post: aeliath
   Spritesheet Generator Conversion Script DerVVulfman 0 4,261 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 125,601 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,974 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 11,292 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo
   Character Select Script Selwyn 3 10,748 03-07-2017, 04:14 AM
Last Post: JayRay
   ELSA (Event Layering Script Advance) JayRay 0 6,022 02-25-2015, 04:15 AM
Last Post: JayRay



Users browsing this thread: 1 Guest(s)