Hi there!
Remember
I've made another bar, to use with armor or devotion or anything that can have a negative value. I saw this bar long ago in a Circle MUD's based MUD.
It seems like this:
or
Enjoy!
Remember
[>>>>>>>---]?I've made another bar, to use with armor or devotion or anything that can have a negative value. I saw this bar long ago in a Circle MUD's based MUD.
It seems like this:
[--<<<|-----] (under 0)or
[-----|>>>--] (above 0)Enjoy!
//--------------------------
/*
Double bar by Alkarindil
*/
void double_bar_draw(int A, int B, CHAR_DATA * ch)
{
int percent;
int C;
percent = (A*100)/B;
send_to_pager("[", ch);
if (percent > 0){
send_to_pager("-----|", ch);
for(C=1; C<6; C++){
if (percent < C*20) send_to_pager("-", ch);
else send_to_pager(">", ch);
}
} else {
for(C=-5; C<0; C++){
if (C>=percent/20) send_to_pager("<", ch);
else send_to_pager("-", ch);
}
send_to_pager("|-----", ch);
}
send_to_pager("] ", ch);
return;
}
//--------------------------