summaryrefslogtreecommitdiffstats
path: root/nodes/newdash.lua
diff options
context:
space:
mode:
authorBartłomiej Wąs <b.was@infbud.pl>2017-01-23 23:21:46 +0100
committerBartłomiej Wąs <b.was@infbud.pl>2017-01-23 23:21:46 +0100
commit615c9e5dee7edc3329d4fd6043fbacb429c26d04 (patch)
treee58c75370f1d335fc6f40dcaaaa36553d7f1a49a /nodes/newdash.lua
parentbe0408f78fedfee780172e92dcf3561ce99c3e1f (diff)
downloadlove2d-signage-615c9e5dee7edc3329d4fd6043fbacb429c26d04.tar.gz
love2d-signage-615c9e5dee7edc3329d4fd6043fbacb429c26d04.tar.bz2
love2d-signage-615c9e5dee7edc3329d4fd6043fbacb429c26d04.tar.xz
love2d-signage-615c9e5dee7edc3329d4fd6043fbacb429c26d04.zip
Unused code cleanup. Fixed slideshow config param.
Diffstat (limited to 'nodes/newdash.lua')
-rw-r--r--nodes/newdash.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/nodes/newdash.lua b/nodes/newdash.lua
index 4a68a25..37c7a1e 100644
--- a/nodes/newdash.lua
+++ b/nodes/newdash.lua
@@ -9,13 +9,10 @@ local weatherFont = love.graphics.newFont('fonts/weathericons-regular-webfont.tt
local tempFont = love.graphics.newFont('fonts/Lato-Light.ttf', 120)
local timeFont = love.graphics.newFont('fonts/Lato-Thin.ttf', 330)
local dateFont = love.graphics.newFont('fonts/Lato-Light.ttf', 90)
-
local headerFont = love.graphics.newFont('fonts/Lato-Regular.ttf', 40)
local valueFont = love.graphics.newFont('fonts/Lato-Light.ttf', 45)
local atFont = love.graphics.newFont('fonts/Lato-Light.ttf', 35)
-local textFont = love.graphics.newFont('fonts/Lato-Thin.ttf', 300)
-local smallFont = love.graphics.newFont('fonts/Lato-Light.ttf', 30)
local weatherGlyphs = {
snow = "",
@@ -26,15 +23,10 @@ local weatherGlyphs = {
drizzle = "",
}
-local mockup = love.graphics.newImage("memes/new-dash-mockup.svg.png")
-
function node:render()
love.graphics.setColor( 0, 0, 0 )
love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight())
- --love.graphics.setColor(255, 255, 255, 100)
- --love.graphics.draw(mockup, 0, 0)
-
if self.state then
love.graphics.setColor( 255, 255, 255 )
@@ -42,7 +34,7 @@ function node:render()
love.graphics.setFont(weatherFont)
love.graphics.print(weatherGlyphs[self.state.weather], 100, 340)
else
- love.graphics.setFont(smallFont)
+ love.graphics.setFont(atFont)
love.graphics.print(self.state.weather, 100, 370)
end
@@ -62,7 +54,7 @@ function node:render()
end
love.graphics.printf("ON or OFF?", 900, 438, 400, 'left')
love.graphics.printf("ON or OFF?", 900, 498, 400, 'left')
- --love.graphics.setFont(smallFont)
+ --love.graphics.setFont(atFont)
--love.graphics.printf(os.date("Last update: %Y/%m/%d %H:%M", self.state.lastUpdate), 0, love.graphics.getHeight() - 60, love.graphics.getWidth(), 'center')
--if self.state.insideTemperature then
-- love.graphics.printf("Room: " .. tostring(self.state.insideTemperature) .. "° / " .. tostring(self.state.insideHumidity) .. "%RH", 0, love.graphics.getHeight() - 100, love.graphics.getWidth(), 'center')