22 #ifndef GUI_WIDGETS_SKILLRECTANGLELISTBOX_H
23 #define GUI_WIDGETS_SKILLRECTANGLELISTBOX_H
31 #include "gui/viewport.h"
42 #include "render/graphics.h"
165 graphics->fillRectangle(
Rect(
x,
y,
195 graphics->drawImage(
data->icon,
251 if (posX == e->
x && posY == e->
y)
271 if (posX == e->
x && posY == e->
y)
284 if (
skill ==
nullptr)
287 skill->customSelectedLevel,
288 skill->customCastType,
289 skill->customOffsetX,
290 skill->customOffsetY);
307 if (
skill ==
nullptr)
323 if (
skill ==
nullptr)
328 if ((model !=
nullptr) &&
338 const int eventX =
event.getX();
345 eventY <=
y + height)
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)
SkillInfo * getSkillAt(const int i) const
int getNumberOfElements()
Color mForegroundSelectedColor2
const SkillInfo * getSkillByEvent(const MouseEvent &event) const
void mouseMoved(MouseEvent &event)
void mousePressed(MouseEvent &event)
int getSelectionByEvent(const MouseEvent &event) const
void safeDraw(Graphics *const graphics)
void mouseDragged(MouseEvent &event)
void mouseExited(MouseEvent &event)
Color mForegroundSelectedColor
void mouseReleased(MouseEvent &event)
void setSelected(const int selected)
SkillRectangleListBox(const Widget2 *const widget, SkillModel *const model)
void draw(Graphics *const graphics)
SkillInfo * getSelectedInfo() const
int getOption(const std::string &name) const
static std::string getThemePath()
Skin * load(const std::string &filename, const std::string &filename2, const bool full, const std::string &defaultPath)
float getMinimumOpacity() const
#define A_DELETE_COPY(func)
bool skill(InputEvent &event)