mirror of https://github.com/axmolengine/axmol.git
fix: Make Close Menu invisible for iOS platform
This commit is contained in:
parent
5c3069b4ec
commit
a05d6a55e2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue