fix hovering on toggled texture buttons
fix hovering on toggled link buttons
This commit is contained in:
parent
a41cf404a9
commit
cf2bdcbb3f
|
@ -75,6 +75,7 @@ void LinkButton::_notification(int p_what) {
|
||||||
color = get_color("font_color");
|
color = get_color("font_color");
|
||||||
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
|
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
|
||||||
} break;
|
} break;
|
||||||
|
case DRAW_HOVER_PRESSED:
|
||||||
case DRAW_PRESSED: {
|
case DRAW_PRESSED: {
|
||||||
|
|
||||||
if (has_color("font_color_pressed"))
|
if (has_color("font_color_pressed"))
|
||||||
|
@ -91,7 +92,6 @@ void LinkButton::_notification(int p_what) {
|
||||||
do_underline = underline_mode != UNDERLINE_MODE_NEVER;
|
do_underline = underline_mode != UNDERLINE_MODE_NEVER;
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case DRAW_HOVER_PRESSED: break; // Not used in this class
|
|
||||||
case DRAW_DISABLED: {
|
case DRAW_DISABLED: {
|
||||||
|
|
||||||
color = get_color("font_color_disabled");
|
color = get_color("font_color_disabled");
|
||||||
|
|
|
@ -128,6 +128,7 @@ void TextureButton::_notification(int p_what) {
|
||||||
if (normal.is_valid())
|
if (normal.is_valid())
|
||||||
texdraw = normal;
|
texdraw = normal;
|
||||||
} break;
|
} break;
|
||||||
|
case DRAW_HOVER_PRESSED:
|
||||||
case DRAW_PRESSED: {
|
case DRAW_PRESSED: {
|
||||||
|
|
||||||
if (pressed.is_null()) {
|
if (pressed.is_null()) {
|
||||||
|
@ -150,7 +151,6 @@ void TextureButton::_notification(int p_what) {
|
||||||
} else
|
} else
|
||||||
texdraw = hover;
|
texdraw = hover;
|
||||||
} break;
|
} break;
|
||||||
case DRAW_HOVER_PRESSED: break; // Not used in this class
|
|
||||||
case DRAW_DISABLED: {
|
case DRAW_DISABLED: {
|
||||||
|
|
||||||
if (disabled.is_null()) {
|
if (disabled.is_null()) {
|
||||||
|
|
Loading…
Reference in New Issue