diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-11 12:39:39 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-11 12:39:39 (GMT) |
| commit | 3205df3a2188e6e314d7393381403dd04cd85623 (patch) | |
| tree | 5f3ec4728b3d4edd7eead8a581abead144eb2b07 /src/console/ConsoleView.cpp | |
| parent | 5eb9370fc185103f3f8700f7da31525d5e862f81 (diff) | |
| download | powder-3205df3a2188e6e314d7393381403dd04cd85623.zip powder-3205df3a2188e6e314d7393381403dd04cd85623.tar.gz | |
Saving and loading other flags from GameSave, remove old saveloader
Diffstat (limited to 'src/console/ConsoleView.cpp')
| -rw-r--r-- | src/console/ConsoleView.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/console/ConsoleView.cpp b/src/console/ConsoleView.cpp index 504b28a..bbc624e 100644 --- a/src/console/ConsoleView.cpp +++ b/src/console/ConsoleView.cpp @@ -24,14 +24,14 @@ ConsoleView::ConsoleView(): }; commandField = new ui::Textbox(ui::Point(0, Size.Y-16), ui::Point(Size.X, 16), ""); commandField->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; - commandField->Appearance.VerticalAlign = ui::Appearance::AlignBottom; + commandField->Appearance.VerticalAlign = ui::Appearance::AlignMiddle; commandField->SetActionCallback(new CommandHighlighter(this)); AddComponent(commandField); FocusComponent(commandField); commandField->SetBorder(false); } -void ConsoleView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) +void ConsoleView::DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) { switch(key) { @@ -49,6 +49,9 @@ void ConsoleView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, b case KEY_UP: c->PreviousCommand(); break; + default: + Window::DoKeyPress(key, character, shift, ctrl, alt); + break; } } |
