mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
Added Script::getCenterOffset()
svn-id: r41796
This commit is contained in:
parent
792e77e653
commit
c967db5fa0
@ -390,8 +390,8 @@ void Draw::printTextCentered(int16 id, int16 left, int16 top, int16 right,
|
||||
adjustCoords(1, &left, &top);
|
||||
adjustCoords(1, &right, &bottom);
|
||||
|
||||
if (READ_LE_UINT16(_vm->_game->_script->getData() + 0x7E) != 0) {
|
||||
_vm->_game->_script->call(READ_LE_UINT16(_vm->_game->_script->getData() + 0x7E));
|
||||
if (_vm->_game->_script->getCenterOffset() != 0) {
|
||||
_vm->_game->_script->call(_vm->_game->_script->getCenterOffset());
|
||||
|
||||
WRITE_VAR(17, (uint32) id);
|
||||
WRITE_VAR(18, (uint32) left);
|
||||
|
@ -424,6 +424,8 @@ bool Script::getTOTProperties() {
|
||||
|
||||
_startOffset = READ_LE_UINT32(_totData + 100);
|
||||
|
||||
_centerOffset = READ_LE_UINT16(_totData + 126);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -540,6 +542,10 @@ uint32 Script::getStartOffset() const {
|
||||
return _startOffset;
|
||||
}
|
||||
|
||||
uint32 Script::getCenterOffset() const {
|
||||
return _centerOffset;
|
||||
}
|
||||
|
||||
uint32 Script::getVariablesCount(const char *fileName, GobEngine *vm) {
|
||||
if (!vm->_dataIO->existData(fileName))
|
||||
return 0;
|
||||
|
@ -127,6 +127,7 @@ public:
|
||||
uint8 getExFileNumber () const;
|
||||
uint8 getCommunHandling () const;
|
||||
uint32 getStartOffset () const;
|
||||
uint32 getCenterOffset () const;
|
||||
|
||||
static uint32 getVariablesCount(const char *fileName, GobEngine *vm);
|
||||
|
||||
@ -148,16 +149,17 @@ private:
|
||||
|
||||
int16 _lomHandle;
|
||||
|
||||
uint8 _versionMajor;
|
||||
uint8 _versionMinor;
|
||||
uint32 _variablesCount;
|
||||
uint32 _textsOffset;
|
||||
uint32 _resourcesOffset;
|
||||
uint16 _animDataSize;
|
||||
uint8 _imFileNumber;
|
||||
uint8 _exFileNumber;
|
||||
uint8 _communHandling;
|
||||
uint32 _startOffset;
|
||||
uint8 _versionMajor;
|
||||
uint8 _versionMinor;
|
||||
uint32 _variablesCount;
|
||||
uint32 _textsOffset;
|
||||
uint32 _resourcesOffset;
|
||||
uint16 _animDataSize;
|
||||
uint8 _imFileNumber;
|
||||
uint8 _exFileNumber;
|
||||
uint8 _communHandling;
|
||||
uint32 _startOffset;
|
||||
uint16 _centerOffset;
|
||||
|
||||
Common::Stack<CallEntry> _callStack;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user