mob/var/TxtSpd = 0.32
var/list/font_resources = list('final_fantasy_36_font.ttf')
/HUD/Text
icon='hud_font.dmi'
parent_type = /obj
screen_loc = "1:7,4:5"
layer = 1000
alpha=200
proc/Text(mob/M,var/Text="")
var/Blank = " "
for(var/HUD/Text/Te in M.client.screen)
Te.maptext = ""
del(Te)
var/HUD/Text/T = new;M.client.screen.Add(T)
T.maptext_width = length(Text) / length(Text)*249
T.maptext_height = length(Text) / length(Text)*40
while(length(Blank)-2<length(Text)+1)
sleep(M.TxtSpd)
Blank = addtext(Blank,"[getCharacter(Text,length(Blank))]")
T.maptext = "<font face=\"Final Fantasy 3/6 Font\"><font size=3>[Blank]"
if(length(Blank)>=length(Text))
break
proc
getCharacter(string, pos=1)
return ascii2text(text2ascii(string, pos))
Problem description: I'm trying to find a way to draw text downward rather than upward.
I'm using Kidpaddle45's On-screen text lib, and I see it's using the built in maptext function to draw the text on screen. I don't know if this is a result of his lib or if BYOND's maptext by default draws upward. Is there a way to reverse which direction it draws the text vertically?