Text and Name Position

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
red-NINE
Newbie
Posts: 13
Joined: Thu Jun 24, 2021 12:54 am
Contact:

Text and Name Position

#1 Post by red-NINE »

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).
Image
I tried lowering the name and text ypos but it also change in pc version. How can i fix that?

jeffster
Veteran
Posts: 409
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Text and Name Position

#2 Post by jeffster »

Searching screens.rpy for the string "mobile" gives:

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"
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

Post Reply

Who is online

Users browsing this forum: No registered users