Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Different orientations on different pages
Started by pabloapdz Jul 09 2018 08:05 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pabloapdz

[GLOBAL: userInfoPane.html]
pabloapdz
  • Contributor

  • 100 posts
  • Corona SDK

 
Good afternoon, I would like to know if a function has already been implemented in the corona that allows me to define different orations for different pages ..
 
For example, the main.lua takes me to the home.lua (and both must have set the orientation to "Portrait." After this, the home.lua has to take me to search.lua in which it has the orientation set to " landscapeLeft ".
 
I tried to support all the orientations but the X and Y of the screen images are disproportionate when I change the orientation, so I believe it is practically impossible to make a page with several orientations and several images ..
 
Thank you


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,118 posts
  • Corona Staff

Corona does not support different orientations on different pages. You can build a page and rotate all of the objects by 90 degrees.

 

Rob


  • pabloapdz likes this

[TOPIC: post.html]
#3

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 6,747 posts
  • Corona SDK

Doing this yourself is pretty straightforward once you have a good set of variables and measures identifying the edges of the screen and screen size.

If you can't work this out, ping me for a level-1 hit and I'll show you an easy-peasy way to do it.

https://forums.coronalabs.com/topic/69420-hire-a-hitman-problem-solver-is-back/
  • pabloapdz likes this

[TOPIC: post.html]
#4

pabloapdz

[GLOBAL: userInfoPane.html]
pabloapdz
  • Contributor

  • 100 posts
  • Corona SDK

Corona does not support different orientations on different pages. You can build a page and rotate all of the objects by 90 degrees.

 

Rob

Aww sad

The only problem of turning all the elements, is that the "bar" of mobile notification, when you pull it down it does not stay in the lying position too.

For example, when the cell phone is in the 180-degree position, the bar would be kept hidden at the top of the 180-degree position, but it stays in the same place as usual (it was confusing but I did not think of any other way to explain it without stay complex)

 

 

Doing this yourself is pretty straightforward once you have a good set of variables and measures identifying the edges of the screen and screen size.

If you can't work this out, ping me for a level-1 hit and I'll show you an easy-peasy way to do it.

https://forums.coronalabs.com/topic/69420-hire-a-hitman-problem-solver-is-back/

 

I found this project very interesting, I did not know .. Congratulations!

Thanks for being available but it is that as I am working for myself, I am out of money for now, but, it is a good discovery for some future case.




[topic_controls]
[/topic_controls]