summaryrefslogtreecommitdiff
path: root/library/include
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-22 18:18:19 +0400
committerAlexander Gavrilov2012-08-22 18:18:19 +0400
commit7987ea9a9877a4e9f44492210784c7e8d7f94bb9 (patch)
tree768bd5aacaba64be23592b0a93f99ec8dd733b3d /library/include
parent6e8b68fb29c52f1782938bf7aa564a516079bf61 (diff)
downloaddfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.gz
dfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.bz2
dfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.xz
Put some compatibility features into the base dfhack viewscreen.
Diffstat (limited to 'library/include')
-rw-r--r--library/include/modules/Screen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/include/modules/Screen.h b/library/include/modules/Screen.h
index 10b6afb2..ce3f32ed 100644
--- a/library/include/modules/Screen.h
+++ b/library/include/modules/Screen.h
@@ -117,12 +117,21 @@ namespace DFHack
}
class DFHACK_EXPORT dfhack_viewscreen : public df::viewscreen {
+ df::coord2d last_size;
+ void check_resize();
+
+ protected:
+ bool text_input_mode;
+
public:
dfhack_viewscreen();
virtual ~dfhack_viewscreen();
static bool is_instance(df::viewscreen *screen);
+ virtual void logic();
+ virtual void render();
+
virtual int8_t movies_okay() { return 1; }
virtual bool key_conflict(df::interface_key key);