Transparent text boxes

TessSadist

Well-Known Member
Donor
Game Developer
Aug 4, 2019
1,298
5,562
Hi all,

I am not a super tech person -- but might be getting someone to help me in this area -- but I was wondering if anyone knows how you can create a transparent text box for Renpy so you only see the words but not a colored text box background that blocks part of your image? Thank you!
 

I'm Not Thea Lundgren!

AKA: TotesNotThea
Donor
Jun 21, 2017
6,604
19,025
Hi all,

I am not a super tech person -- but might be getting someone to help me in this area -- but I was wondering if anyone knows how you can create a transparent text box for Renpy so you only see the words but not a colored text box background that blocks part of your image? Thank you!
There is a mod on here by a user called Penfold Mole, if you go to his profile you should be able to find the mod from there. (It's in his signature)
 

the66

beware, the germans are cumming
Modder
Donor
Respected User
Jan 27, 2017
7,808
24,388
Thank you so much everyone! Just a little fiddling with some things and my first attempt to have no box and text...thank you!
don't forget to add an outline to the text of the quick_menu buttons also.
 
  • Like
Reactions: TessSadist

TessSadist

Well-Known Member
Donor
Game Developer
Aug 4, 2019
1,298
5,562
Could you share that file? trying to do just that, but cant get it to work.
Hi, I have a huge file with script and other info I don't want to share yet because of plot, maybe I can find older version of file, I put color text outlines in older file (this was just when I had introduction done) in script.rpy for just a header file which is just what a player sees only the first time they load up the game. Tess and character Y only for header file, other three are real characters later of many others too...In GUI/SCREENS file, I have a transparent text box as the file, let me find file too...I think I found some older files hold on...some older files that I think have everything...

define d = Character("Diana", color="#ff0000")
define j = Character("Juliette", color="#ff00cc")
define g = Character("Gina", color="#ccffff")
define z = Character("Tess", color="#ff00cc")
define y = Character("Our victim...err...maybe heroic MC", color="#66ffff")

define gui.name_text_outlines = [ (0, "#000000", 2, 2) ]
define gui.dialogue_text_outlines = [ (0, "#000000", 2, 2) ]
define gui.idle_small_color_outlines = [ (0, "#000000", 2, 2) ]
define gui.hover_color_outlines = [ (0, "#000000", 2, 2) ]

define fade = Fade(0.5, 0.5, 0.5, color="#241e20")
define longfade = Fade(1.0, 1.5, 2.0, color="#241e20")
define flash = Fade(0.1, 0.0, 1.0, color="#f2eee2")
define quickflash = Fade(0.1, 0.0, 0.1, color="#f2eee2")
define longflash = Fade(0.1, 0.0, 2.0, color="#f2eee2")
define quickdissolve = Dissolve(0.3)
define mediumdissolve = Dissolve(1.5)
define longdissolve = Dissolve(2.0)

transform pan_scene_up:
ypos 0
linear 10 ypos 1920
transform pan_scene_down:
ypos 1920
linear 10 ypos 0
 
  • Like
Reactions: Dumber0

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,607
2,256
I created this as my default textbox background.
I found it a nice balance between transparency and creating boundaries for sections of the screen, whilst still being able to see behind the textbox.

Removing the background entirely does work, but... actually... personal preference... you do you.
But I offer this as an alternative for a 1080p game.