summaryrefslogtreecommitdiffstats
path: root/src/UI
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/UI/InventoryWindow.cpp1
-rw-r--r--src/UI/SlotArea.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/UI/InventoryWindow.cpp b/src/UI/InventoryWindow.cpp
index 0f876e559..571651d20 100644
--- a/src/UI/InventoryWindow.cpp
+++ b/src/UI/InventoryWindow.cpp
@@ -19,6 +19,7 @@ cInventoryWindow::cInventoryWindow(cPlayer & a_Player) :
m_SlotAreas.push_back(new cSlotAreaArmor(*this));
m_SlotAreas.push_back(new cSlotAreaInventory(*this));
m_SlotAreas.push_back(new cSlotAreaHotBar(*this));
+ m_SlotAreas.push_back(new cSlotAreaShield(*this));
}
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index 005ba6e7f..5a94a26af 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -145,6 +145,23 @@ public:
+/** Handles the shield of each player */
+class cSlotAreaShield :
+ public cSlotAreaInventoryBase
+{
+ typedef cSlotAreaInventoryBase super;
+
+public:
+ cSlotAreaShield(cWindow & a_ParentWindow) :
+ cSlotAreaInventoryBase(cInventory::invShieldCount, cInventory::invShieldOffset, a_ParentWindow)
+ {
+ }
+};
+
+
+
+
+
/** Handles the armor area of the player's inventory */
class cSlotAreaArmor :
public cSlotAreaInventoryBase