diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-12 17:51:50 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-12 17:51:50 +0000 |
commit | 812e679c9befbfe98cc311723b8296df0384515e (patch) | |
tree | fe349e783efc0ee70ab60bcce866bdc4f9b67752 /src/graphic/graphic.cpp | |
parent | 197b684831c9701635fd140bbb06a6c2b3f0fcc7 (diff) | |
download | mana-812e679c9befbfe98cc311723b8296df0384515e.tar.gz mana-812e679c9befbfe98cc311723b8296df0384515e.tar.bz2 mana-812e679c9befbfe98cc311723b8296df0384515e.tar.xz mana-812e679c9befbfe98cc311723b8296df0384515e.zip |
Created setup class and changed to use guichan
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r-- | src/graphic/graphic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 184ede63..efc0637f 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -54,6 +54,8 @@ bool show_skill_list_dialog = false; char npc_button[10] = "Close"; gcn::TextField *chatInput; +Setup *setup; +extern bool show_setup; void ChatListener::action(const std::string& eventId) { @@ -224,7 +226,7 @@ void init_graphic() { 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()); @@ -245,7 +247,6 @@ void init_graphic() { sell_player = init_dialog(sell_dialog, -1); skill_list_player = init_dialog(skill_list_dialog, -1); npc_list_player = init_dialog(npc_list_dialog, -1); - init_setup(); //gui_bitmap = vpage[page_num]; alfont_text_mode(-1); inventory.create(100, 100); @@ -587,8 +588,6 @@ new_tileset->spriteset[0]->draw(vbuffer, 0, 0); // character status display update_stats_dialog(); gui_update(stats_player); - update_setup(); - draw_sprite(vpage[page_num], mouse_sprite, mouse_x, mouse_y); #ifdef WIN32 |