- Joined
- Jan 9, 2005
- Messages
- 2,132
So I'm not sure why, this doesn't create any floating text:
If I do this, however:
Works like a charm. Ordinarily I'd settle for that, but I'm also using substrings to update the text and changing said text with SetTextTagText is deleting the floating text for some reason. I thought maybe I was using substrings wrong, so I tried
Halp
JASS:
set udg_SP_ChargeFloatText[id2] = CreateTextTag()
call SetTextTagVisibility(udg_SP_ChargeFloatText[id2], true)
call SetTextTagText(udg_SP_ChargeFloatText[id2], "• • • ", 6)
call SetTextTagPos(udg_SP_ChargeFloatText[id2], x, y, 30)
If I do this, however:
set udg_SP_ChargeFloatText[id2] = CreateTextTagUnitBJ( "• • • ", udg_SP_Pyxis[id], -10.00, 6, 100, 100, 100, 0 )
Works like a charm. Ordinarily I'd settle for that, but I'm also using substrings to update the text and changing said text with SetTextTagText is deleting the floating text for some reason. I thought maybe I was using substrings wrong, so I tried
call SetTextTagText(udg_SP_ChargeFloatText[id], "test", 6)
but that still failed.Halp