From ed364476d30a0bd189ff7ecc728a6ad63259777e Mon Sep 17 00:00:00 2001 From: Arnold <397136899@qq.com> Date: Thu, 6 Jun 2019 16:11:20 +0800 Subject: [PATCH] fix label --- tests/lua-tests/src/LuaLoaderTest/LuaLoaderTest.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lua-tests/src/LuaLoaderTest/LuaLoaderTest.lua b/tests/lua-tests/src/LuaLoaderTest/LuaLoaderTest.lua index 3e28cbee29..c05de007d7 100644 --- a/tests/lua-tests/src/LuaLoaderTest/LuaLoaderTest.lua +++ b/tests/lua-tests/src/LuaLoaderTest/LuaLoaderTest.lua @@ -26,7 +26,7 @@ local function TestNode() result[#result+1] = 'Loading by path "'..tab[1]..'", filename "'..tab[2]..'": '..(ok and 'success' or 'failure') package.path = oldPath end - local label = cc.LabelTTF:create(table.concat(result, '\n'), "Marker Felt", 10) + local label = cc.Label:createWithTTF(table.concat(result, '\n'), "fonts/Marker Felt.ttf", 10) node:addChild(label, 1) label:setAnchorPoint(cc.p(0.5, 0.5)) label:setPosition(VisibleRect:center())