Page 1 of 1
[SOLVED] Is the use of "Textbutton" to output a simple text to "Text"?
Posted: Thu Aug 04, 2022 6:34 am
by span4ev
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?
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Posted: Thu Aug 04, 2022 6:37 am
by Imperf3kt
Theres no problem doing that, a textbutton is a button with Text inside it, usually contained within some sort of container, like a frame.
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Posted: Thu Aug 04, 2022 6:42 am
by Ocelot
span4ev wrote: ↑Thu Aug 04, 2022 6:34 am
Do you do this in your projects?
Can this lead to errors?
Is there anything why it is so undesirable to do?
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.
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Posted: Thu Aug 04, 2022 7:21 am
by span4ev
Imperf3kt wrote: ↑Thu Aug 04, 2022 6:37 am
Theres no problem doing that, a textbutton is a button with Text inside it, usually contained within some sort of container, like a frame.
OK thanks. This is what I was hoping to hear
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Posted: Thu Aug 04, 2022 7:23 am
by span4ev
Ocelot wrote: ↑Thu Aug 04, 2022 6:42 am
span4ev wrote: ↑Thu Aug 04, 2022 6:34 am
Do you do this in your projects?
Can this lead to errors?
Is there anything why it is so undesirable to do?
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.
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 buttons