Undocumented metadata _tab_name
, _tab_icon
, etc. for children of TabContainer
#6002
Labels
archived
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
enhancement
Your Godot version:
Godot 3.4.4.stable.mono
Issue description:
The documentation for
TabContainer
does not seem to include any information about the metadata_tab_name
,_tab_icon
,_tab_hidden
, and_tab_disabled
.The class
TabContainer
by default uses the name of a childControl
for the title of its corresponding tab. There are however cases imaginable where a user might want to use text that is not allowed for node names (i.e. duplicate names for tabs, tabs without text, or tabs with special characters). This can be done by callingset_tab_title
.set_tab_icon
,set_tab_hidden
, andset_tab_disabled
serve similar purposes, respectively changing the icon, visibility and enabledness of the tab.In version 3.X this appears to be done by setting the above metadata on the relevant node. Version 4 seems to have moved some of the metadata.
By manually changing the metadata in the text file a user could preview the changes in the editor without messing around with signals, needing to write a
tool
script, or waiting for the editor UI to be improved.URL to the documentation page (if already existing):
Some of the pages related to
TabContainer
don't seem to mention this feature (or implementation detail), so it is just something one might stumble upon instead.The text was updated successfully, but these errors were encountered: