Cursor Hand

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
Trafagal
Regular
Posts: 100
Joined: Mon Apr 29, 2019 9:32 am
Contact:

Cursor Hand

#1 Post by Trafagal »

I was searching around and found a Russian Ren'py creator who created this Cursor Hand, which I found it really cool

Just thought that since some of us don't speak Russian(me neither :D), and I hope to give him some exposure here since his work is really useful.

Let me know if this is not appropriate,

Description of the code:
When you hover over the word Finger, the cursor turns into a finger.
When you hover over the word Hand, the cursor turns into a hand.

The end result:
hand.JPG
hand.JPG (11.97 KiB) Viewed 1069 times
You can find the original post here: https://renpyfordummies.blogspot.com/20 ... ost_8.html

The Source image file here: https://yadi.sk/d/9f54K04WpzRSx

Code: Select all

init:
    $ config.mouse = {"default" : [("cursorarrow.png", 0, 0)],
        "hand" : [("images/cursorhand.png", 2, 8)],
        "finger" : [("images/cursorfinger.png", 2, 2)]}

screen Test:
    vbox:
        align (.5, .35)
        textbutton _("Finger"):
            xminimum 300
            mouse "finger"
            action NullAction()
        textbutton _("Hand"):
            xminimum 300
            mouse "hand"
            action NullAction()

label start:
    scene expression "#001"
    show screen Test
    "Example of Cursor hand changing when hovering over a button."
    return
Check out some of my stuffs here:https://linktr.ee/theartofjoshlab

Art Portfolio: https://www.instagram.com/theartofjoshlab/

Working on a personal Visual Novel~

Post Reply

Who is online

Users browsing this forum: No registered users