- Oct 7, 2023
- 304
- 727
Dear dev, please add a dialogue box opacity slider to your game. The box is often in the way of the goodies (I know I can hide it with H but still)
add this one line to options.rpy anywhere (I added at the very bottom)
then add this one line to screens.rpy under the `say` screen
so the result looks like:
finally, add this one vbox to screens.rpy too, under screen preferences, below the "Additional vboxes..." message which is already there (i.e. add the last 3 lines below)
I added this in the jankiest way possible since the slider covers the entire width of the preferences window, but I'm sure there are instructions in the docs / on Google for how to place a smaller slider neatly somewhere
add this one line to options.rpy anywhere (I added at the very bottom)
Code:
default persistent.dialogueBoxOpacity = 0.5
Code:
background Transform(Frame("gui/textbox.png",xalign=0.5, yalign=1.0), alpha=persistent.dialogueBoxOpacity)
Code:
# ...
screen say(who, what):
style_prefix "say"
window:
id "window"
background Transform(Frame("gui/textbox.png",xalign=0.5, yalign=1.0), alpha=persistent.dialogueBoxOpacity)
if who is not None:
# rest of code continues normally...
Code:
## Additional vboxes of type "radio_pref" or "check_pref" can be
## added here, to add additional creator-defined preferences.
vbox:
label _("Dialogue box opacity")
bar value FieldValue(persistent, "dialogueBoxOpacity", range=1.0, style="slider")