Ren'Py Where are mobile settings?

DarkLoki

Member
Game Developer
Oct 25, 2018
470
729
Sorry to have to ask and thank you in advance. I have been asked many times for a mobile version of my game and have successfully produced one EXCEPT the menu choice options in the game appear with a BLACK background when in the PC version (haven't tested on MAC) is WHITE. I know I've run across the mobile settings somewhere in some game code, but can't find it now that I need it. All Google results just say how to configure the SDK on android, not what I'm looking for. Any suggestions what to search for in my code? Again, Thanx in advance.
 

Turning Tricks

Rendering Fantasies
Game Developer
Apr 9, 2022
1,519
2,807
There's sections for Mobile devices in both your original screens.rpy and the gui.rpy files.

I think there's other mobile config variables scattered around as well, but basically anything to do with them are labeled "mobile" somewhere in their name. Do a word search for our project to find them.

Look in your screens.rpy and find the "Mobile Variants" section. I saw some textbox settings there for "small" - ie: phone.
 

peterppp

Erect Member
Donor
Mar 5, 2020
909
1,732
there are several "variants" that can be used for mobile, like mobile, small, touch, depending on the purpose
 

DarkLoki

Member
Game Developer
Oct 25, 2018
470
729
there are several "variants" that can be used for mobile, like mobile, small, touch, depending on the purpose
Thank you for the reply. I have searched the entire codebase for "android", "ios", "mobile" and "tablet", not case sensitive with no results for any of them. Am I searching for the wrong terms?
 

peterppp

Erect Member
Donor
Mar 5, 2020
909
1,732
Thank you for the reply. I have searched the entire codebase for "android", "ios", "mobile" and "tablet", not case sensitive with no results for any of them. Am I searching for the wrong terms?
as turning tricks said, there is a mobile section in game/screens.rpy called "mobile variants". other than that, i'm not the person to ask.
 
  • Like
Reactions: anne O'nymous