Jump to content

Adding GUI.Containers to GUI.Containers


JCPalmer
 Share

Recommended Posts

I was trying to layout 3 columns of buttons.  The buttons are GUI.Controls.  Each column could be a GUI.StackPanel.  As far as adding the 3 StackPanels to the texture you might add them to the GUI.AdvancedDynamicTexture using addControl(control :Control).  No idea what would happen layout wise.  Adding a StackPanel to an AdvancedDynamicTexture  works though.  If you were to do this in Typescript you would error GUI.StackPanel inherits from GUI.Container.  GUI.Control is a root class.  Should not the AdvancedDynamicTexture signature for add/removeControl be:

public addControl(control: Control|Container): AdvancedDynamicTexture

You might also add the 3 stackPanels in to a larger one with horizontal orientation.  You could expect to know what would happen.  Container.addControl seems to have the same problem, yet Control.AddHeader() does that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...