30 #include "gui/viewport.h"
49 mEquipedColor(getThemeColor(
ThemeColorId::ITEM_EQUIPPED, 255U)),
50 mEquipedColor2(getThemeColor(
ThemeColorId::ITEM_EQUIPPED_OUTLINE, 255U)),
51 mUnEquipedColor(getThemeColor(
ThemeColorId::ITEM_NOT_EQUIPPED, 255U)),
52 mUnEquipedColor2(getThemeColor(
ThemeColorId::ITEM_NOT_EQUIPPED_OUTLINE,
118 if (image !=
nullptr)
126 image->setAlpha(1.0F);
172 BLOCK_END(
"VirtShortcutContainer::safeDraw")
195 if (image !=
nullptr)
206 image->setAlpha(1.0F);
231 BLOCK_END(
"VirtShortcutContainer::safeDraw")
372 const Item *
const item = inv->
findItem(itemId, itemColor);
374 if ((item !=
nullptr) && (
viewport !=
nullptr))
void dragItem(const Item *const item, const DragDropSourceT source, const int tag)
ItemColor getSelectedColor() const
bool isSourceItemContainer() const
ItemColor getItemColor() const
int getWidth(const std::string &text) const
void drawString(Graphics *const graphics, Color col, const Color &col2, const std::string &text, const int x, const int y)
virtual void drawImage(const Image *const image, int dstX, int dstY)=0
Item * findItem(const int itemId, const ItemColor color) const
Equipped isEquipped() const
MouseButtonT getButton() const
void setItemSelected(const int itemId)
bool isItemSelected() const
int getItem(const size_t index) const
ItemColor getItemColor(const size_t index) const
void setItems(const size_t index, const int itemId, const ItemColor color)
void removeItem(const size_t index)
virtual void setSkin(const Widget2 *const widget, Skin *const skin)
void drawBackground(Graphics *const g)
void safeDrawBackground(Graphics *const g)
int getIndexFromGrid(const int pointX, const int pointY) const
void mousePressed(MouseEvent &event)
void setSkin(const Widget2 *const widget, Skin *const skin)
VirtShortcutContainer(Widget2 *const widget, ShortcutBase *const shortcut)
void widgetHidden(const Event &event)
void draw(Graphics *const graphics)
void mouseDragged(MouseEvent &event)
void mouseMoved(MouseEvent &event)
void mouseExited(MouseEvent &event)
void safeDraw(Graphics *const graphics)
void mouseReleased(MouseEvent &event)
InventoryWindow * inventoryWindow
bool shortcut(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
Inventory * getInventory()
#define BLOCK_START(name)