diff options
author | hop311 <hop3114@gmail.com> | 2024-08-29 00:16:24 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-08-29 23:04:30 +0200 |
commit | bdc2ba527bc02e7cdf977f6040f2ca85aa4f9a94 (patch) | |
tree | 4627ad955ac60f5c66b94dfc3106bd8442b58302 /extension/src/openvic-extension/classes/GUITextureRect.cpp | |
parent | 88acb31bd43f0e163522837bb1d0dd7da2977c4a (diff) |
Add tooltips for buttons, labels, icons, pie charts, sliders, and progress barstooltip
Diffstat (limited to 'extension/src/openvic-extension/classes/GUITextureRect.cpp')
-rw-r--r-- | extension/src/openvic-extension/classes/GUITextureRect.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/classes/GUITextureRect.cpp b/extension/src/openvic-extension/classes/GUITextureRect.cpp index 13fd3bb..fba9b19 100644 --- a/extension/src/openvic-extension/classes/GUITextureRect.cpp +++ b/extension/src/openvic-extension/classes/GUITextureRect.cpp @@ -3,4 +3,14 @@ using namespace godot; using namespace OpenVic; -void GUITextureRect::_bind_methods() {} +GUI_TOOLTIP_IMPLEMENTATIONS(GUITextureRect) + +void GUITextureRect::_bind_methods() { + GUI_TOOLTIP_BIND_METHODS(GUITextureRect) +} + +void GUITextureRect::_notification(int what) { + _tooltip_notification(what); +} + +GUITextureRect::GUITextureRect() : tooltip_active { false } {} |