Adding web links
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.
-
Timberduck
- Regular
- Posts: 60
- Joined: Sat Jan 04, 2014 12:52 am
- Location: Canada
- Contact:
Adding web links
Is it possible to add web-links in renspy?
-
Timberduck
- Regular
- Posts: 60
- Joined: Sat Jan 04, 2014 12:52 am
- Location: Canada
- Contact:
Re: Adding web links
lol found out you can.
Now is there a way to select a menu option or an image which opens the link automatically?
Now is there a way to select a menu option or an image which opens the link automatically?
Re: Adding web links
Try
Code: Select all
init python:
import webbrowser
screen scr:
textbutton "url" action OpenURL("http://www.renpy.org/doc/html/screen_actions.html#other-actions") xalign 1.0 yalign 0.0
# The game starts here.
label start:
show screen scr
"Why don't you visit {a=http://renpy.org}Ren'Py's home page{/a}?"
menu:
"url":
$ webbrowser.open_new("http://www.renpy.org/doc/html/screen_actions.html#other-actions")
"..."-
Timberduck
- Regular
- Posts: 60
- Joined: Sat Jan 04, 2014 12:52 am
- Location: Canada
- Contact:
Re: Adding web links
WOW!!!
Thanks AGAIN ALEX!!!
Thanks AGAIN ALEX!!!
Who is online
Users browsing this forum: Google [Bot]