I'd like to include an option for players to increase colour contrast if necessary. I'd like to be able to set all of the namebox say labels to black (and back to their individual colours again when the default option is selected!). I was able to adjust the colour contrast of the namebox and textbox using:
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if persistent.contrast == True:
$ style.say_window = style.window_contrast
else:
$ style.say_window = style.window
if who is not None:
window:
id "namebox"
if persistent.contrast == True:
style "namebox_contrast"
else:
style "namebox"
text who:
id "who"
if (len(_history_list) == 0 ) or (len(_history_list) > 0 and _history_list[-1].who != who):
at trans_say_label
text what id "what"
Thank you in advance!