From a05d6a55e25238d091debff194f79b4ab300158f Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Fri, 14 Mar 2014 17:38:58 +0800 Subject: [PATCH] fix: Make Close Menu invisible for iOS platform --- tests/lua-tests/src/mainMenu.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lua-tests/src/mainMenu.lua b/tests/lua-tests/src/mainMenu.lua index 8afcc3bcda..77336f3475 100644 --- a/tests/lua-tests/src/mainMenu.lua +++ b/tests/lua-tests/src/mainMenu.lua @@ -149,6 +149,10 @@ function CreateTestMenu() CloseMenu:setPosition(0, 0) CloseMenu:addChild(CloseItem) menuLayer:addChild(CloseMenu) + local targetPlatform = cc.Application:getInstance():getTargetPlatform() + if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) then + CloseMenu:setVisible(false) + end -- add menu items for tests local MainMenu = cc.Menu:create()