generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Text Button Properties.

Previous Thread :: Next Thread 
Kasumo is not online. 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 is not online. 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 is not online. 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
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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 is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
19 Aug 2013 12:19 PM
._.?
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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 is not online. 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
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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 is not online. 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
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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 is not online. 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
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image