diff options
| -rw-r--r-- | chat.lua | 3 | ||||
| -rw-r--r-- | main.lua | 2 | ||||
| -rw-r--r-- | notification.lua | 2 | ||||
| -rw-r--r-- | system.lua | 2 | ||||
| -rw-r--r-- | var.lua | 10 |
5 files changed, 17 insertions, 2 deletions
@@ -19,6 +19,7 @@ function drawChat() love.graphics.draw(chat.profile, 6, 30) love.graphics.setColor(colors.font.dark) love.graphics.print(chat.profilename, 50, 41) + love.graphics.setFont(pressstarts) for i=1,chatlimit() do if msg.msgs[i][1] == 1 then love.graphics.setColor(colors.font.friend) @@ -30,6 +31,7 @@ function drawChat() love.graphics.setColor(colors.font.dark) love.graphics.print("\n" .. msg.msgs[i][2], 12, 310 - (28*i)) end + love.graphics.setFont(pressstart) end function updateChat() if msg.new == true then @@ -43,6 +45,7 @@ function sendMessage(id, message) if win[1].ex == true or layer[1] ~= 1 then notifyNow("CHAT NOTIFICATION", "New message from\nBest Friend:\n\n" .. message) end + msg.c = msg.c + 1 end function chatlimit() if #msg.msgs <=8 then @@ -20,6 +20,8 @@ function love.load() love.graphics.setNewFont() pressstart = love.graphics.newFont("fonts/pressstart.ttf", 12) pressstart:setFilter("nearest", "nearest") + pressstarts = love.graphics.newFont("fonts/pressstart.ttf", 10) + pressstarts:setFilter("nearest", "nearest") love.graphics.setFont(pressstart) loadAssets() loadVar() diff --git a/notification.lua b/notification.lua index 1a42aa2..b350f5f 100644 --- a/notification.lua +++ b/notification.lua @@ -4,7 +4,7 @@ function drawNoti() love.graphics.draw(notification.bubble, notify.x, notify.y) love.graphics.setColor(colors.font.dark, notify.op) love.graphics.print(notify.title, notify.x+10, notify.y+10) - love.graphics.print(notify.body, notify.x+10, notify.y+30) + love.graphics.printf(notify.body, notify.x+10, notify.y+30, 200) if notify.sound == true then notification.sound1:play() notify.sound = false @@ -20,7 +20,7 @@ function drawSystem() start.o = false elseif start.o == false then start.o = true - sendMessage(1, "HEY WAZZUP FOOL") + sendMessage(1, msgs[msg.c]) end end if start.o == true and sys.mouse.p.p == true and sys.mouse.p.x > 255 or sys.mouse.p.y < sys.h-380 then @@ -103,5 +103,15 @@ function loadVar() notify.timer = 0 msg = {} msg.new = false + msg.c = 1 msg.msgs = {} + msgs = {} + msgs[1] = "Hey, Wazzup?" + msgs[2] = "Did you hear the news?" + msgs[3] = "New Duty of Call game!" + msgs[4] = "It looks so cool!" + msgs[5] = "Check it out!" + msgs[6] = "Want to get it free?" + msgs[7] = "Search this on the web:" + msgs[8] = "www.freedownloads.com" end |
