summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 21:14:38 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 21:14:38 (GMT)
commitdf3b1e2a6210b45df8bcace1db81a0a0881efbab (patch)
tree520f92934157c28b9887fa3107ec9c4a82c73f99 /src/interface
parentc14a008d463dab4e6e2168fa28afb26384432b36 (diff)
downloadpowder-df3b1e2a6210b45df8bcace1db81a0a0881efbab.zip
powder-df3b1e2a6210b45df8bcace1db81a0a0881efbab.tar.gz
Implement search for DirectoryList
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/Textbox.cpp3
-rw-r--r--src/interface/Textbox.h1
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;