Advertisement
KananGamer

[TFM-LUA] AddTextArea Modified

Jul 26th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. --[[
  2.     { AddTextAreaModified } Created By: Nettoork#0000
  3.     - SYNTAX
  4.         ui.addTextArea(config)
  5.             or
  6.         ui.addTextArea({config}, {config}, {config})
  7.     { EXAMPLES }
  8.         ui.addTextArea(
  9.             {1, '', nil, 5, 26, 100, 100, 1, 1, 1, true},
  10.             {2, '', nil, 305, 26, 100, 100, 1, 1, 1, true}
  11.         )
  12.         ui.addTextArea(3, '', nil, 605, 26, 100, 100, 1, 1, 1, true)
  13. ]]--
  14.  
  15. do
  16.     local addTextArea = ui.addTextArea
  17.     ui.addTextArea = function(...)
  18.         local info = {...}
  19.         if type(info[1]) == 'table' then
  20.             for i, v in next, info do
  21.                 if type(v) == 'table' then
  22.                     addTextArea(v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11])
  23.                 end
  24.             end
  25.         else
  26.             addTextArea(...)
  27.         end
  28.     end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement