Page 1 of 1

[Bug + Suggestion] TextLib enhancements

Posted: 14 Mar 2016, 17:25
by reaby
Hi,

First of all the bug: I noticed that TextLib::Split() doesn't work good with utf-8 characters.

I noticed this while I tried to implement removal of links from a Text variable.
So very welcome enhacements would be to have TextLib::StripLinks() and TextLib::StripColors().

And reason to this: We have feature at liverankings widget that you click playernickname to change spectator.
If player nickname has link, this doesn't work.

Thanks,
Reaby

Re: [Bug + Suggestion] TextLib enhancements

Posted: 14 Mar 2016, 17:49
by TheBigG.
Hi,

this feature is really needed because we need it for big events so caster can use the spectator mode more advanced and deliver so a better expierence to the viewers.
So please Nadeo do implement that :yes:

Re: [Bug + Suggestion] TextLib enhancements

Posted: 14 Mar 2016, 17:55
by kripkee
I like this idea :D
pls make this possible :)

Re: [Bug + Suggestion] TextLib enhancements

Posted: 14 Mar 2016, 22:13
by w1lla
Support the idea but for now there are some workarounds

Re: [Bug + Suggestion] TextLib enhancements

Posted: 14 Mar 2016, 23:16
by Dommy
Maybe Page.LinksInhibited is the solution?
But I'm not completely sure if it won't disable links on all interfaces.

Re: [Bug + Suggestion] TextLib enhancements

Posted: 15 Mar 2016, 07:09
by reaby
domino54 wrote:Maybe Page.LinksInhibited is the solution?
But I'm not completely sure if it won't disable links on all interfaces.
Good find, BUTIt disables only the link under line graphics, but the links are still clickable (and thus opens a browser).

Re: [Bug + Suggestion] TextLib enhancements

Posted: 15 Mar 2016, 15:04
by zocka
https://github.com/PRGfx/mQscripts/blob ... t.txt#L333 From a script I wrote almost two years ago :D
Now I would make some things different from then, but you could use that code by changing only two lines that refer to other functions in the file.
The script actually contains some functions, the TextLib didn't contain back then :D

Re: [Bug + Suggestion] TextLib enhancements

Posted: 15 Mar 2016, 15:43
by reaby
zocka wrote:https://github.com/PRGfx/mQscripts/blob ... t.txt#L333 From a script I wrote almost two years ago :D
Now I would make some things different from then, but you could use that code by changing only two lines that refer to other functions in the file.
The script actually contains some functions, the TextLib didn't contain back then :D
Thank you so much!!