aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-24 08:15:51 -0400
committerPaul Gilbert2016-07-10 16:11:58 -0400
commitaf06188baedf10247893c6f964462c74eac5f446 (patch)
treec4d2ef57fce6e3bd13db1d584c7f6df24f8db4cc /engines/titanic/pet_control/pet_glyphs.cpp
parent4180e85bc0da500c347a3c5076ec7e6921e8daff (diff)
downloadscummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.gz
scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.bz2
scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.zip
TITANIC: Implementing CPetRooms methods
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_glyphs.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.cpp b/engines/titanic/pet_control/pet_glyphs.cpp
index 8ed8fcf47c..8f8d8ba331 100644
--- a/engines/titanic/pet_control/pet_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_glyphs.cpp
@@ -307,7 +307,7 @@ bool CPetGlyphs::MouseButtonDownMsg(const Point &pt) {
CPetGlyph *glyph = getGlyph(index);
if (glyph) {
if (_highlightIndex == index) {
- glyph->proc28(glyphRect);
+ glyph->MouseButtonDownMsg(glyphRect);
glyph->proc14();
} else {
changeHighlight(index);
@@ -426,4 +426,16 @@ void CPetGlyphs::endDragging() {
_dragGlyph = nullptr;
}
+bool CPetGlyphs::highlighted14() {
+ if (_highlightIndex != -1) {
+ CPetGlyph *pet = getGlyph(_highlightIndex);
+ if (pet) {
+ pet->proc14();
+ return true;
+ }
+ }
+
+ return false;
+}
+
} // End of namespace Titanic