This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.


SoftKeyboard

Softkeyboard_en.jpg

The soft keyboard engine provides a software keyboard allows the user to input text by clicking on the keys displayed on the screen. The framework supports input of the alphabet, special characters, symbols, and even characters from other languages (as long as the font allows for it) into any Ren'Py game.

SoftKeyboard can be downloaded from the frameworks page.

Installation

Unzip the framework archive and copy the contents into your Ren'Py game folder.

To use the software keyboard, you need to call the input screen:

call screen input_softkeyboard

Archive contents

Multilingual support

Softkeyboard_jp.jpg

By default SoftKeyboard supports both English and Japanese. The language files are contained in the lang folder and are based on the Multiple Language Support Cookbook entry.

Switching between languages

The easiest way to give the user the option to choose the language they want to play the game in is to add the following code to the main menu screen:

textbutton _("Language") action ShowMenu("language_picker")

Forcing only one language

If you wish to force only one language, open lang/language.rpy and find:

init -101 python:
    if persistent.lang is None:
        persistent.lang = DEFAULT_LANG
        persistent.chose_lang = False    
    lang = persistent.lang  

Change persistent.chose_lang = False to persistent.chose_lang = True.

For non-English games, open lang/defaults.rpy and change DEFAULT_LANG to the appropriate language.

Note: If you set the default language to anything other than "en" or "jp" you will need to create and add the appropriate language file in the softkeyboard folder!

SoftKeyboard