summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 16:26:19 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-28 16:26:19 +0000
commite5ed6dc4a881e5a687b540a4c74bd559bc47c388 (patch)
tree208717d28cf9a69765cdf6f9b702aeead85ac226 /src/gui/inventory.cpp
parentd0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5 (diff)
downloadmana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.gz
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.bz2
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.xz
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.zip
*** empty log message ***
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r--src/gui/inventory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 8fa4b913..8d001880 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -43,9 +43,9 @@ DIALOG_PLAYER *inventory_player;
void TmwInventory::create(int tempxpos, int tempypos) {
xpos = tempxpos;
ypos = tempypos;
- itemset = load_datafile("./items/item.dat");
- empty = load_bitmap("items/empty.bmp", NULL);
- selected = load_bitmap("items/selected.bmp", NULL);
+ itemset = load_datafile("./data/graphic/items.dat");
+ empty = load_bitmap("./data/graphic/empty.bmp", NULL);
+ selected = load_bitmap("./data/graphic/selected.bmp", NULL);
for(int i = 0; i< 10; i++) {
for(int ii = 0; ii< 10; ii++) {
@@ -163,9 +163,9 @@ void TmwInventory::draw(BITMAP * buffer) {
//the number of that item
if(!bigwindow)
- alfont_textprintf_aa(buffer, gui_font, xpos+items[itemX][itemY].xpos+20, ypos+items[itemX][itemY].ypos+empty->h-15, makecol(0,0,0), "%i",items[itemX][itemY].num);
+ alfont_textprintf_centre_aa(buffer, gui_font, xpos+items[itemX][itemY].xpos+20, ypos+items[itemX][itemY].ypos+empty->h-15, makecol(0,0,0), "%i",items[itemX][itemY].num);
else
- alfont_textprintf_aa(buffer, gui_font, xpos+items[itemX][itemY].xpos+20, ypos+items[itemX][itemY].ypos+empty->h-15, makecol(0,0,0), "%i",items[itemX][itemY].num);
+ alfont_textprintf_centre_aa(buffer, gui_font, xpos+items[itemX][itemY].xpos+20, ypos+items[itemX][itemY].ypos+empty->h-15, makecol(0,0,0), "%i",items[itemX][itemY].num);
}
}