summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-01-04 04:46:02 +0000
committerAaron Marks <nymacro@gmail.com>2005-01-04 04:46:02 +0000
commit52b6be101b78990d5b4523dd5c6523dc5c7c6709 (patch)
tree0990d5d596a0910d037bcab6853ecf9b073939ff /src/graphic/graphic.cpp
parent2be6f298a1c39dff04070588f75a3bed0c495b8b (diff)
downloadmana-client-52b6be101b78990d5b4523dd5c6523dc5c7c6709.tar.gz
mana-client-52b6be101b78990d5b4523dd5c6523dc5c7c6709.tar.bz2
mana-client-52b6be101b78990d5b4523dd5c6523dc5c7c6709.tar.xz
mana-client-52b6be101b78990d5b4523dd5c6523dc5c7c6709.zip
Converted Skills dialog from old gui to Guichan. Files modified: graphics.cpp, graphics.h, game.cpp, main.cpp, skills.h, skills.cpp. Other files are unmodified (timestamp error)
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 3640bde0..f4affd67 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -48,6 +48,7 @@ BuySellDialog *buySellDialog;
InventoryWindow *inventoryWindow;
NpcListDialog *npcListDialog;
NpcTextDialog *npcTextDialog;
+SkillDialog *skillDialog;
void ChatListener::action(const std::string& eventId)
{
@@ -82,8 +83,9 @@ void BuySellListener::action(const std::string& eventId)
buySellDialog->setVisible(false);
}
+/*
DIALOG skill_list_dialog[] = {
- /* (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) (dp2) (dp3) */
+ // (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) (dp2) (dp3)
{ tmw_dialog_proc, 300, 200, 260, 200, 0, 0, 0, 0, 0, 0, (char *)"Stats", NULL, NULL },
{ tmw_button_proc, 450, 376, 50, 20, 255, 0, 'u', D_EXIT, 0, 0, (char *)"&Up", NULL, NULL },
{ tmw_button_proc, 508, 376, 50, 20, 255, 0, 'c', D_EXIT, 0, 0, (char *)"&Close", NULL, NULL },
@@ -91,6 +93,7 @@ DIALOG skill_list_dialog[] = {
{ tmw_text_proc, 304, 326, 40, 20, 0, 0, 0, 0, 0, 0, (char *)skill_points, NULL, NULL },
{ NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL }
};
+*/
char hairtable[14][4][2] = {
// S(x,y) W(x,y) N(x,y) E(x,y)
@@ -189,8 +192,11 @@ GraphicEngine::GraphicEngine() {
npcListDialog = new NpcListDialog(guiTop);
npcListDialog->setVisible(false);
- skill_player = init_dialog(skill_dialog, -1);
- skill_list_player = init_dialog(skill_list_dialog, -1);
+ skillDialog = new SkillDialog(guiTop);
+ skillDialog->setVisible(false);
+
+ //skill_player = init_dialog(skill_dialog, -1);
+ //skill_list_player = init_dialog(skill_list_dialog, -1);
// Give focus to the chat input
chatInput->requestFocus();
@@ -220,10 +226,11 @@ GraphicEngine::~GraphicEngine() {
delete buySellDialog;
delete npcListDialog;
delete npcTextDialog;
+ delete skillDialog;
//delete tileset;
- shutdown_dialog(skill_player);
+ //shutdown_dialog(skill_player);
}
void GraphicEngine::refresh() {
@@ -458,13 +465,16 @@ void GraphicEngine::refresh() {
chatlog.chat_draw(buffer, 8, font);
+ /*
if (show_skill_dialog) {
update_skill_dialog();
if (gui_update(skill_player) == 0) {
show_skill_dialog = false;
}
}
+ */
+ /*
if (show_skill_list_dialog) {
if (gui_update(skill_list_player) == 0) {
int ret = shutdown_dialog(skill_list_player);
@@ -481,6 +491,7 @@ void GraphicEngine::refresh() {
skill_list_player = init_dialog(skill_list_dialog, -1);
}
}
+ */
// Update character status display
statusWindow->update();