[Bug + Suggestion] TextLib enhancements

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

[Bug + Suggestion] TextLib enhancements

Post 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
TheBigG.
Posts: 401
Joined: 11 Jun 2011, 16:11

Re: [Bug + Suggestion] TextLib enhancements

Post 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:
Client:
OS: Win10/Debian CPU: Intel 9900k GPU: NVIDIA 1080TI Display: 3x Acer Predator XB271HUbmiprz 1440p@165 Hz

Server:
OS: Debian Stable @ Backports Kernel CPU: Intel 6700k RAM: 32 GB Storage: 2x 256 GB NVMe SSD@Raid 1
User avatar
kripkee
Posts: 920
Joined: 21 Jun 2010, 14:04

Re: [Bug + Suggestion] TextLib enhancements

Post by kripkee »

I like this idea :D
pls make this possible :)
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Bug + Suggestion] TextLib enhancements

Post by w1lla »

Support the idea but for now there are some workarounds
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: [Bug + Suggestion] TextLib enhancements

Post by Dommy »

Maybe Page.LinksInhibited is the solution?
But I'm not completely sure if it won't disable links on all interfaces.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [Bug + Suggestion] TextLib enhancements

Post 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).
zocka
Posts: 205
Joined: 15 Jun 2010, 17:56

Re: [Bug + Suggestion] TextLib enhancements

Post 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
manialink minigame shatter
my manialink: zockaml
my maniaflash: maniaflash?zocka
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [Bug + Suggestion] TextLib enhancements

Post 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!!
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 2 guests