diff options
Diffstat (limited to 'engines/pegasus/items')
-rwxr-xr-x | engines/pegasus/items/itemdragger.cpp | 8 | ||||
-rwxr-xr-x | engines/pegasus/items/itemdragger.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/engines/pegasus/items/itemdragger.cpp b/engines/pegasus/items/itemdragger.cpp index 79cd101e29..4e3a9f1419 100755 --- a/engines/pegasus/items/itemdragger.cpp +++ b/engines/pegasus/items/itemdragger.cpp @@ -129,9 +129,6 @@ void SpriteDragger::pinPointInRect(const Common::Rect &r, Common::Point &pt) { ItemDragger::ItemDragger(PegasusEngine *owner) : _inventoryDropSpot(kInventoryDropSpotID), _biochipDropSpot(kBiochipDropSpotID), _inventoryHighlight(kInventoryDropHighlightID), _biochipHighlight(kBiochipDropHighlightID) { _owner = owner; - - _inventoryHighlight.setBounds(Common::Rect(76, 334, 172, 430)); - _biochipHighlight.setBounds(Common::Rect(364, 334, 460, 430)); Common::Rect r(kInventoryDropLeft, kInventoryDropTop, kInventoryDropRight, kInventoryDropBottom); _inventoryDropSpot.setArea(r); @@ -185,4 +182,9 @@ void ItemDragger::exitHotspot(Hotspot *spot) { _draggingSprite->setCurrentFrameIndex(0); } +void ItemDragger::setHighlightBounds() { + _inventoryHighlight.setBounds(Common::Rect(76, 334, 172, 430)); + _biochipHighlight.setBounds(Common::Rect(364, 334, 460, 430)); +} + } // End of namespace Pegasus diff --git a/engines/pegasus/items/itemdragger.h b/engines/pegasus/items/itemdragger.h index 3775fb2ceb..69612316f3 100755 --- a/engines/pegasus/items/itemdragger.h +++ b/engines/pegasus/items/itemdragger.h @@ -26,6 +26,7 @@ #ifndef PEGASUS_ITEMS_ITEMDRAGGER_H #define PEGASUS_ITEMS_ITEMDRAGGER_H +#include "pegasus/elements.h" #include "pegasus/input.h" namespace Pegasus { @@ -73,7 +74,8 @@ class ItemDragger : public SpriteDragger { public: ItemDragger(PegasusEngine *); virtual ~ItemDragger() {} - + + void setHighlightBounds(); void startTracking(const Input &); void stopTracking(const Input &); bool stopTrackingInput(const Input &); |