From: Christian Heller Date: Sun, 15 Mar 2015 16:20:59 +0000 (+0100) Subject: Client: Shrink "stats"/"info" window (7DRL: expect GOD_MOOD to vanish). X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/condition?a=commitdiff_plain;h=c25e2499bcfcdc43202f7a59ab97ce802d418a6c;p=plomrogue Client: Shrink "stats"/"info" window (7DRL: expect GOD_MOOD to vanish). --- diff --git a/confclient/interface_conf b/confclient/interface_conf index 8da5769..259dd02 100644 --- a/confclient/interface_conf +++ b/confclient/interface_conf @@ -80,13 +80,13 @@ WINDOW i NAME 'Stats' BREAK 2 WIDTH 33 -HEIGHT 3 +HEIGHT 1 WINDOW l NAME 'Log' BREAK 0 WIDTH 33 -HEIGHT -9 +HEIGHT -7 WINDOW m NAME 'Please the Island God' diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c index d9b0b15..c21a971 100644 --- a/src/client/draw_wins.c +++ b/src/client/draw_wins.c @@ -546,18 +546,18 @@ extern void draw_win_map(struct Win * win) extern void draw_win_info(struct Win * win) { - char * dsc_turn = "Turn: "; - char * dsc_hitpoints = "\nHitpoints: "; - char * dsc_satiation = "\nSatiation: "; - char * dsc_godsmood = "\nGod's mood: "; // 7DRL - char * dsc_godsfavor = "\nGod's favor: "; // 7DRL + char * dsc_turn = "T:"; + char * dsc_hitpoints = " | H:"; + char * dsc_satiation = " S:"; + // char * dsc_godsmood = "\nGod's mood: "; // 7DRL + char * dsc_godsfavor = " G:"; // 7DRL uint16_t maxl = strlen(dsc_turn) + 5 + strlen(dsc_hitpoints) + 3 // - + strlen(dsc_satiation) + 6 + strlen(dsc_godsmood) + 6 // + + strlen(dsc_satiation) + 6 + /*strlen(dsc_godsmood) + 6*/ // + strlen(dsc_godsfavor) + 6; // char * text = try_malloc(maxl + 1, __func__); - int test = sprintf(text, "%s%d%s%d%s%d%s%d%s%d", dsc_turn, world.turn, + int test = sprintf(text, "%s%d%s%d%s%d%s%d", dsc_turn, world.turn, dsc_hitpoints, world.player_lifepoints, dsc_satiation, - world.player_satiation, dsc_godsmood, world.godsmood, // + world.player_satiation, /*dsc_godsmood, world.godsmood,*/ // dsc_godsfavor, world.godsfavor); // exit_trouble(test < 0, __func__, "sprintf"); add_text_with_linebreaks(win, text);