Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 19 Aug 2013 12:09 PM |
| I have a text button, inside of a text button. But the text button that is layered on TOP of the other text button does not function when clicked. Which property in the UNDER layered text button would I need to disable or enable so that the TOP layered text button will only work? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 19 Aug 2013 12:13 PM |
| Make sure that the one that you want under the other has got a lower ZIndex than the other. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 19 Aug 2013 12:17 PM |
| Wait so you're saying the text button thats on top of the other has a higer ZIndex than the one under? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2013 12:18 PM |
| If they are the same (someone help me) it is usually a sword fight in the back, one will win and it gets dibs ontop..(not really which one gets rendered last is on top :P) |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
|
| 19 Aug 2013 12:20 PM |
| The ZIndex is basically a way for the render engine to determine in which order (0-10) it should render the guis. 10 Has most priority while 0 has lowest (or lower has lowest). If they are the same its whichever is registered later (idk how you can determine it) will draw ontop. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 19 Aug 2013 12:24 PM |
| SO you're saying that I should make the one that's on top, 10? o3o |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2013 12:25 PM |
If you want to be shown 1000% on top of everything else, Yes.
If you want GUIs other than it to render on top....then no, set it to like 4.
You want it on top of X or Y, set it 1 above the X and Y's ZIndex. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2013 12:26 PM |
^ I hate tab instantly posting my stuff T_T
If you have another GUI overlapping the other gui both at 10 ZIndex, it will be the later registered wins screen space. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 19 Aug 2013 12:29 PM |
| I didn't understand that last post so I'm going to let you tell me where to put it at. I have a text button that is supposed to function INSIDE of another text button(which is just for show, I like the style of it, I didn't wanna use a frame). I set the one that is supposed to function at 4? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2013 12:34 PM |
Disable the "just for show" textbutton, then set it at ZIndex of 1, then set the real one to 4 and it 'should' work.
("I am one that when I say should...it take a few trys of just stupidity on my part to work :P) |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 19 Aug 2013 12:39 PM |
| Erm that didn't work, why don't I just put everything in a frame...? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2013 12:43 PM |
Yeah I don't think that you can nest buttons within buttons...
Put it in a frame...its easier :P |
|
|
| Report Abuse |
|
|