Page 1 of 1

how to set ruby text color inside an ui.label()?

Posted: Sun Jun 04, 2017 1:18 pm
by iichan_lolbot
I have tried both

Code: Select all

ui.label("赤{rt}あか{/rt}い",text_color="#f00")
and

Code: Select all

ui.label("{color=#f00}赤{rt}あか{/rt}い{/color}")
.
Neither works for me with RenPy 6.99.11.

Re: how to set ruby text color inside an ui.label()?

Posted: Mon Jun 05, 2017 4:41 pm
by iichan_lolbot
Found a workaround patch.

At renpy/text/text.py, replace

Code: Select all

                ts.take_style(style.ruby_style, self)
with

Code: Select all

                color_style = ts.color
                ts.take_style(style.ruby_style, self)
                ts.color = color_style
There is already a workaround for ts.vertical, so why not...