Hi,
seen it in Heileen in the main-menu, a hyperlink to a http adress. I thought putting a {a=http://www.andsoon.com}Take me there{/a} in the ui.text part would work but it doesn't. Any ideas?
Hyperlink in ui.button
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Hyperlink in ui.button
That should work with sufficently modern versions of Ren'Py.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Hyperlink in ui.button
At least it doesn't show a syntax error. I forgot the ' ' around the tag.
But unfortunately no website opens. A configuration setting I am missing?
Edit: I have 6.9.1
Edit2: jack_norton already had asked this question over here and your second solution works great, many thanks.
But unfortunately no website opens. A configuration setting I am missing?
Code: Select all
$ ui.text('{a=http://www.renpy.org/}RenPy{/a}',hover_color='#c8ffff',color='#c8ffff',size=22,font='DejaVuSans.ttf')
Edit2: jack_norton already had asked this question over here and your second solution works great, many thanks.
Who is online
Users browsing this forum: Ocelot