Herover / fancytext

Replacement for Garry's Mod RichText vgui panel
GNU Lesser General Public License v3.0
1 stars 2 forks source link

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

Open MyDimeIsUp opened 3 years ago

MyDimeIsUp commented 3 years ago

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.

Herover commented 3 years ago

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.