I'm having trouble trying to figure out how to alter the dialogue window and namebox at certain points in the game. Whenever there is a CG showing I'd like to change the say window to a slightly transparent version so the player can see the CG better, as the regular say window is solid colour.
I tried playing around in screens.rpy and used a variable called 'is_showing_cg' and switched it from False to True whenever a CG is showing in the game so that say screen would adopt a different style, but it hasn't worked.
This is what I tried:
Code: Select all
if is_showing_cg == True:
style window is cg_window
else:
style window is defaultCode: Select all
style cg_window:
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Image("gui/textbox-cg.png", xalign=0.5, yalign=1.0)Code: Select all
if is_showing_cg == True:
id "cg_window"
else:
id "window"