|
I place a Gui.Button over a Gui.Textarea. And if i try to click it it always selects the Gui.Textarea under it. Is there a way to solve this problem?
(comments are locked)
|
|
(really) hacky way to fix it quickly:
It uses the first button for input, the second to get drawn on top of the text box The alternative is to handle the event catching yourself before the text box, use the event if it hits the button's position, and then call your if function and change the style of the button to make it look active I managed it another way. draw a box for the background. and a smaller textarea above the box. So, where the button is there is no textarea anymore. But thanks for the hack. ;)
Jun 29 '10 at 12:38 PM
Case23
Sounds good - overlapping controls do sound like a bad idea ;)
Jun 29 '10 at 12:51 PM
Mike 3
(comments are locked)
|
|
If your Button is in a separate It is in the same Gui call, and how my Gui Menu works, it would be not nice to put it outside of this. And the Button is called after the textfield. Becouse my textfield has a solid color background and if i wouldnt do it, i wouldnt see it. But the realy strange thing is, if it is behind the textfield, the button works fine. :/
Jun 27 '10 at 05:51 PM
Case23
GUI.depth solved all my GUI.button/input conflicts, thank-you!!
Nov 18 '10 at 12:35 AM
yoyo
(comments are locked)
|
