Tried "$ style.....", - doesnt work.
For example, changing color of interface during game - is it possible?.
Can I change styles in game - after "label start" ?
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Re: Can I change styles in game - after "label start" ?
You can do it if you call style.rebuild() after making your changes. But note the problems listed at http://www.renpy.org/wiki/renpy/doc/ref ... le.rebuild
Due to the limitations, it's better in most cases if you use a variable to switch to a different named style inside your UI code, instead of redefining the styles on the fly. Also, I think the changes made this way would not propagate down to styles inherited from the one you are changing. (Although I might be wrong on that)
So, to summarize: Yes, it's possible, but rarely advisable.
Due to the limitations, it's better in most cases if you use a variable to switch to a different named style inside your UI code, instead of redefining the styles on the fly. Also, I think the changes made this way would not propagate down to styles inherited from the one you are changing. (Although I might be wrong on that)
So, to summarize: Yes, it's possible, but rarely advisable.
Who is online
Users browsing this forum: No registered users