diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-26 19:06:05 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-26 19:06:05 +0800 |
commit | 632edbc87172c2d452637d5ad2f02f2f9d94f3bd (patch) | |
tree | 9eecbfb3c3a5bd98ff87c6634c666b991d33277d | |
parent | 54bd97319d19e80a2414d3f78383c23a2391a2b1 (diff) | |
download | pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar.gz pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar.bz2 pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar.lz pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar.xz pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.tar.zst pttbbs-632edbc87172c2d452637d5ad2f02f2f9d94f3bd.zip |
user could set if hilight favorite
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 5 | ||||
-rw-r--r-- | mbbsd/board.c | 17 | ||||
-rw-r--r-- | mbbsd/user.c | 7 |
3 files changed, 18 insertions, 11 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index d424d24d..dc457e75 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -1,4 +1,4 @@ -/* $Id: pttstruct.h,v 1.30 2003/03/26 10:21:40 in2 Exp $ */ +/* $Id: pttstruct.h,v 1.31 2003/03/26 11:06:04 in2 Exp $ */ #ifndef INCLUDE_STRUCT_H #define INCLUDE_STRUCT_H @@ -86,13 +86,14 @@ typedef struct userec_t { #define MOVIE_FLAG 0x40 /* true if show movie */ #define COLOR_FLAG 0x80 /* true if the color mode open */ #define MIND_FLAG 0x100 /* true if mind search mode open <-Heat*/ -#define FAVNEW_FLAG 0x20 /* true if add new board into one's fav */ /* these are flags in userec_t.uflag2 */ #define WATER_MASK 000003 /* water mask */ #define WATER_ORIG 0x0 #define WATER_NEW 0x1 #define WATER_OFO 0x2 #define WATERMODE(mode) ((cuser.uflag2 & WATER_MASK) == mode) +#define FAVNOHILIGHT 0x10 /* false if hilight favorite */ +#define FAVNEW_FLAG 0x20 /* true if add new board into one's fav */ #define BTLEN 48 /* Length of board title */ diff --git a/mbbsd/board.c b/mbbsd/board.c index f45c9815..999daf4a 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.90 2003/03/26 10:51:15 in2 Exp $ */ +/* $Id: board.c,v 1.91 2003/03/26 11:06:05 in2 Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -932,13 +932,14 @@ show_brdlist(int head, int clsflag, int newflag) if (class_bid != 1) { prints("%s%-13s\033[m%s%5.5s\033[0;37m%2.2s\033[m" "%-34.34s", - (ptr->myattr & BRD_FAV) ? "\033[1;36m" : "", - B_BH(ptr)->brdname, - color[(unsigned int) - (B_BH(ptr)->title[1] + B_BH(ptr)->title[2] + - B_BH(ptr)->title[3] + B_BH(ptr)->title[0]) & 07], - B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7); - + ((ptr->myattr & BRD_FAV) && + !(cuser.uflag2 & FAVNOHILIGHT)) ? "\033[1;36m":"", + B_BH(ptr)->brdname, + color[(unsigned int) + (B_BH(ptr)->title[1] + B_BH(ptr)->title[2] + + B_BH(ptr)->title[3] + B_BH(ptr)->title[0]) & 07], + B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7); + if (B_BH(ptr)->brdattr & BRD_BAD) prints(" X "); else if (B_BH(ptr)->nuser >= 100) diff --git a/mbbsd/user.c b/mbbsd/user.c index 3c1ad1e6..68c7f048 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.50 2003/03/26 10:22:54 in2 Exp $ */ +/* $Id: user.c,v 1.51 2003/03/26 11:06:05 in2 Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -213,6 +213,8 @@ static void Customize(void) prints("%-30s%10s\n", "C. 新板自動進我的最愛", ((cuser.uflag2 & FAVNEW_FLAG) ? "是" : "否")); prints("%-30s%10s\n", "D. 目前的心情", mindbuf); + prints("%-30s%10s\n", "E. 高亮度顯示我的最愛", + ((cuser.uflag2 & FAVNOHILIGHT) ? "否" : "是")); getdata(b_lines - 1, 0, "請按 [A-5] 切換設定,按 [Return] 結束:", ans, sizeof(ans), DOECHO); @@ -242,6 +244,9 @@ static void Customize(void) memcpy(currutmp->mind, mindbuf, 4); } break; + case 'e': + cuser.uflag2 ^= FAVNOHILIGHT; + break; default: done = 1; } |