Content Scaling vs new layout?

Hi all,

First of all apologise if this topic it’s not in the correct subforum, I think this is the one but might be wrong.

I have a couple of apps in development, both work great with iPhone and Android and with content scaling, but my customer is asking for a different layout if the device is a tablet.

So my question is if there is a way to open a different project folder (or individual files) depending on the device, same way we define the letterboxing and sizes in config.lua, maybe I can use some sort of filtering in main.lua to redirect storyboard to use files on one folder or another depending on the device.

Is this possible or I have to create a new project for iPad, etc…

I am thinking of a folder structure like this, for instance:

->project
–main.lua
–config.lua
–build.settings
–>images
–>sounds
–>smartphone
—smartphone.lua
—other lua files
–>tablet
—tablet.lua
—other lua files

Thanks in advance. [import]uid: 168845 topic_id: 32229 reply_id: 332229[/import]

got it looks like the same if statement in config.lua works in main.lua so I can do:

[lua]if system.getInfo(“model”) == “iPad” then
storyboard.gotoScene( “tablet-homepage”, “fade”, 100);
end[/lua] [import]uid: 168845 topic_id: 32229 reply_id: 128301[/import]

got it looks like the same if statement in config.lua works in main.lua so I can do:

[lua]if system.getInfo(“model”) == “iPad” then
storyboard.gotoScene( “tablet-homepage”, “fade”, 100);
end[/lua] [import]uid: 168845 topic_id: 32229 reply_id: 128301[/import]