Garry's Mod

Garry's Mod

评价数不足
Fancy PrintTable
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 建筑, 快乐
文件大小
发表于
1.275 KB
2 月 20 日 下午 1:32
1 项改动说明 ( 查看 )

订阅以下载
Fancy PrintTable

描述
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.