Create your AI Cum Slut -70% for Mother's Day
x

Mod request

Matoyoshi

Member
Nov 27, 2018
295
232
This isn't really a game request but I can't make a thread in the mods forum. This is actually a request for a standard ren'py mod that, all it does is gives the preference option for textbox opacity for those games that do not have it. Would that be possible?
 

osanaiko

Engaged Member
Modder
Jul 4, 2017
2,931
5,599
For the vast majority of games which are using the "default" renpy user interface definitions, it's actually quite easy to change the transparency of the dialogue box background manually:

1. Open the "game/screens.rpy" file in a text editor (even windows notepad if you don't have anything better)

1a. OPTIONAL: If the "screens.rpy" file is not present, use the "Unren for all" tool to extract the rpy files (https://f95zone.to/threads/unrengui-unren-forall-v9-4-unren-powershell-forall-v9-4-unren-old.92717/)

2. find the screen say(who, what): section

3. add the line starting with "background" into the code

Code:
screen say(who, what):
    style_prefix "say"
    window:
        id "window"

        # add this line in this position _ _ _ _ _ _ _ _ _ _vvvv------ Edit this to change the transparency
        background Transform(style.window.background, alpha=0.75, xalign=0.5, yalign=1.0)

        if who is not None:
            window:
                id "namebox"
                style "namebox"
                text who id "who"
        text what id "what"
NOTE!!: Pay attention to the indentation of the line! It must match the line above! Use spaces, not tabs.

4. Save the screens.rpy file, restart the game, check if the transparency is what you want.

5. You can adjust the transparency level by manually editing the file again and changing the value of the "alpha=0.75" to other values between 0.0 (most transparent) and 1.0 (least transparent)
 
  • Like
Reactions: anne O'nymous

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,785
18,243
5. You can adjust the transparency level by manually editing the file again and changing the value of the "alpha=0.75" to other values between 0.0 (most transparent) and 1.0 (least transparent)
6. Copy the whole code for the said "say", then past it into a new text file.

7. Save that text file under "zSayFix.rpy".

8. Place a copy of the file in the "[path to the game]/game/" directory each time you seen that the game use the default interface.
 
  • Like
Reactions: osanaiko