fixed savename drawing.
svn-id: r12074
This commit is contained in:
parent
a55c9976e2
commit
82ef464a69
1 changed files with 6 additions and 1 deletions
|
@ -284,6 +284,8 @@ uint8 SwordControl::getClicks(uint8 mode, uint8 *retVal) {
|
||||||
if (_buttons[cnt]->wasClicked(_mouseX, _mouseY)) {
|
if (_buttons[cnt]->wasClicked(_mouseX, _mouseY)) {
|
||||||
_selectedButton = cnt;
|
_selectedButton = cnt;
|
||||||
_buttons[cnt]->setSelected(1);
|
_buttons[cnt]->setSelected(1);
|
||||||
|
if (_buttons[cnt]->isSaveslot())
|
||||||
|
showSavegameNames();
|
||||||
}
|
}
|
||||||
if (_mouseState & BS1L_BUTTON_UP) {
|
if (_mouseState & BS1L_BUTTON_UP) {
|
||||||
for (uint8 cnt = 0; cnt < _numButtons; cnt++)
|
for (uint8 cnt = 0; cnt < _numButtons; cnt++)
|
||||||
|
@ -295,8 +297,11 @@ uint8 SwordControl::getClicks(uint8 mode, uint8 *retVal) {
|
||||||
_selectedButton = 255;
|
_selectedButton = 255;
|
||||||
return handleButtonClick(_buttons[cnt]->_id, mode, retVal);
|
return handleButtonClick(_buttons[cnt]->_id, mode, retVal);
|
||||||
}
|
}
|
||||||
if (_selectedButton < _numButtons)
|
if (_selectedButton < _numButtons) {
|
||||||
_buttons[_selectedButton]->setSelected(0);
|
_buttons[_selectedButton]->setSelected(0);
|
||||||
|
if (_buttons[_selectedButton]->isSaveslot())
|
||||||
|
showSavegameNames();
|
||||||
|
}
|
||||||
_selectedButton = 255;
|
_selectedButton = 255;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue