fixed data refstuff in demo

This commit is contained in:
Paul Liverman III 2016-05-01 01:58:03 -07:00
parent bd158e0099
commit 01d2b0d171

View File

@ -12,7 +12,7 @@ function love.load()
w2:move(-50, 80) w2:move(-50, 80)
w2:setHeight(500) w2:setHeight(500)
w2:move(0, -175) w2:move(0, -175)
w2.title:align("center") w2.data.title:align("center")
w2:position(0, 0) w2:position(0, 0)
w2:size(200, 120):position(90, 70) w2:size(200, 120):position(90, 70)
w2:setClose(false) w2:setClose(false)
@ -57,7 +57,7 @@ function love.keypressed(key)
if (key == "w") and (not handled) then if (key == "w") and (not handled) then
local w = pop.window() local w = pop.window()
w.title:align("center") w.data.title:align("center")
end end
if (key == "p") and (not handled) then if (key == "p") and (not handled) then