Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Bolodefchoco
- --26/09/2015
- --[[ Função de argumentos INT,STRING,FLOAT,STRING,INT,INT,INT,INT,BOOLEAN
- booleanU serve para haver ou não sublinhado (Manual)
- ]]--
- add = ui.addTextArea
- ui.smart = function(id,player,alpha,title,text,x,y,w,h,U)
- if id==0 or id==nil then
- id = 1
- end
- if player==nil then
- for n in pairs (tfm.get.room.playerList) do
- n=player
- end
- end
- alpha=alpha or 1
- title=title or ""
- text=text or ""
- x=x or 10
- y=y or 15
- w=w or 100
- h=h or 100
- local u = ""
- if U then
- for i = 0,w/6/2 do
- u = u..'_'
- end
- text = '\n'..text
- end
- add(-id..'0','',player,x+-2,y+18,w+24,h+14,0x2E221B,0x2E221B,alpha,true)
- add(-id..'00','',player,x+-1,y+19,w+22,h+12,0x986742,0x986742,alpha,true)
- add(-id..'000','',player,x+2,y+22,w+16,h+6,0x171311,0x171311,alpha,true)
- add(-id..'0000','',player,x+3,y+23,w+14,h+4,0x0C191C,0x0C191C,alpha,true)
- add(-id..'00000','',player,x+4,y+24,w+12,h+2,0x24474D,0x24474D,alpha,true)
- add(-id..'000000','',player,x+5,y+25,w+10,h+0,0x183337,0x183337,alpha,true)
- add(-id..'0000000',"<p align='center'><font size='15' face='verdana' ><V><b>"..title:upper().."</b></p></font><R>"..u.."<p align='left'><font size='12' /><N>\n"..text,player,x+6,y+26,w+8,h+-2,0x122528,0x122528,alpha,true)
- add(-id..'00000000','',player,x+15,y+h-20+25,w-10,15,0x5D7D90,0x5D7D90,alpha,true)
- add(-id..'000000000','',player,x+15,y+h-20+27,w-10,15,0x11171C,0x11171C,alpha,true)
- add(-id..'0000000000','<p align="center"><a href="event:close_'..id..'"><N>Fechar</a>',player,x+15,y+h-20+26,w-10,15,0x3C5064,0x3C5064,alpha,true)
- end
- function eventTextAreaCallback(i,n,c)
- i = c:sub(7)
- for x = 11,0,-1 do
- i = i..'0'
- ui.removeTextArea(-i,n)
- end
- end
- ui.smart(id,player,alpha,title,text,x,y,w,h,U)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement