- Joined
- May 24, 2016
- Messages
- 339
Hello.
Sometimes texttags do not appear in my map
The script is pretty simple
Sometimes texttags do not appear in my map
The script is pretty simple
JASS:
function TextTagSize2HeightJ takes real size returns real
return size * 0.023 / 10
endfunction
function SetTextTagTextJ takes texttag tt, string s, real size returns nothing
local real textHeight = TextTagSize2HeightJ(size)
call SetTextTagText(tt, s, textHeight)
endfunction
function texttagcreate takes nothing returns nothing
local texttag TX
local string S
set S = ""
if IsPlayerInForce(GetLocalPlayer(),UndeadForce)
set S = "-> Teleportation" //|c00FBE14F-
endif
set TX = CreateTextTag()
call SetTextTagColor(TX, 250, 94, 250, 250) //250
call SetTextTagTextJ(TX, S, 13 ) //14 05
call SetTextTagPos(TX, 12900, 10000, 10)
set TX = null
endfunction
Last edited: