diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 16:03:57 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 16:03:57 -0400 |
| commit | 168b51517682b8d82fdbd6432af7511bb493c85f (patch) | |
| tree | 810d4726ffa9325f5a5d2c345b6ea71a5c849a08 /tools/mapedit/src/widget.h | |
| parent | 8702c11db08f78b6c91ef950ce280f2289b1a6e6 (diff) | |
| download | therapy-168b51517682b8d82fdbd6432af7511bb493c85f.tar.gz therapy-168b51517682b8d82fdbd6432af7511bb493c85f.tar.bz2 therapy-168b51517682b8d82fdbd6432af7511bb493c85f.zip | |
Added preview of tile to be placed under mouse in map editor
Diffstat (limited to 'tools/mapedit/src/widget.h')
| -rw-r--r-- | tools/mapedit/src/widget.h | 3 |
1 files changed, 3 insertions, 0 deletions
| diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index f66b0b2..c8bfb57 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h | |||
| @@ -25,6 +25,7 @@ class MapeditWidget : public wxScrolledWindow { | |||
| 25 | void OnClick(wxMouseEvent& event); | 25 | void OnClick(wxMouseEvent& event); |
| 26 | void OnMouseMove(wxMouseEvent& event); | 26 | void OnMouseMove(wxMouseEvent& event); |
| 27 | void OnMouseUp(wxMouseEvent& event); | 27 | void OnMouseUp(wxMouseEvent& event); |
| 28 | void OnMouseOut(wxMouseEvent& event); | ||
| 28 | 29 | ||
| 29 | private: | 30 | private: |
| 30 | void SetTile(wxPoint pos); | 31 | void SetTile(wxPoint pos); |
| @@ -35,6 +36,8 @@ class MapeditWidget : public wxScrolledWindow { | |||
| 35 | TileWidget* tileWidget; | 36 | TileWidget* tileWidget; |
| 36 | bool mouseIsDown = false; | 37 | bool mouseIsDown = false; |
| 37 | int scale; | 38 | int scale; |
| 39 | wxPoint mousePos; | ||
| 40 | bool mouseIsIn = false; | ||
| 38 | 41 | ||
| 39 | DECLARE_DYNAMIC_CLASS(MapeditWidget); | 42 | DECLARE_DYNAMIC_CLASS(MapeditWidget); |
| 40 | DECLARE_EVENT_TABLE(); | 43 | DECLARE_EVENT_TABLE(); |
