Beispiel #1
0
// Personal Nightmare specific
void AGOSEngine::restoreMenu() {
    _wiped = 0;

    _videoLockOut |= 0x80;

    clearVideoWindow(3, 0);

    uint16 oldWindowNum = _windowNum;

    setWindowImage(1, 1);
    setWindowImage(2, 2);

    drawEdging();

    _windowNum = oldWindowNum;

    _videoLockOut |= 0x20;
    _videoLockOut &= ~0x80;
}
Beispiel #2
0
int AGOSEngine_PN::inventoryOn(int val) {
	writeVariable(210, val);
	if (_videoLockOut & 0x10) {
		iconPage();
	} else {
		_videoLockOut |= 0x10;
		_hitAreaList = _invHitAreas;

		_windowArray[2]->textColor = 0;
		windowPutChar(_windowArray[2], 13);

		clearVideoWindow(4, 0);
		drawIconHitBar();

		_objects = _variableArray[211];
		_objectCountS = -1;
		iconPage();
	}
	return 1;
}