aboutsummaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-02-25 21:12:35 -0500
committerNathan Vance <nathav63@gmail.com>2015-02-25 21:12:35 -0500
commit2a07633968f1b80fb7e602ba2c5952af3c10e35f (patch)
tree36871a529c791821e61a07bd79cfae2e1212b18d /io.c
parentCan select build type (diff)
download7w-2a07633968f1b80fb7e602ba2c5952af3c10e35f.tar.gz
7w-2a07633968f1b80fb7e602ba2c5952af3c10e35f.tar.bz2
7w-2a07633968f1b80fb7e602ba2c5952af3c10e35f.zip
Trade ui implemented
Diffstat (limited to 'io.c')
-rw-r--r--io.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/io.c b/io.c
index 2658203..0515896 100644
--- a/io.c
+++ b/io.c
@@ -179,7 +179,7 @@ int io_printcard(int x, int y, int era, int card)
return y;
}
-void io_printhand(int x, int y, int player, int cursor)
+int io_printhand(int x, int y, int player, int cursor)
{
int *hand = data_gethand(player);
int i;
@@ -193,8 +193,14 @@ void io_printhand(int x, int y, int player, int cursor)
cursed = 1;
}
}
- if(cursed) io_printcard(x, y, data_getera(), hand[cursor]);
- else io_printborder(x, y, 28);
+ y = io_printtext(x, y, 28, " Trade...");
+ if(i == cursor) {
+ mvprintw(y-1, x+25, "*");
+ //trade_print(x, y, player, -1, -1);
+ }
+ else if(cursed) io_printcard(x, y, data_getera(), hand[cursor]);
+ else io_printborder(x, y++, 28);
+ return y;
}
void io_printplain(int x, int y, char *s)
bgstack15