diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-14 15:06:53 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-14 15:06:53 -0600 |
commit | 78c607671bc62daf0901417ffc557f50bbf63f76 (patch) | |
tree | 2fb977a58ec30cf24f9652b934e9c3c6222d8d06 /src | |
parent | 01c1c1874a4ebeef1f4c9ad7844e0eb5afd34217 (diff) | |
download | mana-78c607671bc62daf0901417ffc557f50bbf63f76.tar.gz mana-78c607671bc62daf0901417ffc557f50bbf63f76.tar.bz2 mana-78c607671bc62daf0901417ffc557f50bbf63f76.tar.xz mana-78c607671bc62daf0901417ffc557f50bbf63f76.zip |
Fixed item popups in the equipment window to display the proper item
type colors.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index 0d2097f8..1d9b4721 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -63,6 +63,7 @@ EquipmentWindow::EquipmentWindow(): mSelected(-1) { mItemPopup = new ItemPopup(); + mItemPopup->setOpaque(false); // Control that shows the Player mPlayerBox = new PlayerBox; @@ -235,8 +236,9 @@ void EquipmentWindow::mouseMoved(gcn::MouseEvent &event) int mouseX, mouseY; SDL_GetMouseState(&mouseX, &mouseY); - mItemPopup->setItem(item->getInfo()); - mItemPopup->setOpaque(false); + if (item->getInfo().getName() != mItemPopup->getItemName()) + mItemPopup->setItem(item->getInfo()); + mItemPopup->updateColors(); mItemPopup->view(x + getX(), y + getY()); } else |