I've tried a number of methods, with almost no success. The only thing I've been able to change is the background of the buttons.
I don't want to change the default style, as these particular buttons will be unique.
I've created a style as such:
Code: Select all
init python:
style.text['Word List'].size = 45
style.text['Word List'].hover_color = "#FF00FF" # Pink
style.text['Word List'].outlines = [ (0, "#0000FF", 1, 1) ] # Blue
style.text['Word List'].color = "#FF0000" # Red
style.text['Word List'].background = "#FFFF00" # Yellow # Works
Code: Select all
viewport id "vp":
draggable True
grid 2 length_of_grid:
spacing 10
xfill True
ypos 140
for i in range(0,len(all_vocab_set)):
$ currentword = (all_vocab_set[i])
$ currentwordsname = "vocab_" + currentword + ""
$ currentwordslevel = renpy.store.__dict__[currentwordsname].level
$ currentwordsmeaning = renpy.store.__dict__[currentwordsname].meaning
textbutton ("[currentword] [currentwordslevel]") style style.text["Word List"]: # Styles aren't being applied correctly
action SetVariable("word_from_wordlist_that_was_clicked", currentwordsmeaning)