Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- roles={"bomber","protector"}
- data={}
- text={}
- lang={}
- lang.en={
- menu="Menu",
- profile2="Profile",
- help2="Help",
- help="To be edited..."
- }
- function setLang(n)
- text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
- end
- function setData(n)
- data[n]={
- }
- end
- function showMenu(n)
- ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:menu2'>"..text[n].menu, n, 10, 30, 42, 20, 0x000001, 0xFFFFFF, 1, true)
- end
- function showMenu2(n)
- ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:Menu'>"..text[n].menu.." </a>| <a href='event:Help'>"..text[n].help2.."</a> | <a href='event:Profile'>"..text[n].profile2, n, 10, 30, 121, 20, 0x000001, 0xffffff, 1, true)
- end
- function displayTab(n,info,subject)
- ui.addTextArea(2, "", n, 262, 72, 360, 290, 0x331f15, 0x331f15, 1, true)
- ui.addTextArea(3, "", n, 262, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
- ui.addTextArea(5, "", n, 295, 72, 290, 4, 0x6b4231, 0x6b4231, 1, true)
- ui.addTextArea(4, "", n, 618, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
- ui.addTextArea(6, "", n, 295, 358, 295, 4, 0x6b4231, 0x6b4231, 1, true)
- ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>#BOMBDELIVER - "..subject.."</b></font></font><font size='14'>\n\n"..info, n, 272, 80, 342, 270, 0x1b262b, 0x131c21, 1, true)
- ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>Close</a></font>", n, 273, 330, 339, 20, 0x324650, 0x324650, 1, true)
- end
- function close(n)
- for i=1,7 do
- ui.removeTextArea(i,n)
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- setLang(n)
- setData(n)
- showMenu(n)
- end
- function eventTextAreaCallback(txt, n, a)
- if a=="Menu" then
- showMenu(n)
- elseif a=="menu2" then
- showMenu2(n)
- elseif a=="Help" then
- subject=text[n].help2
- info=text[n].help
- displayTab(n,info,subject)
- elseif a=="close" then
- close(n)
- end
- end
Add Comment
Please, Sign In to add comment