diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-02-27 15:00:06 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-02-27 15:00:06 -0500 |
commit | 03b04f383c2897b6177e4feb0eb86b68e377f6dc (patch) | |
tree | f3d914b2010f01a32f59dabaa8b4881faeb9797c /messenger.c | |
parent | Now counts special cards! (diff) | |
download | 7w-03b04f383c2897b6177e4feb0eb86b68e377f6dc.tar.gz 7w-03b04f383c2897b6177e4feb0eb86b68e377f6dc.tar.bz2 7w-03b04f383c2897b6177e4feb0eb86b68e377f6dc.zip |
Added battles
Diffstat (limited to 'messenger.c')
-rw-r--r-- | messenger.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/messenger.c b/messenger.c index 45e872e..8881c9b 100644 --- a/messenger.c +++ b/messenger.c @@ -28,18 +28,19 @@ void clearmessage() void posthelp() { - postmessage(" 7 Wonders Help:\nKeys:\n Arrow keys move cursor\n Return - buys resource\n h - prints this message"); + postmessage(" 7 Wonders Help:\nKeys:\n Arrow keys move cursor\n Return - buys card\n h - prints this message"); } int postoptions(int x, int y) { - int width = 19; + int width = 26; int yorig = y; int cursor = 0; - char* a = "Buy Sell Wonder"; + char* a = "Buy Sell Wonder Cancel"; char* b = " *"; char* c = " *"; char* d = " *"; + char* e = " *"; while(1) { y = yorig; io_printborder(x, y++, width); @@ -47,6 +48,7 @@ int postoptions(int x, int y) if(cursor == 0) y = io_printtext(x, y, width, b); if(cursor == 1) y = io_printtext(x, y, width, c); if(cursor == 2) y = io_printtext(x, y, width, d); + if(cursor == 3) y = io_printtext(x, y, width, e); io_printborder(x, y++, width); switch(io_getkey()) { case LEFT: cursor--; @@ -57,7 +59,7 @@ int postoptions(int x, int y) break; default: break; } - if(cursor < 0) cursor = 2; - cursor = cursor%3; + if(cursor < 0) cursor = 3; + cursor = cursor%4; } } |