Ren'Py #24 Adding Icons to our map screen
Вставка
- Опубліковано 11 лис 2024
- Don't forget to subscribe for more content.
In this short video we look at how to replace the text on our map screen with Icons
****************** Links ********************
Twitter:
/ thundorngames
Download Ren'Py: www.renpy.org
Download Atom code editor: atom.io/
Visit the lemmasoft Forums: lemmasoft.rena...
Find out more at:
www.thundorn.com
a true sign that you're teaching me stuff is things like me picking up on your typo and changing mine ahead of you (icon/icons in this instance) - thanks for being a great teacher :)
I'm glad you're enjoying them mate :)
These videos are really great and useful and could have really helped me out when I was trying to learn how to make a sand box game in renpy. You really need to use better titles like adding "renpy" or "Visual Novel" or "Sand box" or even "Tutorial". I never would have found these if I didn't go snooping around in your channel after watching your daz videos.
Glad I could help!
what does @property actually do?
It tells Python that the following method returns a value which should be considered a Property of the class
can you lend me an eye on imagebuttons? The first one works properly, the second one crashes on hover :(
imagebutton auto "TagonIconSmall_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Tagon")
unhovered SetVariable("screen_tooltop", "")
action Call ("Tagon_info")
imagebutton:
focus_mask True
hovered "TagonIconSmall_hover.png"
idle "TagonIconSmall_idle.png"
action Call ("Tagon_info")
Please don't post code in the comments bro. If it's crashing when you hover, chances are the things it's trying to do / load when you hover is wrong.
The reason I don't want the auto is I want to calculate the name of the button from strings and I couldn't get that to work on auto. Without auto, I can calculate the path to the image, but once I hover over it the game crashes.
oh well, outside auto it is idle and hover, not unhovered and hovered...