diff options
| author | 1029chris <1029chris@gmail.com> | 2016-03-08 14:47:44 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-03-08 14:47:44 -0800 |
| commit | 414afd442a21455027f052e5cc849091d60a777d (patch) | |
| tree | 007826967e2a2c0b80a576f3185f9b992cd14d5b /chat.lua | |
| parent | 5d8f2d1bf5bfdf69ee6218aaddb19ffef8d18005 (diff) | |
Starting to implement chat.
Diffstat (limited to 'chat.lua')
| -rw-r--r-- | chat.lua | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -19,4 +19,22 @@ function drawChat() love.graphics.draw(chat.profile, 6, 30) love.graphics.setColor(colors.font.dark) love.graphics.print(chat.profilename, 50, 41) + love.graphics.setColor(colors.font.friend) + if #msg.msgs <= 15 then + for i=1,#msg.msgs do + love.graphics.print("Friend: " .. msg.msgs[i], 12, 310 - (15*i)) + end + elseif #msg.msgs >= 15 then + for i=1,15 do + love.graphics.print("Friend: " .. msg.msgs[i], 12, 310 - (15*i)) + end + end +end +function updateChat() + if msg.new == true then + win[1].update = true + msg.new = false + end +end +function sendMessage(message) end |
