Skip to content

Commit a05d6a5

Browse files
committed
fix: Make Close Menu invisible for iOS platform
1 parent 5c3069b commit a05d6a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/lua-tests/src/mainMenu.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ function CreateTestMenu()
149149
CloseMenu:setPosition(0, 0)
150150
CloseMenu:addChild(CloseItem)
151151
menuLayer:addChild(CloseMenu)
152+
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
153+
if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) then
154+
CloseMenu:setVisible(false)
155+
end
152156

153157
-- add menu items for tests
154158
local MainMenu = cc.Menu:create()

0 commit comments

Comments
 (0)