I have this code:
Code:
init:
python:
style.create('statgreen', 'style.label_text')
style.statgreen.color="#c8ffc8"
style.statgreen.outlines=[(1,"#e8ffe8")]
style.create('statred', 'style.label_text')
style.statred.color="#ffc8c8"
style.statred.outlines=[(1,"#ffe8e8")]
and somewhere else this one:
Code:
screen show_strength:
modal False
$ plop_value = "+%d"%add_strength
label plop_value xpos 280 ypos 116 at zahlenplopp style statgreen
When the screen is called, I get an error message that says that the name "statgreen" is not defined. I'm at a loss here, because well, I think I did define it, so I must have forgotten something or misunderstood how to define new styles.