33 #include "render/graphics.h"
41 const std::string &skin,
42 const std::string &selectedSkin) :
48 mSelectedBackground(),
53 mDrawBackground(false),
56 init(skin, selectedSkin);
60 const std::string &skin,
61 const std::string &selectedSkin) :
67 mSelectedBackground(),
72 mDrawBackground(false),
75 init(skin, selectedSkin);
97 name =
"playerbox.xml";
100 "playerbox_background.xml",
103 if (
mSkin !=
nullptr)
110 if (selectedName.empty())
111 selectedName =
"playerboxselected.xml";
114 "playerbox_background.xml",
120 for (
int f = 0; f < 9; f ++)
122 for (
int f = 0; f < 9; f ++)
141 for (
int a = 0; a < 9; a++)
void drawBasic(Graphics *const graphics, const int x, const int y) const
virtual void drawImageRect(const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0
void removeDragged(const Widget *const widget)
MouseButtonT getButton() const
void draw(Graphics *const graphics)
ImageRect mSelectedBackground
void init(std::string name, std::string selectedName)
void mouseReleased(MouseEvent &event)
void safeDrawFrame(Graphics *const graphics)
void drawFrame(Graphics *const graphics)
PlayerBox(Widget2 *const widget, Being *const being, const std::string &skin, const std::string &selectedSkin)
void safeDraw(Graphics *const graphics)
int getOption(const std::string &name) const
static void unloadRect(const ImageRect &rect, const int start, const int end)
Skin * loadSkinRect(ImageRect &image, const std::string &name, const std::string &name2, const int start, const int end)
static const int mapTileSize
#define BLOCK_START(name)