summaryrefslogtreecommitdiff
path: root/src/resources/npcbuttoninfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-28 18:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-28 18:18:13 +0300
commit8cd16a9a9ca605137276379361b0328af736c2cc (patch)
tree5a0c52367d604c42e0bcd7bdf26665900b179166 /src/resources/npcbuttoninfo.h
parent0cdc936ea83fe265fb6bd1d128b10ff6b53e6254 (diff)
downloadplus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.gz
plus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.bz2
plus-8cd16a9a9ca605137276379361b0328af736c2cc.tar.xz
plus-8cd16a9a9ca605137276379361b0328af736c2cc.zip
Add support for add images into buttons in skinned npc dialogs.
Diffstat (limited to 'src/resources/npcbuttoninfo.h')
-rw-r--r--src/resources/npcbuttoninfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/resources/npcbuttoninfo.h b/src/resources/npcbuttoninfo.h
index 19de87891..d54b7d94c 100644
--- a/src/resources/npcbuttoninfo.h
+++ b/src/resources/npcbuttoninfo.h
@@ -30,15 +30,21 @@ struct NpcButtonInfo final
NpcButtonInfo() :
name(),
value(),
+ image(),
x(0),
- y(0)
+ y(0),
+ imageWidth(16),
+ imageHeight(16)
{
}
std::string name;
std::string value;
+ std::string image;
int x;
int y;
+ int imageWidth;
+ int imageHeight;
};
#endif // RESOURCES_NPCBUTTONINFO_H