- Joined
- Apr 9, 2004
- Messages
- 502
Hey all,
These might be things that people have found out but I haven't seen any threads on this so I'm posting it here.
This is all about floating texts and 2 annoyances that I've noticed.
1. Each FT creates a shadow of the ft which can be sort of annoying for some effects like custom textbars or other things. The fix however is easy. Essentially we have to disable permanence, cause the text to go 100% faded and then re-enable permanence. What this does is create a floating text without a "shadow".
2. Weird quirk with spacing using the "|" symbol.
I am not sure why this worked the way it did but for some reason when I created this operator "l" (done by using alt+108) it changes the spacing and from that point the "|" will space differently in the string editor, such that it becomes tighly packed, even moreso than multiple "l" symbols. Why is this important? Because this creates truely seemless "bar" effects that can be adjusted to show a much more realstic bar effect using floating texts.
I have a quick testmap that shows what I'm talking about. You can look at the code and simply try repeating the effect of number (2) without the trick i suggested and you will see the difference, as in the "|" will show like this in the editor "||||||" for multiple instances instead of lllllllllllllllllllllllllll.
I've attached a testmap to showcase this, although I've noticed that this tends to bug out when you have an odd amount of the "|" symbol as this is used for manual text colloration. For some reason odd counts of the symbol do not require the "|r" at the end of the coloration whereas even counts do. I added a quick fix to only count in evens and adjust the count accordingly (usually you have more than 100 of these symbols so the accuracy is still quite high, within 0.5% or so)
In any case, let me know what you think.
Also, an aside but adjusting the text refreshes it and you regain the shadow. I currently haven't found a way around this yet.
Could be useful if you want to have temporary effects show above your hero. Note that there is a cap on floating texts so be weary of that. My recommendation would be something like either a custom cooldown indicator or charging or channeling time indicator for spells with delayed effects. Could be useful to make more realistic bars.
These might be things that people have found out but I haven't seen any threads on this so I'm posting it here.
This is all about floating texts and 2 annoyances that I've noticed.
1. Each FT creates a shadow of the ft which can be sort of annoying for some effects like custom textbars or other things. The fix however is easy. Essentially we have to disable permanence, cause the text to go 100% faded and then re-enable permanence. What this does is create a floating text without a "shadow".
2. Weird quirk with spacing using the "|" symbol.
I am not sure why this worked the way it did but for some reason when I created this operator "l" (done by using alt+108) it changes the spacing and from that point the "|" will space differently in the string editor, such that it becomes tighly packed, even moreso than multiple "l" symbols. Why is this important? Because this creates truely seemless "bar" effects that can be adjusted to show a much more realstic bar effect using floating texts.
I have a quick testmap that shows what I'm talking about. You can look at the code and simply try repeating the effect of number (2) without the trick i suggested and you will see the difference, as in the "|" will show like this in the editor "||||||" for multiple instances instead of lllllllllllllllllllllllllll.
I've attached a testmap to showcase this, although I've noticed that this tends to bug out when you have an odd amount of the "|" symbol as this is used for manual text colloration. For some reason odd counts of the symbol do not require the "|r" at the end of the coloration whereas even counts do. I added a quick fix to only count in evens and adjust the count accordingly (usually you have more than 100 of these symbols so the accuracy is still quite high, within 0.5% or so)
In any case, let me know what you think.
Also, an aside but adjusting the text refreshes it and you regain the shadow. I currently haven't found a way around this yet.
Could be useful if you want to have temporary effects show above your hero. Note that there is a cap on floating texts so be weary of that. My recommendation would be something like either a custom cooldown indicator or charging or channeling time indicator for spells with delayed effects. Could be useful to make more realistic bars.