I want to make a tooltip appear whenever the player hovers their mouse on an "object" button that they can interact with. I managed to make this work, but the tooltip appears with a background color/s that I want to be able to modify/remove. How do I do this?
Also, is there a way to customize properties of the tooltip text like the text's color/size/etc.?
Here's a picture of the current appearance of the tooltip when I hover my mouse to an object button.
Customizing Tooltip
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Newbie
- Posts: 12
- Joined: Thu Jul 21, 2016 10:54 am
- Contact:
- Scribbles
- Miko-Class Veteran
- Posts: 636
- Joined: Wed Sep 21, 2016 4:15 pm
- Completed: Pinewood Island, As We Know It
- Projects: In Blood
- Organization: Jaime Scribbles Games
- Deviantart: breakfastdoodles
- itch: scribbles
- Location: Ohio
- Contact:
Re: Customizing Tooltip
I am really really new to coding... but is it possible that the black box with the teal border is your frame? Then you could go into your GUI folder and customize the box from there. (I made a 1% opacity white box for mine when I didn't want the box to show up) - someone else is bound to have a more in-depth and better answer though ^ ^
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: Customizing Tooltip
We need to see your code to understand how to answer.
The Tooltip has no text to customize, in the example in the doc (https://www.renpy.org/doc/html/screen_a ... l#tooltips) there is a "text" statement that can be customized, not the tooltip function itself.
The image you have shown seems to be a text inside a frame, you can customize that frame and that text as any other frame and text in the screen. (see the screens doc to find all the properties of every element: https://www.renpy.org/doc/html/screens.html )
The example in the doc:
The Tooltip has no text to customize, in the example in the doc (https://www.renpy.org/doc/html/screen_a ... l#tooltips) there is a "text" statement that can be customized, not the tooltip function itself.
The image you have shown seems to be a text inside a frame, you can customize that frame and that text as any other frame and text in the screen. (see the screens doc to find all the properties of every element: https://www.renpy.org/doc/html/screens.html )
The example in the doc:
Code: Select all
screen tooltip_test:
default tt = Tooltip("No button selected.")
frame:
xfill True
has vbox
textbutton "One.":
action Return(1)
hovered tt.Action("The loneliest number.")
textbutton "Two.":
action Return(2)
hovered tt.Action("Is what it takes.")
textbutton "Three.":
action Return(3)
hovered tt.Action("A crowd.")
text tt.value # <-- here you can customize the text as you want.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Who is online
Users browsing this forum: Ahrefs [Bot]