Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color = {}
- width = {}
- height = {}
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- color[name] = 1
- width[name] = 6
- height[name] = 6
- end
- -- Black = 0x000000
- -- Green = 0x43eb00
- -- Blue = 0x0000ff
- -- ui.showColorPicker
- id = 0
- function eventMouse(n, x, y)
- id = id + 1
- ui.addTextArea(id, "", nil, x, y, width[n], height[n], color[n], color[n]+0.5, 1, false)
- end
- function eventChatCommand(n,cmd)
- if cmd == "clear" then
- for i=1,id do
- ui.removeTextArea(i)
- end
- id=1
- end
- if cmd == "color" then
- ui.showColorPicker(1,n,0,"Select Color")
- end
- if cmd == "x" then
- ui.addTextArea(-5, "<p align='right'><font size='18'><font color='#c6154d'><a href='event:closew'>X</a>\n<p align='center'><font size='18'><font color='#6683ba'>الحجم\n<p align='center'><font size='18'><font color='#1ca8af'><a href='event:+w'>+\n<p align='center'><font size='18'><font color='#1ca8af'><a href='event:-w'>-\n", n, 348, 139, 111, 108, 0x324650, 0x000000, 1, true)
- end
- if cmd == "y" then
- ui.addTextArea(-6, "<p align='right'><font size='18'><font color='#c6154d'><a href='event:closeh'>X</a>\n<p align='center'><font size='18'><font color='#6683ba'>الحجم\n<p align='center'><font size='18'><font color='#1ca8af'><a href='event:+h'>+\n<p align='center'><font size='18'><font color='#1ca8af'><a href='event:-h'>-\n", n, 348, 139, 111, 108, 0x324650, 0x000000, 1, true)
- end
- end
- function eventColorPicked(id, name, colorr)
- color[name] = colorr
- end
- function eventTextAreaCallback(id,name,callback)
- if callback == "closew" then
- ui.removeTextArea(-5,name)
- end
- if callback == "closeh" then
- ui.removeTextArea(-6,name)
- end
- if callback == "+w" then
- if width[name] < 100 then
- width[name] = width[name] + 1
- end
- end
- if callback == "-w" then
- if width[name] > 0 then
- width[name] = width[name] - 1
- end
- end
- if callback == "+h" then
- if height[name] < 100 then
- height[name] = height[name] + 1
- end
- end
- if callback == "-h" then
- if height[name] > 0 then
- height[name] = height[name] - 1
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement