Save-Point
Draw Text Outline method - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+------ Forum: Code Snippets & Others/Misc (https://www.save-point.org/forum-100.html)
+------ Thread: Draw Text Outline method (/thread-6591.html)



Draw Text Outline method - stupidstormy36 - 03-16-2008

Draw Text Outline method
stupidstormy36
Mar 16 2008

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Again I do not know if someone else did this or not but I will post this anyway!

Place this in a new slot over Main:

Draw Text Outline Method


To call in a window script, use:

draw_text_outline(x, y, width, height, "string", alignment)
self.contents.font.color = normal_color # or your choice of color using Color.new(r,g,b,a)
self.contents.draw_text(x, y, width, height, "string", alignment)

x = x coordinate
y = y coordinate
width = width of text
height = height of text
string = string you're using
alignment = 0 = left 1 = centered 2 = right

You have to do the font color for the original text otherwise it will come out all black!

Hopefully this helps you guys too!

*EDIT* Did this help anyone? Or was it useless. Please reply if you need any help or have any tips.