29 #include "gui/viewport.h"
44 const unsigned number) :
93 if (selectedId >= 0 && itemId == selectedId)
103 if (spell !=
nullptr)
109 if (image !=
nullptr)
111 image->setAlpha(1.0F);
127 BLOCK_END(
"SpellShortcutContainer::draw")
156 if (selectedId >= 0 && itemId == selectedId)
166 if (spell !=
nullptr)
172 if (image !=
nullptr)
174 image->setAlpha(1.0F);
190 BLOCK_END(
"SpellShortcutContainer::draw")
210 if (spell !=
nullptr)
290 if (selectedId != itemId)
294 if ((spell !=
nullptr) && !spell->
isEmpty())
324 if ((spell !=
nullptr) && (
popupMenu !=
nullptr))
351 if ((spell !=
nullptr) && !spell->
isEmpty())
DragDropSourceT getSource() const
void setItem(const int item)
void dragCommand(const TextCommand *const command, const DragDropSourceT source, const int tag)
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
virtual void setColor(const Color &color)
virtual void drawRectangle(const Rect &rectangle)=0
void setItemSelected(const int itemId)
MouseButtonT getButton() const
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 swap(const int id1, const int id2)
void invoke(const int spellId) const
TextCommand * getSpell(const int spellId) const
void mouseExited(MouseEvent &event)
SpellShortcutContainer(Widget2 *const widget, const unsigned number)
int getItemByIndex(const int index) const
void draw(Graphics *const graphics)
void mousePressed(MouseEvent &event)
void mouseMoved(MouseEvent &event)
void setSkin(const Widget2 *const widget, Skin *const skin)
void safeDraw(Graphics *const graphics)
void mouseReleased(MouseEvent &event)
void widgetHidden(const Event &event)
~SpellShortcutContainer()
void mouseDragged(MouseEvent &event)
int getSelectedItem() const
void setItemSelected(const int itemId)
int getItem(const size_t index) const
static unsigned int getSpellsCount()
std::string getSymbol() const
const unsigned int SHORTCUT_TABS
ItemShortcut * itemShortcut[SHORTCUT_TABS]
#define BLOCK_START(name)
ShortcutWindow * itemShortcutWindow
SpellManager * spellManager
const unsigned int SPELL_SHORTCUT_ITEMS
SpellShortcut * spellShortcut