Files
mtgodot-poc/project/ui/quiet_button.gd
T

10 lines
432 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# QuietButton —— 拦截 Godot 4 引擎内置 Tooltip 弹窗。
#
# 防止引擎在商店槽位悬停或点击时自动弹出原生简陋的灰色 TooltipPanel
# 确保所有商品装备与道具均由 40250 官方规范的 ItemTooltipView (ThinBoard) 独占呈现。
# 同时完整保留 BaseButton.tooltip_text 字符串供测试校验复用。
extends Button
func _get_tooltip(_at_position: Vector2) -> String:
return ""