45 Popup(
"SkillPopup",
"skillpopup.xml"),
112 if ((
skill ==
nullptr) ||
113 (
skill->data ==
nullptr) ||
133 std::string description =
skill->data->description;
134 std::string effect =
skill->skillEffect;
135 if (description.empty())
137 description = effect;
146 _(
"Level: %d / %d"), level,
skill->level),
151 if (
skill->level != 0)
155 _(
"Level: %d"),
skill->level),
172 castStr =
_(
"Default");
176 castStr =
_(
"Target");
180 castStr =
_(
"Mouse position");
184 castStr =
_(
"Self position");
197 castStr.c_str()), 196);
217 if (
skill->skillEffect.empty())
220 (numRowsDesc + numRowsLevel + numRowsCast + 1) * height);
228 (numRowsDesc + numRowsLevel + numRowsEffect + numRowsCast + 1) *
232 (numRowsDesc + numRowsEffect + 1) * height);
234 (numRowsDesc + numRowsEffect + 2) * height);
virtual void add(Widget *const widget)
void setForegroundColorAll(const Color &color1, const Color &color2)
void setCaption(const std::string &caption)
void setEditable(const bool editable)
unsigned int getNumberOfRows() const
void setForegroundColorAll(const Color &color1, const Color &color2)
void setTextWrapped(const std::string &text, const int minDimension)
bool skill(InputEvent &event)
std::string strprintf(const char *const format,...)