62 mPadding(mSkin !=
nullptr ? mSkin->getPadding() : 1),
63 mSpacing(mSkin !=
nullptr ? mSkin->getOption(
"spacing", 3) : 3),
278 for (std::map <std::string, ButtonInfo*>::iterator
300 if (
mSkin !=
nullptr)
302 if (
theme !=
nullptr)
310 const std::string &eventId =
event.getId();
311 const std::map <std::string, ButtonInfo*>::iterator
324 const int iconNumber,
325 const std::string &description,
336 if (image !=
nullptr)
388 Button *
const btn =
dynamic_cast<Button*
>(
event.getSource());
394 getY() +
event.getY(), btn);
421 const int x =
event.getX();
422 const int y =
event.getY();
451 if ((
info ==
nullptr) || (
info->button ==
nullptr))
454 info->button->setVisible(visible);
490 for (std::map <std::string, ButtonInfo*>::iterator
495 if (
info ==
nullptr ||
496 info->button ==
nullptr ||
507 for (
int f = 0; f < 30; f ++)
511 if (str.empty() || str ==
"SET")
514 if ((
info ==
nullptr) || (
info->button ==
nullptr))
521 for (std::map <std::string, ButtonInfo*>::iterator
526 if ((
info ==
nullptr) || (
info->button ==
nullptr))
531 str ==
"SET" || str ==
"WIN",
Visible));
542 const Button *
const btn = *it;
550 for (
int f = i; f < 30; f ++)
580 if (name ==
"autohideButtons")
#define fromBool(val, name)
virtual void add(Widget *const widget)
virtual void safeDrawChildren(Graphics *const graphics)
virtual void logicChildren()
virtual void drawChildren(Graphics *const graphics)
std::string getValue(const std::string &key, const std::string &deflt) const
void deleteKey(const std::string &key)
void addListener(const std::string &key, ConfigListener *const listener)
void setValue(const std::string &key, const std::string &value)
void removeListener(const std::string &key, ConfigListener *const listener)
int getIntValue(const std::string &key) const
bool safeRemove(Widget *const widget)
Widget * getSource() const
Image * get(const size_type i) const
MouseButtonT getButton() const
int getOption(const std::string &name) const
void unload(Skin *const skin)
static ImageSet * getImageSetFromTheme(const std::string &path, const int w, const int h)
void delete_all(Container &c)
#define FOR_EACH(type, iter, array)
bool info(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
#define BLOCK_START(name)
SkillDialog * skillDialog
std::string strprintf(const char *const format,...)