void DreamWebEngine::lastDest() { commandOnlyCond(29, 219); if (!(_mouseButton & 1) || _oldButton == 1) return; // nodd do { _destPos--; if (_destPos == 0xFF) _destPos = 15; // first destination } while (!getLocation(_destPos)); _newTextLine = 1; delTextLine(); delPointer(); showPanel(); showMan(); showArrows(); locationPic(); underTextLine(); readMouse(); showPointer(); workToScreen(); delPointer(); }
void DreamWebEngine::lookAtPlace() { commandOnlyCond(27, 224); if (!(_mouseButton & 1) || _mouseButton == _oldButton || _destPos >= 15) return; // noinfo delPointer(); delTextLine(); getUnderCentre(); showFrame(_newplaceGraphics3, 60, 72, 0, 0); showFrame(_newplaceGraphics3, 60, 72 + 55, 4, 0); if (_foreignRelease) showFrame(_newplaceGraphics3, 60, 72+55+21, 4, 0); const uint8 *string = (const uint8 *)_travelText.getString(_destPos); findNextColon(&string); uint16 y = (_foreignRelease) ? 84 + 4 : 84; printDirect(&string, 63, &y, 191, 191 & 1); workToScreenM(); hangOnP(500); _pointerMode = 0; _pointerFrame = 0; putUnderCentre(); workToScreenM(); }
void DreamWebEngine::inventory() { if (_vars._manDead == 1 || _vars._watchingTime != 0) { blank(); return; } commandOnlyCond(32, 239); if (_mouseButton == _oldButton) return; if (!(_mouseButton & 1)) // only on left mouse button return; _timeCount = 0; _pointerMode = 0; _inMapArea = 0; animPointer(); createPanel(); showPanel(); examIcon(); showMan(); showExit(); underTextLine(); _pickUp = 0; _invOpen = 2; openInv(); readMouse(); showPointer(); workToScreen(); delPointer(); _openedOb = 255; examineOb(false); }
void DreamWebEngine::destSelect() { commandOnlyCond(30, 222); if (!(_mouseButton & 1) || _oldButton == 1) return; // notrav _newLocation = _destPos; }
void DreamWebEngine::incRyanPage() { commandOnlyCond(31, 222); if (_mouseButton == _oldButton || !(_mouseButton & 1)) return; _vars._ryanPage = (_mouseX - (kInventx + 167)) / 18; delPointer(); fillRyan(); readMouse(); showPointer(); workToScreen(); delPointer(); }
void DreamWebEngine::examineInventory() { commandOnlyCond(32, 249); if (!(_mouseButton & 1)) return; createPanel(); showPanel(); showMan(); showExit(); examIcon(); _pickUp = 0; _invOpen = 2; openInv(); workToScreenM(); }