Skip to content

Commit

Permalink
Merge pull request #22780 from samuelpedrajas/fix_texture_button_hove…
Browse files Browse the repository at this point in the history
…ring

Fix hovering on toggled link and texture buttons
  • Loading branch information
akien-mga authored Nov 1, 2018
2 parents 3f46295 + cf2bdcb commit aec8ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scene/gui/link_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ void LinkButton::_notification(int p_what) {
color = get_color("font_color");
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
} break;
case DRAW_HOVER_PRESSED:
case DRAW_PRESSED: {

if (has_color("font_color_pressed"))
Expand All @@ -91,7 +92,6 @@ void LinkButton::_notification(int p_what) {
do_underline = underline_mode != UNDERLINE_MODE_NEVER;

} break;
case DRAW_HOVER_PRESSED: break; // Not used in this class
case DRAW_DISABLED: {

color = get_color("font_color_disabled");
Expand Down
2 changes: 1 addition & 1 deletion scene/gui/texture_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void TextureButton::_notification(int p_what) {
if (normal.is_valid())
texdraw = normal;
} break;
case DRAW_HOVER_PRESSED:
case DRAW_PRESSED: {

if (pressed.is_null()) {
Expand All @@ -150,7 +151,6 @@ void TextureButton::_notification(int p_what) {
} else
texdraw = hover;
} break;
case DRAW_HOVER_PRESSED: break; // Not used in this class
case DRAW_DISABLED: {

if (disabled.is_null()) {
Expand Down

0 comments on commit aec8ea4

Please sign in to comment.