Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init python:
- # функция для смены курсора
- # курсоры должны лежать в папке images
- # формат имен фалов для курсоров:
- # 'images/cursor_ИмяКурсора.png'
- def cursor(name = None):
- if name:
- config.mouse = {'default' : [('images/cursor_' + name + '.png', 0, 0)]}
- else:
- config.mouse = None
- # превращаем функцию в action,
- # чтобы можно было привязать, например, к нажатию кнопок:
- # action Cursor("finger")
- Cursor = renpy.curry(cursor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement