03-16-2008, 01:00 PM
Draw Text Outline method
stupidstormy36
Mar 16 2008
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:
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.
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.
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.