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 ?
 
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
 
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.
 
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
 
> 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
 
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 ?
 
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.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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