forked from github/server
bugfix, "schicke" borders
This commit is contained in:
parent
1d56565e23
commit
18a9ad378e
|
@ -1071,7 +1071,8 @@ GetTerrain(region * r)
|
|||
int q, y, i;
|
||||
win = newwin(8, SX - 10, 2, 2);
|
||||
wclear(win);
|
||||
wborder(win, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/* wborder(win, '|', '|', '-', '-', '.', '.', '`', '\'');*/
|
||||
wborder(win, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(win, 0, 3);
|
||||
waddnstr(win, "< Terraform Region >", -1);
|
||||
wrefresh(win);
|
||||
|
|
|
@ -443,7 +443,8 @@ ModifyPartei(faction * f)
|
|||
case 'r':
|
||||
mywin = newwin(5, SX - 20, (SY - 5) / 2, (SX - 20) / 2);
|
||||
wclear(mywin);
|
||||
wborder(mywin, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/*wborder(mywin, '|', '|', '-', '-', '.', '.', '`', '\'');*/
|
||||
wborder(mywin, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
Movexy(3, 0);
|
||||
Addstr("< Rasse wählen >");
|
||||
wrefresh(mywin);
|
||||
|
|
|
@ -315,7 +315,8 @@ do_selection(selection * sel, const char * title, void (*perform)(selection *, v
|
|||
wmove(wn, i + 1, 4);
|
||||
waddnstr(wn, s->str, -1);
|
||||
}
|
||||
wborder(wn, '|', '|', '-', '-', '+', '+', '+', '+');
|
||||
/*wborder(wn, '|', '|', '-', '-', '+', '+', '+', '+');*/
|
||||
wborder(wn, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(wn, 0, 2);
|
||||
sprintf(buf, "[ %s ]", title);
|
||||
waddnstr(wn, buf, width);
|
||||
|
|
|
@ -247,7 +247,8 @@ modify_zauber(unit * u)
|
|||
wn = newwin(L + 2, 50, (SY - L - 2) / 2, (SX - 50) / 2);
|
||||
|
||||
wclear(wn);
|
||||
wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/* wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\''); */
|
||||
wborder(wn, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(wn, 0, 3);
|
||||
waddnstr(wn, "< Zauber >", -1);
|
||||
for (i = 0; i < MAXSPELLS; i++) {
|
||||
|
@ -280,7 +281,8 @@ modify_zauber(unit * u)
|
|||
wmove(wn, i + 1, 2);
|
||||
wclrtoeol(wn);
|
||||
}
|
||||
wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/* wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\''); */
|
||||
wborder(wn, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(wn, 0, 3);
|
||||
waddnstr(wn, "< Zauber >", -1);
|
||||
} else {
|
||||
|
@ -349,7 +351,8 @@ modify_talente(unit * u, region * r)
|
|||
wn = newwin(L + 2, 40, (SY - L - 2) / 2, (SX - 40) / 2);
|
||||
|
||||
wclear(wn);
|
||||
wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/* wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\''); */
|
||||
wborder(wn, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(wn, 0, 3);
|
||||
waddnstr(wn, "< Talente >", -1);
|
||||
for (i = 0; i < MAXSKILLS; i++) {
|
||||
|
@ -379,7 +382,8 @@ modify_talente(unit * u, region * r)
|
|||
wmove(wn, i + 1, 2);
|
||||
wclrtoeol(wn);
|
||||
}
|
||||
wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\'');
|
||||
/* wborder(wn, '|', '|', '-', '-', '.', '.', '`', '\''); */
|
||||
wborder(wn, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
wmove(wn, 0, 3);
|
||||
waddnstr(wn, "< Talente >", -1);
|
||||
} else {
|
||||
|
|
|
@ -73,7 +73,8 @@ extern void render_init(void);
|
|||
WINDOW * openwin(int b, int h, const char* t) {
|
||||
WINDOW * win = newwin(h,b,(SY-(h))/2,(SX-(b))/2);
|
||||
wclear(win);
|
||||
wborder(win, '|','|','-','-','.','.','`','\'');
|
||||
/* wborder(win, '|','|','-','-','.','.','`','\''); */
|
||||
wborder(win, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
if(t) {
|
||||
wmove(win,0,3);
|
||||
waddnstr(win,(char*)t,-1);
|
||||
|
@ -272,6 +273,11 @@ has_laen(region *r)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
static boolean
|
||||
has_laen(region *r) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
|
@ -495,8 +501,8 @@ modify_block(void)
|
|||
int c, s = 0;
|
||||
region *r;
|
||||
tagregion *t;
|
||||
char *name;
|
||||
int div;
|
||||
char *name = NULL;
|
||||
int div = 0;
|
||||
|
||||
win = openwin(70, 4, "< Tag-Regionen modifizieren >");
|
||||
wmove(win, 1, 2);
|
||||
|
|
Loading…
Reference in New Issue