Floating Texts

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
My Permanent Floating Texts sometimes disappear, the var i set for it still " != null ", what is that problem ? how can i fix that ?
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
Yes, but i can't use all of them (i don't know why) so i write like this:
JASS:
function NewCreateTextTagLoc takes string msg, real xloc, real yloc, real size returns texttag
    local texttag tt
    local location tl = Location( xloc,yloc)
    call CreateTextTagLocBJ( msg, tl, 10, size, 100, 100, 100, 0 )
    call RemoveLocation(tl)
    set tt = GetLastCreatedTextTag()
    call SetTextTagVelocityBJ( tt, 0, 0 )
    call SetTextTagPermanent( tt, true)
    call SetTextTagVisibility(tt,true)   
    return tt
endfunction

please help me
 

PurgeandFire

zxcvmkgdfg
Reaction score
508
No, I meant you shouldn't use them... :p Unless for visibility, it is set to true.

That's odd how it disappears. Is it created inside a condition block? I can't seem to find what the problem is.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
There is no condition block, but when i create about 10 floating texts, i can't see some of them althought i have "call SetTextTagVisibility(tt,true)". I don't know why.
And will this make them disappear: (I think not)
JASS:
call SetTextTagTextBJ( tt,msg,size ) //msg != "" , size = 10
 

Sooda

Diversity enchants
Reaction score
318
> I don't know why.

There is limit of 100 text tags. If you want to create 101th it will replace 1st text tag created with your new text tag.
If text size is 10. it could maybe hide some other text tags what are behind that text tag, but I' m not sure.

> And will this make them disappear: (I think not)
JASS:
call DestroyTextTag(whichTextTag)
set whichTextTag = null

Where 'whichTextTag' is texttag variable.

Are you really sure these text tags dosn' t equal to null ?

Better:
JASS:
function NewCreateTextTagLoc takes string msg, real xloc, real yloc, real size returns texttag
    local texttag tt
    local location tl = Location( xloc,yloc)
    set tt = CreateTextTagLocBJ( msg, tl, 10, size, 100, 100, 100, 0 )
    call RemoveLocation(tl)
    call SetTextTagVelocityBJ( tt, 0, 0 )
    call SetTextTagPermanent( tt, true)
    call SetTextTagVisibility(tt,true)   
    return tt
endfunction
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
I do some debug and i find this:
when i create a floating text, coordinate x = -1450 and y =-1750, the message display is -1450 and -1750
then I store x and y (to review at another time), when i get x, y the message display is -2350 and -1750 => my floating text is not in its position => and i can't see them (i said that it disappears, sorry) but what is wrong ?
 

kallieblakie

New Member
Reaction score
5
How do you null floating texts? I have the same problem. Initially texts can be displayed a few at at time. After a while, the floating texts replaces each other. Meaning, only one can be displayed at a time. How do i solve this?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top