}
-void Button::setStyle(Style *style)
+void Button::setStyle(RenderStyle *style)
{
FocusLabel::setStyle(style);
-
- setTexture(style->getButtonFocus());
- setUnfocusTexture(style->getButtonUnfocus());
- _pressed_focus_tx = style->getButtonPressedFocus();
- _pressed_unfocus_tx = style->getButtonPressedUnfocus();
+
+ setTexture(style->buttonUnpressFocusBackground());
+ setUnfocusTexture(style->buttonUnpressUnfocusBackground());
+ _pressed_focus_tx = style->buttonPressFocusBackground();
+ _pressed_unfocus_tx = style->buttonPressUnfocusBackground();
}
_pressed = false;
}
-void Button::setTexture(Texture *texture)
+void Button::setTexture(RenderTexture *texture)
{
FocusWidget::setTexture(texture);
_unpr_focus_tx = texture;
}
-void Button::setUnfocusTexture(Texture *texture)
+void Button::setUnfocusTexture(RenderTexture *texture)
{
FocusWidget::setUnfocusTexture(texture);
_unpr_unfocus_tx = texture;