summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-17 00:53:51 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-17 00:53:51 +0000
commit3e1403d3cb683cfb164e3cbd1fb39e86871b9e08 (patch)
treecd80b3cb091c4e95c818b2591932bdd79a8a1c4f /src
parentf026360b3015ecefd8c1a200b2f3abe02fc8dd66 (diff)
downloadmana-3e1403d3cb683cfb164e3cbd1fb39e86871b9e08.tar.gz
mana-3e1403d3cb683cfb164e3cbd1fb39e86871b9e08.tar.bz2
mana-3e1403d3cb683cfb164e3cbd1fb39e86871b9e08.tar.xz
mana-3e1403d3cb683cfb164e3cbd1fb39e86871b9e08.zip
Focus that chat input field so that there is no need to click it.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
-rw-r--r--src/graphic/graphic.cpp3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e06105a8..8da35977 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-bin_PROGRAMS = tmw
+bin_PROGRAMS = ../tmw
tmw_SOURCES = sound/sound.cpp \
graphic/2xsai.cpp \
graphic/graphic.cpp \
@@ -10,8 +10,8 @@ tmw_SOURCES = sound/sound.cpp \
gui/setup.cpp \
gui/gui.cpp \
gui/login.cpp \
- gui/button.cpp \
- gui/checkbox.cpp \
+ gui/button.cpp \
+ gui/checkbox.cpp \
gui/char_server.cpp \
gui/char_select.cpp \
gui/inventory.cpp \
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 50b1083c..6bdcf9ba 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -231,6 +231,9 @@ void init_graphic() {
guiTop->add(chatInput);
+ chatInput->requestFocus();
+
+
npc_player = init_dialog(npc_dialog, -1);
position_dialog(npc_dialog, 300, 200);
skill_player = init_dialog(skill_dialog, -1);