diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_conversations.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_conversations.cpp | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_conversations.cpp b/engines/titanic/pet_control/pet_conversations.cpp index 2fbee9ed6e..3afd5ee380 100644 --- a/engines/titanic/pet_control/pet_conversations.cpp +++ b/engines/titanic/pet_control/pet_conversations.cpp @@ -34,14 +34,55 @@ void CPetConversations::save(SimpleFile *file, int indent) const { void CPetConversations::load(SimpleFile *file, int param) { _text2.load(file, param); - _text1.load(file, param); + _log.load(file, param); for (int idx = 0; idx < 3; ++idx) _valArray3[idx] = file->readNumber(); } bool CPetConversations::isValid(CPetControl *petControl) { - // TODO + return setupControl(petControl); +} + +bool CPetConversations::setupControl(CPetControl *petControl) { + if (petControl) { + _petControl = petControl; + + _val3.setBounds(Rect(0, 0, 21, 130)); + _val3.translate(20, 350); + + const Rect rect1(0, 0, 22, 36); + _gfxList[0].setBounds(rect1); + _gfxList[0].translate(20, 359); + _gfxList[1].setBounds(rect1); + _gfxList[1].translate(20, 397); + _gfxList[2].setBounds(rect1); + _gfxList[2].translate(20, 434); + + const Rect rect2(0, 0, 11, 24); + _val1.setBounds(rect2); + _val1.translate(87, 374); + _val2.setBounds(rect2); + _val2.translate(87, 421); + + const Rect rect3(0, 0, 39, 39); + _val7.setBounds(rect3); + _val7.translate(546, 372); + _val8.setBounds(rect3); + _val8.translate(546, 418); + + _val6.setBounds(Rect(0, 0, 37, 70)); + _val6.translate(46, 374); + _val9.setBounds(Rect(0, 0, 435, 3)); + _val9.translate(102, 441); + + const Rect rect4(0, 0, 33, 66); + for (int idx = 0; idx < 9; ++idx) { + _valArray2[idx].setBounds(rect4); + _valArray2[idx].translate(48, 376); + } + } + return true; } |