mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
PETKA: implemented changing hero to chapayev
This commit is contained in:
parent
527488d228
commit
4a88f993ff
@ -130,7 +130,7 @@ void QObjectCase::onMouseMove(int x, int y) {
|
||||
void QObjectCase::onClick(int x, int y) {
|
||||
switch (_clickedObjIndex) {
|
||||
case 0:
|
||||
// setChapayev()
|
||||
g_vm->getQSystem()->setChapayev();
|
||||
break;
|
||||
case 1:
|
||||
g_vm->getQSystem()->togglePanelInterface();
|
||||
|
@ -224,4 +224,14 @@ void QSystem::toggleMapInterface() {
|
||||
}
|
||||
}
|
||||
|
||||
void QSystem::setChapayev() {
|
||||
if (_star->_isActive && _currInterface == _mainInterface.get() && _chapayev->_isShown) {
|
||||
_cursor->show(false);
|
||||
_cursor->_resourceId = 5007;
|
||||
_cursor->returnInvItem();
|
||||
_cursor->_actionType = kActionObjUseChapayev;
|
||||
_cursor->show(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -62,6 +62,8 @@ public:
|
||||
void togglePanelInterface();
|
||||
void toggleMapInterface();
|
||||
|
||||
void setChapayev();
|
||||
|
||||
public:
|
||||
Common::Array<QObject> _objs;
|
||||
Common::Array<QObjectBG> _bgs;
|
||||
|
Loading…
Reference in New Issue
Block a user