Goal of this project is to provide a replacement for Garry's Mod RichText vgui panel which supports more scriptability and non-text elements (images etc.).
Final goal is to make it possible to only change vgui.Create("RichText") to vgui.Create("DFancyText") without editing anything else.
A quick how-to use can be found on the wiki.
From the gmod wiki (strike means not implemented yet, italic means partially/not as RichText):
- AppendText
GetNumLines- GotoTextEnd seems to require more calls than RichText
GotoTextStartInsertClickableTextEndInsertClickableTextStart- InsertColorChange
InsertFadeResetAllFades- SetFontInternal overrideable
SetToFullHeight- SetVerticalScrollbarEnabled (resets scroll)
Additionally fancytext also supports following functions
- AppendImage {w, h, mat}
- InsertFontChange fontname SetFontInternal uses this function, you can change font at any time
- AppendFunc fn(h) -> {w, h, panel}
Full documentation to-be-made.
Contents of this repository is licensed under GNU Lesser General Public License v3 (tl;dr). You are allowed to use and include it in code using other licenses, commercial and free, but fancytext itself must remain under LGPL and any changes done to fancytext must be made public under LGPL.