Page 1 of 1

Cursor Hand

Posted: Mon Sep 06, 2021 8:12 pm
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 1420 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