Herover / fancytext

Replacement for Garry's Mod RichText vgui panel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There is no way to be able to select text like with RichText

MyDimeIsUp opened this issue · comments

Title says it all. You can select portions of RichText, right click and copy. You are unable to do this with DFancyText due to its use of DLabels.

Hi, thanks for pointing this out. I experimented with some ways to compute where someone pressed/released a mouse button but I won't work on it since I don't play Garrys Mod anymore.

If you want to have a go at it, then an idea that worked alright was to make a new invisible label with the same font, text-size etc., and add text from the element clicked on until it's long enough to reach the point the user clicked on, and then find other ways to handle elements that are not labels.

I hope you find something that works for you.