diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-12 21:17:19 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-12 21:17:19 (GMT) |
| commit | 86b7a118004c9f9797d4d898dd587000e5178cea (patch) | |
| tree | d2484bc8120fd6f3ee108cd51e026f1d5ebe860f /src/interface/AvatarButton.h | |
| parent | e6bca489c9aae88f1c7bbb44c4e2df71f481cbd3 (diff) | |
| download | powder-86b7a118004c9f9797d4d898dd587000e5178cea.zip powder-86b7a118004c9f9797d4d898dd587000e5178cea.tar.gz | |
Make thumbnailbroker more general purpose, image requests for requestbroker, avatars in previewview
Diffstat (limited to 'src/interface/AvatarButton.h')
| -rw-r--r-- | src/interface/AvatarButton.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interface/AvatarButton.h b/src/interface/AvatarButton.h index b336256..d946ddf 100644 --- a/src/interface/AvatarButton.h +++ b/src/interface/AvatarButton.h @@ -6,6 +6,7 @@ #include "Component.h" #include "graphics/Graphics.h" #include "interface/Colour.h" +#include "client/RequestListener.h" namespace ui { @@ -17,7 +18,7 @@ public: virtual ~AvatarButtonAction() {} }; -class AvatarButton : public Component +class AvatarButton : public Component, public RequestListener { VideoBuffer * avatar; std::string name; @@ -37,6 +38,8 @@ public: virtual void Draw(const Point& screenPos); virtual void Tick(float dt); + virtual void OnResponseReady(void * imagePtr); + virtual void DoAction(); void SetUsername(std::string username) { name = username; } |
