|
311.
|
|
|
Screen Variants
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1499
|
|
312.
|
|
|
Ren'Py runs both on traditional mouse-oriented devices such as Windows, Mac, and Linux PCs, and newer touch-oriented devices such as Android-based smartphones and tablets. Screen variants allow a game to supply multiple versions of a screen, and use the version that best matches the hardware it is running on.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1501
|
|
313.
|
|
|
Ren'Py chooses a screen variant to use by searching variants in the order they are listed in :var:`config.variants`. The first variant that exists is used.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1507
|
|
314.
|
|
|
If the RENPY_VARIANT environment variable is present, config.variants is initialized by splitting the value of the variable on whitespace, and then appending ``None``. Setting RENPY_VARIANT to a value such as ``"medium tablet touch"`` or ``"small phone touch"`` allows screens intended for Android devices to be tested on a PC.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1511
|
|
315.
|
|
|
If the environment variable is not present, a list of variants is built up automatically, by going through the following list in order and choosing the entries that apply to the current platform.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1517
|
|
316.
|
|
|
``"large"``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1524
|
|
317.
|
|
|
A screen large enough that relatively small text can be comfortably read, and buttons can be easily clicked. This is used for computer screens.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1522
|
|
318.
|
|
|
``"medium"``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1529
|
|
319.
|
|
|
A screen where smallish text can be read, but buttons may need to grow in size so they can be comfortably pressed. This is used for tablets.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1527
|
|
320.
|
|
|
``"small"``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screens.rst:1535
|