mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Options button is now working in the character selection screen in IHNM
svn-id: r27480
This commit is contained in:
@@ -1627,12 +1627,21 @@ void Interface::update(const Point& mousePoint, int updateFlag) {
|
||||
break;
|
||||
|
||||
case kPanelChapterSelection:
|
||||
// TODO: panel has silent button
|
||||
if (updateFlag & UPDATE_MOUSEMOVE) {
|
||||
handleChapterSelectionUpdate(mousePoint);
|
||||
} else {
|
||||
if (updateFlag & UPDATE_MOUSECLICK)
|
||||
handleChapterSelectionClick(mousePoint);
|
||||
if (updateFlag & UPDATE_MOUSECLICK) {
|
||||
Rect rect;
|
||||
rect.left = _vm->getDisplayInfo().saveReminderXOffset;
|
||||
rect.top = _vm->getDisplayInfo().saveReminderYOffset;
|
||||
|
||||
rect.right = rect.left + _vm->getDisplayInfo().saveReminderWidth;
|
||||
rect.bottom = rect.top + _vm->getDisplayInfo().saveReminderHeight;
|
||||
if (rect.contains(mousePoint))
|
||||
setMode(kPanelOption);
|
||||
else
|
||||
handleChapterSelectionClick(mousePoint);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user