diff options
author | Paul Gilbert | 2016-04-25 22:42:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:12:03 -0400 |
commit | 02bb9510aa3ae99d063e21a6e4c63479b9320d3f (patch) | |
tree | bedd9b6bce22e179776f07e9a20e7d68735dde4c /engines/titanic/pet_control/pet_conversations.cpp | |
parent | 1512545f28c805fd4083be746220f77b72463130 (diff) | |
download | scummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.tar.gz scummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.tar.bz2 scummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.zip |
TITANIC: Implemented CPetConversations setup
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; } |