mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #111926 from YeldhamDev/stop_pointing_fingers
Show the arrow cursor on disabled `LinkButton`s
This commit is contained in:
commit
6774821a23
2 changed files with 6 additions and 0 deletions
|
|
@ -199,6 +199,10 @@ Size2 LinkButton::get_minimum_size() const {
|
|||
return minsize;
|
||||
}
|
||||
|
||||
Control::CursorShape LinkButton::get_cursor_shape(const Point2 &p_pos) const {
|
||||
return is_disabled() ? CURSOR_ARROW : get_default_cursor_shape();
|
||||
}
|
||||
|
||||
void LinkButton::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ACCESSIBILITY_UPDATE: {
|
||||
|
|
|
|||
|
|
@ -114,6 +114,8 @@ public:
|
|||
Ref<Font> get_button_font() const;
|
||||
int get_button_font_size() const;
|
||||
|
||||
virtual CursorShape get_cursor_shape(const Point2 &p_pos) const override;
|
||||
|
||||
LinkButton(const String &p_text = String());
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue