]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Add a pretty and desactivable damage bar.
[lugaru.git] / Source / GameTick.cpp
index 2e424760f6f8ac8c9797aff2883ecf25924de61e..ae0366d8f76d1d5a9fb1d9ac0d79b3c5c1bb6c64 100644 (file)
@@ -100,6 +100,7 @@ extern bool foliage;
 extern bool trilinear;
 extern bool damageeffects;
 extern bool showpoints;
+extern bool showdamagebar; // (des)activate the damage bar
 extern bool texttoggle;
 extern bool alwaysblur;
 extern float gamespeed;
@@ -1899,6 +1900,8 @@ void      Game::Tick()
                                opstream << KeyToChar(attackkey);
                                opstream << "\nChat key:\n";
                                opstream << KeyToChar(chatkey);
+                               opstream << "\nDamage bar:\n";
+                               opstream << showdamagebar;
                                opstream.close();
                        }
                        if(mainmenu==4||mainmenu==5||mainmenu==6||mainmenu==7||mainmenu==9||mainmenu==13||mainmenu==10||mainmenu==11||mainmenu==100){
@@ -2294,6 +2297,8 @@ void      Game::Tick()
                                opstream << KeyToChar(attackkey);
                                opstream << "\nChat key:\n";
                                opstream << KeyToChar(chatkey);
+                               opstream << "\nDamage bar:\n";
+                               opstream << showdamagebar;
                                opstream.close();
 
                                if(mainmenu==3&&gameon)mainmenu=2;
@@ -2922,6 +2927,8 @@ void      Game::Tick()
                                opstream << KeyToChar(attackkey);
                                opstream << "\nChat key:\n";
                                opstream << KeyToChar(chatkey);
+                               opstream << "\nDamage bar:\n";
+                               opstream << showdamagebar;
                                opstream.close();
                        }
                }
@@ -5364,6 +5371,8 @@ void      Game::Tick()
                                opstream << KeyToChar(attackkey);
                                opstream << "\nChat key:\n";
                                opstream << KeyToChar(chatkey);
+                               opstream << "\nDamage bar:\n";
+                               opstream << showdamagebar;
                                opstream.close();
                        }
                }