summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-24 23:33:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-24 23:33:32 (GMT)
commit35858ef6073092f8447bbec8b18b768061cf8bd0 (patch)
tree1ad7e7e9272f6a640289bc422ebe7d34fe025bf0 /src/interface
parent04e4a2346d3d7ef6e0f0b38d8eafc928dc6e30bd (diff)
downloadpowder-35858ef6073092f8447bbec8b18b768061cf8bd0.zip
powder-35858ef6073092f8447bbec8b18b768061cf8bd0.tar.gz
Fix textbox
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/Engine.cpp2
-rw-r--r--src/interface/Textbox.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp
index a505635..9778a5d 100644
--- a/src/interface/Engine.cpp
+++ b/src/interface/Engine.cpp
@@ -144,7 +144,7 @@ void Engine::Tick(float dt)
{
state_->Position.Y += windowTargetPosition.Y/20;
}*/
- windowOpenState += 0.05f*dt;
+ windowOpenState += 0.05f;//*dt;
}
/*if(statequeued_ != NULL)
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp
index 380ad59..328ccb5 100644
--- a/src/interface/Textbox.cpp
+++ b/src/interface/Textbox.cpp
@@ -1,4 +1,5 @@
#include <string>
+#include <iostream>
#include <stdexcept>
#include "Config.h"
#include "Global.h"
@@ -157,6 +158,7 @@ void Textbox::OnKeyPress(int key, bool shift, bool ctrl, bool alt)
if(cursor == text.length())
{
text += key;
+ //std::cout << key << std::endl;
}
else
{