1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* improved minimap

* live event handling on adventure map
* added CCallback
* minor stuff (as usual)
This commit is contained in:
Michał W. Urbańczyk
2007-08-27 14:15:03 +00:00
parent 4162103cf1
commit 210123ac33
11 changed files with 73 additions and 13 deletions

View File

@@ -99,7 +99,7 @@ public:
void show(); //shows statusbar (with current text)
};
class CMinimap
: public ClickableL, public ClickableR, public Hoverable, public virtual CIntObject
: public ClickableL, public ClickableR, public Hoverable, public MotionInterested, public virtual CIntObject
{
public:
CDefHandler * radar; //radar.def; TODO: radars for maps with custom dimensions
@@ -117,6 +117,7 @@ public:
void clickRight (tribool down);
void clickLeft (tribool down);
void hover (bool on);
void mouseMoved (SDL_MouseMotionEvent & sEvent);
void activate(); // makes button active
void deactivate(); // makes button inactive (but don't deletes)
};