code, howto, Ren'Py

Advanced Ren’Py: Part 6: Textbutton and Imagebutton

1_Logo

Working with Ren’Py:

Advanced Ren’Py:

Ren’Py is a engine for creating visual novels. It comes with a suite of tools for taking code and transforming it into programs that can be run on Windows, Mac, Linux, and even, with a little more work, mobile platforms like Android and iOS.

Beyond the showing of text and images, Ren’Py can also be extended through introducing new user interface elements, changing its defaults images, and combining Python with its own code to create even more interactive projects.


Textbutton

Like a button, a textbutton is a user interface element. Similar to bar and vbar, it also requires setting at least one property (its text) to use it.

Screenshot 2018-07-12 04.06.34

Screenshot 2018-07-12 04.03.44

Imagebutton

Like textbutton, an imagebutton is a type of button, but where its different states (idle, hover, selected, etc) can be set individually.

imagebutton

Through using the auto keyword, sets of similarly-named images can be used based on the names of the properties as they match the different files.

Screenshot 2018-07-12 04.20.47

button_hover
button_hover.png

button_idle
button_idle.png

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s