home · contact · privacy
Client: Shrink "stats"/"info" window (7DRL: expect GOD_MOOD to vanish).
authorChristian Heller <c.heller@plomlompom.de>
Sun, 15 Mar 2015 16:20:59 +0000 (17:20 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 15 Mar 2015 16:20:59 +0000 (17:20 +0100)
confclient/interface_conf
src/client/draw_wins.c

index 8da57695fb53f49393748d57adf75f68307c0b34..259dd021f2e00aba42f8a2d0e924f4f1ed5adbcd 100644 (file)
@@ -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'
index d9b0b15e325ce8398760860f886305011c84307f..c21a971383e430861f61a99138fa41f944e46c3a 100644 (file)
@@ -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);