Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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 29,733 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 13,106 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 3,943 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 3,922 08-08-2019, 02:53 PM
Last Post: aeliath
   Archived Script Listings DerVVulfman 9 33,687 01-08-2019, 04:27 AM
Last Post: DerVVulfman
   Spritesheet Generator Conversion Script DerVVulfman 0 3,599 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 111,421 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,362 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 10,177 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo
   Character Select Script Selwyn 3 9,505 03-07-2017, 04:14 AM
Last Post: JayRay



Users browsing this thread: