I want to change the "say" ("window") background transparency via a custom slider and/or a Preference slider.
(I adopted this code from someone else's game).
Code: Select all
define persistent.say_window_alpha = 0.8
screen say(who, what):
style_prefix "say"
window:
background Transform(style.window.background, alpha=persistent.say_window_alpha)
#...The slider:
vbar value FieldValue(persistent, 'say_window_alpha', 1.0, max_is_zero=False, offset=0, step=0.1):
top_bar "gui/slider/vertical3_idle_bar.png"
bottom_bar "gui/slider/vertical3_hover_bar.png"
thumb "gui/slider/thumb_idle.png"
hover_thumb "gui/slider/thumb_hover.png"
align (0.997, 0.99)
xysize (40, 150)
thumb_offset 10
But when I change the value of alpha via sliders, the value itself changes but the transparency of the background does not.
In 7.3.5 I could see how the box becomes transparent and vice versa, dragging the slider's thumb.