fix: Make Close Menu invisible for iOS platform

This commit is contained in:
samuele3hu 2014-03-14 17:38:58 +08:00
parent 5c3069b4ec
commit a05d6a55e2
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ function CreateTestMenu()
CloseMenu:setPosition(0, 0) CloseMenu:setPosition(0, 0)
CloseMenu:addChild(CloseItem) CloseMenu:addChild(CloseItem)
menuLayer:addChild(CloseMenu) 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 -- add menu items for tests
local MainMenu = cc.Menu:create() local MainMenu = cc.Menu:create()