summaryrefslogtreecommitdiff
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
parentd0ac5ca746dc2658ee6a7a8480fa84ad57b0eee5 (diff)
downloadmana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.gz
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.bz2
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.tar.xz
mana-e5ed6dc4a881e5a687b540a4c74bd559bc47c388.zip
*** empty log message ***
-rw-r--r--data/graphic/empty.bmpbin0 -> 3126 bytes
-rw-r--r--data/graphic/selected.bmpbin0 -> 3126 bytes
-rw-r--r--src/gui/inventory.cpp10
3 files changed, 5 insertions, 5 deletions
diff --git a/data/graphic/empty.bmp b/data/graphic/empty.bmp
new file mode 100644
index 00000000..15f630a9
--- /dev/null
+++ b/data/graphic/empty.bmp
Binary files differ
diff --git a/data/graphic/selected.bmp b/data/graphic/selected.bmp
new file mode 100644
index 00000000..ffeb02f5
--- /dev/null
+++ b/data/graphic/selected.bmp
Binary files differ
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);
}
}