I changed the dialogue box image and its height and name position and text position in gui.rpy. Everything looks fine when i launch project but when i launch project for andoird phone via renpy launcher emulation, name and text are shown above the dialogue box(see image).
I tried lowering the name and text ypos but it also change in pc version. How can i fix that?
Text and Name Position
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Re: Text and Name Position
Searching screens.rpy for the string "mobile" gives:
and so on. It looks like we can set different variants of styles and screens for different devices.
Searching renpy.org reveals more info on that:
https://www.renpy.org/doc/html/android.html
https://www.renpy.org/doc/html/screens. ... n-variants
Code: Select all
################################################################################
## Mobile Variants
################################################################################
style pref_vbox:
variant "medium"
xsize 675
## Since a mouse may not be present, we replace the quick menu with a version
## that uses fewer and bigger buttons that are easier to touch.
screen quick_menu():
variant "touch"
zorder 100
if quick_menu:
hbox:
style_prefix "quick"
xalign 0.5
yalign 1.0
textbutton _("Back") action Rollback()
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Menu") action ShowMenu()
style window:
variant "small"
background "gui/phone/textbox.png"
Searching renpy.org reveals more info on that:
https://www.renpy.org/doc/html/android.html
https://www.renpy.org/doc/html/screens. ... n-variants
Who is online
Users browsing this forum: No registered users