Garry's Mod

Garry's Mod

Not enough ratings
Fancy PrintTable
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Build, Fun
File Size
Posted
1.275 KB
20 Feb @ 1:32pm
1 Change Note ( view )

Subscribe to download
Fancy PrintTable

Description
No one asked for this, yet here i am!
I rewrited the function PrintTable() in a clientside a bit, so it now has 4 arguments instead of 3.
The serverside one will still have a single blue color to differentiate them.

PrintTable( table tableToPrint, number indent = 0, table done = {}, number color = 31 )

Color is number because it uses HSVToColor.
Initial color is yellow, just like other clientside prints.
The color of each sub-table differs from the color of its parent by 7.
I'm also made it so color cant be dark-blue or purple for visibility purposes.

Please note that this addon does not change the font size. I just find it more convenient.