garrysmod
garrysmod copied to clipboard
Add draw.MultiColorText()
pairs?
{...} appears twice???
What? What do you mean?
You pack the table ({...}) twice instead of caching it, and you use pairs instead of ipairs.
There is also a markup library that does the same, maybe not with best perfomance, but still
@GitSparTV @Kefta Thanks for helping me with optimizing it, I'm not nearly as experienced at that as I should be.
Why does it still say changes requested? I already resolved them....
Why does it still say changes requested?
It's probably GitHub just acting up :P It can still be merged by anyone with write access so no need to worry.
Oh I got write perms to the repo and I didn't "approve" the changes, so it was still flagged as needing changes.
Seems ok now.
Last thing, edit your draw.lua file and test your function if it works. Because this is a module and some functions may not be localized before module call
We already have a more flexible solution to this problem: https://wiki.facepunch.com/gmod/markup.Parse