[SOLVED] Is the use of "Textbutton" to output a simple text to "Text"?
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.
[SOLVED] Is the use of "Textbutton" to output a simple text to "Text"?
I have a “Textbutton” and “Text” (the values of variables are displayed), but I want to ask them Background.
I could put the "Text" in "Frame".
But I thought that it would be easier to make "Textbutton" everywhere and display the same variables as the name "Textbutton" without action.
Do you do this in your projects?
Can this lead to errors?
Is there anything why it is so undesirable to do?
I could put the "Text" in "Frame".
But I thought that it would be easier to make "Textbutton" everywhere and display the same variables as the name "Textbutton" without action.
Do you do this in your projects?
Can this lead to errors?
Is there anything why it is so undesirable to do?
Last edited by span4ev on Sat Oct 15, 2022 5:01 am, edited 1 time in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Theres no problem doing that, a textbutton is a button with Text inside it, usually contained within some sort of container, like a frame.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
- Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Be careful with styles: textbutton can pick insensitive/hovered styles and use them instead of generic style for idle button (Depending on how you make a button do "no action", it either will be in insensitive state or in normal and pick up hovered events). Check if all Textbuttons are working properly by hovering over them.
< < insert Rick Cook quote here > >
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Therefore, I removed the action of such buttons. I mean, I did not assign them anything as a action, even NullАction () so that I can use hover_background for the rest of the buttonsOcelot wrote: ↑Thu Aug 04, 2022 6:42 amBe careful with styles: textbutton can pick insensitive/hovered styles and use them instead of generic style for idle button (Depending on how you make a button do "no action", it either will be in insensitive state or in normal and pick up hovered events). Check if all Textbuttons are working properly by hovering over them.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], minyan