diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-20 06:11:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-20 06:11:12 +0000 |
| commit | d8d9b42777ace234f3471918e1210062578f8188 (patch) | |
| tree | 915e9aa986ba44dda4c357bc834c68b4dc550525 /otk/button.cc | |
| parent | 0ba441fe8f379ec506000f7fa29f867cb6bc0d51 (diff) | |
widegt using new render system
Diffstat (limited to 'otk/button.cc')
| -rw-r--r-- | otk/button.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/otk/button.cc b/otk/button.cc index bc994b2f..04906fe5 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -22,11 +22,12 @@ Button::~Button() void Button::setStyle(Style *style) { FocusLabel::setStyle(style); - - setTexture(style->getButtonFocus()); - setUnfocusTexture(style->getButtonUnfocus()); - _pressed_focus_tx = style->getButtonPressedFocus(); - _pressed_unfocus_tx = style->getButtonPressedUnfocus(); + + // XXX: do this again + //setTexture(style->getButtonFocus()); + //setUnfocusTexture(style->getButtonUnfocus()); + //_pressed_focus_tx = style->getButtonPressedFocus(); + //_pressed_unfocus_tx = style->getButtonPressedUnfocus(); } @@ -51,13 +52,13 @@ void Button::release(unsigned int mouse_button) _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; |
