Supint
|
  |
| Joined: 30 Aug 2013 |
| Total Posts: 6854 |
|
|
| 02 Apr 2014 07:20 PM |
| If there are two immediate TextButtons directly on top of each other, and if you click multiple times on top of the top one, they both get triggered. Is there a convenient way to stop this? |
|
|
| Report Abuse |
|
|
Supint
|
  |
| Joined: 30 Aug 2013 |
| Total Posts: 6854 |
|
|
| 02 Apr 2014 07:23 PM |
| Does this happen for anyone else? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 02 Apr 2014 07:25 PM |
No, I don't even know why you came across this xD
Have you tried disabling a script when the other is clicked? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 02 Apr 2014 07:27 PM |
Make one inactive :P Then if what you're trying to do is make one appear when clicking the other then just do like..
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.TextButton2.Active = true script.Parent.Active = false end) |
|
|
| Report Abuse |
|
|
Supint
|
  |
| Joined: 30 Aug 2013 |
| Total Posts: 6854 |
|
|
| 02 Apr 2014 07:36 PM |
No, one is covering the other one. (They're both windows that when clicked slide away)
How do you make one inactive from a script that is not inside it? |
|
|
| Report Abuse |
|
|
Supint
|
  |
| Joined: 30 Aug 2013 |
| Total Posts: 6854 |
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 02 Apr 2014 08:04 PM |
I JUST TOLD YOU
ON THE TOP TEXTBUTTON THAT SLIDES;
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.OtherTextButton.Active = true --Have it inactive beforehand --Slide away end) |
|
|
| Report Abuse |
|
|
Supint
|
  |
| Joined: 30 Aug 2013 |
| Total Posts: 6854 |
|
|
| 02 Apr 2014 08:29 PM |
| Oh, I see how that works. I thought you were suggesting something else. |
|
|
| Report Abuse |
|
|