diff options
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/Textbox.cpp | 3 | ||||
| -rw-r--r-- | src/interface/Textbox.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index 54c6e75..ad5597f 100644 --- a/src/interface/Textbox.cpp +++ b/src/interface/Textbox.cpp @@ -14,7 +14,8 @@ Textbox::Textbox(Point position, Point size, std::string textboxText, std::strin actionCallback(NULL), masked(false), border(true), - mouseDown(false) + mouseDown(false), + limit(0) { placeHolder = textboxPlaceholder; diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index 95588cb..f975bd7 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -20,6 +20,7 @@ class Textbox : public Label { friend class TextboxAction; protected: + size_t limit; bool mouseDown; bool masked, border; int cursor, cursorPositionX, cursorPositionY; |
