24 #ifndef GUI_WIDGETS_SKILLLISTBOX_H
25 #define GUI_WIDGETS_SKILLLISTBOX_H
32 #include "gui/viewport.h"
45 #include "render/graphics.h"
56 ListBox(widget, model,
"skilllistbox.xml"),
62 mSkin->getOption(
"textPadding", 34) : 34),
104 const int usableWidth = width1 - 2 *
mPadding;
117 const int width2 = width1 -
mPadding;
130 usableWidth * 100 / e->
cooldown, 10));
143 const std::string &description =
data->description;
150 if (!description.empty())
190 if (
skill ==
nullptr)
202 if (
skill ==
nullptr)
205 skill->customSelectedLevel,
206 skill->customCastType,
207 skill->customOffsetX,
208 skill->customOffsetY);
223 if (
skill ==
nullptr)
246 if (
skill ==
nullptr)
252 if ((model !=
nullptr) &&
void setItem(const int item)
void dragSkill(const SkillInfo *const info, const DragDropSourceT source, const int tag)
void setItemData(const std::string &data)
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)
void mouseDragged(MouseEvent &event)
void mousePressed(MouseEvent &event)
void mouseReleased(MouseEvent &event)
virtual int getNumberOfElements()=0
virtual void mouseMoved(MouseEvent &event)
void mousePressed(MouseEvent &event)
SkillListBox(const Widget2 *const widget, SkillModel *const model)
unsigned int getRowHeight() const
void mouseReleased(MouseEvent &event)
void draw(Graphics *const graphics)
SkillInfo * getSelectedInfo() const
void mouseDragged(MouseEvent &event)
void mouseExited(MouseEvent &event)
void safeDraw(Graphics *const graphics)
void mouseMoved(MouseEvent &event)
const SkillInfo * getSkillByEvent(const MouseEvent &event) const
SkillInfo * getSkillAt(const int i) const
int getNumberOfElements()
#define A_DELETE_COPY(func)
bool skill(InputEvent &event)