How can I set custom outlines for my custom hyperlink styles

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
Thailandian
Regular
Posts: 30
Joined: Tue Jun 01, 2021 6:24 am
Contact:

How can I set custom outlines for my custom hyperlink styles

#1 Post by Thailandian »

I have two custom hyperlink styles - hyper_st and hyper_vic, showing green and red text respectively.

Code: Select all

style hyper_st is hyperlink_text:
    color '#0f0'

style hyper_vic is hyperlink_text:
    color '#f00'
What I'd like to do is add a different coloured outline to each style, so that hyper_st is green with a gold outline and hyper_vic is red with a blue outline.

I've tried e.g.

Code: Select all

style hyper_vic is hyperlink_text:
    color '#f00'
    outlines [(absolute(10),"#00f",0,0)]
but this had no effect.

I found out how to define an outline for all dialogue text:

Code: Select all

define -2 gui.dialogue_text_outlines = [ (3, "#000000F0", 0, 0) ]
but I can't find a way to individualise them.

As always, any help or advice would be most appreciated.

Post Reply

Who is online

Users browsing this forum: Yone28