summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-23 14:36:51 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-23 14:36:51 +0000
commit3a9ae4770fcfec80c660fd9351ecea8c3c9bc913 (patch)
tree2f084acc77ac30724641fda88989fbb003b352e0 /src/graphic/graphic.cpp
parentdb4fd250723ad6121059a71f1cac0e87eb91e695 (diff)
downloadmana-client-3a9ae4770fcfec80c660fd9351ecea8c3c9bc913.tar.gz
mana-client-3a9ae4770fcfec80c660fd9351ecea8c3c9bc913.tar.bz2
mana-client-3a9ae4770fcfec80c660fd9351ecea8c3c9bc913.tar.xz
mana-client-3a9ae4770fcfec80c660fd9351ecea8c3c9bc913.zip
Skinned our beautiful text field back!
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 7ce2e93f..7b59f89a 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -25,6 +25,7 @@
#include "2xsai.h"
#include "../gui/gui.h"
#include "../gui/stats.h"
+#include "../gui/textfield.h"
#define TILESET_W 480
#define TILESET_H 320
@@ -215,14 +216,16 @@ void init_graphic() {
clear_bitmap(screen);
chat_background = create_bitmap(592, 100);
- clear_to_color(chat_background, makecol(0,0,0));
+ clear_to_color(chat_background, makecol(0, 0, 0));
// Initialize gui
// Create chat input field
- chatInput = new gcn::TextField();
- chatInput->setPosition(0, SCREEN_H - chatInput->getHeight());
- chatInput->setWidth(592);
+ chatInput = new TextField();
+ chatInput->setPosition(
+ chatInput->getBorderSize(),
+ SCREEN_H - chatInput->getHeight() - chatInput->getBorderSize() -1);
+ chatInput->setWidth(592 - 2 * chatInput->getBorderSize());
ChatListener *chatListener = new ChatListener();
chatInput->setEventId("chatinput");