From 9ff12dbc01d2a56aa29f1d6275876b8190e69ba5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 21 Nov 2002 15:20:52 +0000 Subject: Implemented EditTextWidget; fixed Add Game/Remove Game in launcher; make use of EditTextWidget in EditGameDialog; various other tweaks svn-id: r5665 --- gui/widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/widget.cpp') diff --git a/gui/widget.cpp b/gui/widget.cpp index 1451dce773..b3c4aa4a58 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -101,7 +101,7 @@ void StaticTextWidget::setValue(int value) void StaticTextWidget::drawWidget(bool hilite) { NewGui *gui = _boss->getGui(); - gui->drawString(_label.c_str(), _x, _y, _w, gui->_textcolor, _align); + gui->drawString(_label, _x, _y, _w, gui->_textcolor, _align); } @@ -125,7 +125,7 @@ void ButtonWidget::handleMouseUp(int x, int y, int button, int clickCount) void ButtonWidget::drawWidget(bool hilite) { NewGui *gui = _boss->getGui(); - gui->drawString(_label.c_str(), _x, _y, _w, + gui->drawString(_label, _x, _y, _w, !isEnabled() ? gui->_color : hilite ? gui->_textcolorhi : gui->_textcolor, _align); } @@ -195,7 +195,7 @@ void CheckboxWidget::drawWidget(bool hilite) gui->fillRect(_x + 2, _y + 2, 10, 10, gui->_bgcolor); // Finally draw the label - gui->drawString(_label.c_str(), _x + 20, _y + 3, _w, gui->_textcolor); + gui->drawString(_label, _x + 20, _y + 3, _w, gui->_textcolor); } #pragma mark - -- cgit v1.2.3