Creating a Custom Tab System in Godot

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 17

  • @me2beats313
    @me2beats313 3 роки тому +23

    Hi! Tabs is a different way to create TabContainer, Tabs should NOT be children of TabContainer.
    All you need is to add TextEdit and other tabs as TabContainer children directly.
    Also it's better to use Layout - FullRect to make a control have full size of the parent.

    • @TheGemDev
      @TheGemDev  3 роки тому

      Adding "text edit" as a child node to tab container ensures their position and size is determined only by their parent, which in this case is the "tab container". By so doing the "color picker" and "tabs" follow the size of the parent and that's not what we want.

    • @me2beats313
      @me2beats313 3 роки тому +6

      @@TheGemDev yeah, children of TabContainer fill the whole area.
      If you don't want this behavior, you can just add plain Control node as a TabContainer child and then the control (Button, etc).
      Again no need to use Tabs, just use Control instead of Tabs.
      Tabs is just another way to create a TabContainer.

  • @barycza
    @barycza Рік тому +3

    Good job. Short and to the point.

  • @MartyJames23
    @MartyJames23 3 роки тому +3

    Thanks for the tutorial. I actually needed this for my text editor project.

    • @TheGemDev
      @TheGemDev  3 роки тому +1

      Glad you found it useful

  • @triberium_
    @triberium_ 2 роки тому +1

    Thank you! First time using tabs and your vid pretty much told me everything I needed to know.

    • @TheGemDev
      @TheGemDev  2 роки тому +1

      Glad it helped!, please share this tutorial.

  • @stranostrani9212
    @stranostrani9212 2 роки тому +2

    4:07 here it is not asking which scene you want to preview, it is asking if you want to set the current scene as main scene, because you pressed the button that runs the main scene (which shortcut is F5). If you want to run the current scene without setting it as main scenere, you can press F6 (or press the button on the top right, next to the stop button if you want to do it slowly >:/)
    Also it is much faster to remember some shortcut by association, like:
    For adding a child note you can just press: CTRL + A ( a for adding)
    For duplicating a selected node : CTRL + D ( d for duplicate)

  • @MrBrigadierArchived
    @MrBrigadierArchived Місяць тому

    thank you for the video. Still helps people a lot

  • @scorpion666lair
    @scorpion666lair 2 роки тому

    I'm so glad this was the first search result - very to the point, great vid - thanks!

  • @felipejhony6039
    @felipejhony6039 2 місяці тому

    Very informative, thank you!

    • @TheGemDev
      @TheGemDev  2 місяці тому

      Glad you enjoyed it!

  • @betterstayout0
    @betterstayout0 10 місяців тому

    Thank you for the video!!!! I really needed it

  • @mahmoud_ali_963
    @mahmoud_ali_963 Місяць тому

    thank you very very very much

  • @AragamiMusic
    @AragamiMusic 2 роки тому +1

    And the download link in the description?

  • @vickylance
    @vickylance 2 роки тому +1

    Can you create a video on how to create a vertical tabs?