diff options
| author | Thaer Razeq | 2017-03-01 11:23:19 -0600 |
|---|---|---|
| committer | Thaer Razeq | 2017-03-05 02:47:09 -0600 |
| commit | c9bda06dfddd4cdd28517ff02df5c556fc70da0f (patch) | |
| tree | 1c9ac882dfe7e79e0e7eb7b1a552e0f383ef062e /doc | |
| parent | a1cbe8e22bec516b138436d06282046466e89c79 (diff) | |
| download | godot-c9bda06dfddd4cdd28517ff02df5c556fc70da0f.tar.gz godot-c9bda06dfddd4cdd28517ff02df5c556fc70da0f.tar.zst godot-c9bda06dfddd4cdd28517ff02df5c556fc70da0f.zip | |
- `tab_changed` signal emits only by selecting a different tab.
- Added `tab_selected` signal. Which emits a signal by selecting any tab, if current tab is selected again.
- Added `get_previous_tab()`. Which returns the previous shown tab. **Note:** only `tab_changed` can modify previous tab index.
- Add documentation for the added function and signals. Fix a typo too.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/base/classes.xml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 4e4fb3cd2..5ebb71236 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -40626,9 +40626,16 @@ <return type="int"> </return> <description> - Return the current tab that is being showed. + Return the current tab index that is being shown. </description> </method> + <method name="get_previous_tab" qualifiers="const"> + <return type="int"> + </return> + <description> + Return the previous tab index that was being shown. + </description> + </method> <method name="get_current_tab_control" qualifiers="const"> <return type="Control"> </return> @@ -40654,6 +40661,7 @@ <argument index="0" name="idx" type="int"> </argument> <description> + Return the current tab control that is being shown. </description> </method> <method name="get_tab_count" qualifiers="const"> @@ -40735,7 +40743,14 @@ <argument index="0" name="tab" type="int"> </argument> <description> - Emitted when the current tab changes. + Emitted only when the current tab changes. + </description> + </signal> + <signal name="tab_selected"> + <argument index="0" name="tab" type="int"> + </argument> + <description> + Emitted when a tab is being selected, even if it is the same tab. </description> </signal> </signals> |
