summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-01 23:30:11 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-01 23:30:11 +0000
commit4c03aa013fa6ffae784072bfef98330a569694a4 (patch)
treee7e8835c4960539475ef78c0b7205176f2f866c4 /src
parent712977897eedef54622039c1ae27f1dc9a237e93 (diff)
downloadmana-4c03aa013fa6ffae784072bfef98330a569694a4.tar.gz
mana-4c03aa013fa6ffae784072bfef98330a569694a4.tar.bz2
mana-4c03aa013fa6ffae784072bfef98330a569694a4.tar.xz
mana-4c03aa013fa6ffae784072bfef98330a569694a4.zip
Added setup
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp7
-rw-r--r--src/graphic/graphic.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9d26add8..41c5065d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -35,6 +35,7 @@
#include "./gui/inventory.h"
#include "./gui/shop.h"
#include "./gui/npc.h"
+#include "./gui/setup.h"
#include "./graphic/graphic.h"
#include "./sound/sound.h"
@@ -229,11 +230,15 @@ void do_input() {
action_time = false;
//alert("","","","","",0,0);
}
+
if(key[KEY_F10] && action_time==true) {
screen_mode = 1-(screen_mode-1)+1;
if(set_gfx_mode(screen_mode, 800, 600, 0, 0))
error(allegro_error);
- }
+ }
+
+ if(key[KEY_F11] && action_time==true)
+ show_player_setup = true;
if(key[KEY_ENTER]) {
if(strcmp(speech, "")!=0) {
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 85dfa27c..880b2724 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -25,6 +25,7 @@
#include "graphic.h"
#include "2xsai.h"
+#include "../gui/setup.h"
#define TILESET_W 480
#define TILESET_H 320
@@ -217,6 +218,7 @@ 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);
@@ -558,7 +560,7 @@ void do_graphic(void) {
// character status display
update_stats_dialog();
gui_update(stats_player);
-
+ update_setup();
draw_sprite(vpage[page_num], mouse_sprite, mouse_x, mouse_y);