ソースを参照

Fixing box problems with leading newline.

Steve Thielemann 5 年 前
コミット
6480b3b462
1 ファイル変更6 行追加6 行削除
  1. 6 6
      flexible.py

+ 6 - 6
flexible.py

@@ -1189,7 +1189,7 @@ class ScriptExplore(object):
 
         Either pop a new location to travel to, or give it up.
         """
-        self.send2player(Boxes.alert("** DEAD END **", base="blue"))
+        self.send2player(self.nl + Boxes.alert("** DEAD END **", base="blue"))
 
         if self.stacksector:
             # Ok, there's somewhere to go ...
@@ -1199,11 +1199,11 @@ class ScriptExplore(object):
             self.send2game("{0}\r".format(self.highsector))
 
         else:
-            self.send2player(Boxes.alert("I've run out of places to look ({0}/{1}).".format(self.maxtimes - self.times, self.maxtimes)))
+            self.send2player(self.nl + Boxes.alert("I've run out of places to look ({0}/{1}).".format(self.maxtimes - self.times, self.maxtimes)))
             self.deactivate(True)
 
     def game_over(self, msg):
-        self.send2player(Boxes.alert("STOP: {0} ({1}/{2}).".format(msg, self.maxtimes - self.times, self.maxtimes)))
+        self.send2player(self.nl + Boxes.alert("STOP: {0} ({1}/{2}).".format(msg, self.maxtimes - self.times, self.maxtimes)))
         self.deactivate()
 
     def game_prompt(self, prompt: str):
@@ -2147,7 +2147,7 @@ class ProxyMenu(object):
         for t in self.trade_report[:show_maxlines]:
             self.queue_game.put(t + self.nl)
 
-        self.queue_game.put(Boxes.alert("Proxy done.", base="green"))
+        self.queue_game.put(self.nl + Boxes.alert("Proxy done.", base="green"))
         self.observer.load(self.save)
         self.save = None
         self.keepalive = None
@@ -2213,7 +2213,7 @@ class ProxyMenu(object):
             if self.trade_report:
                 for t in self.trade_report[:show_maxlines]:
                     self.queue_game.put(t + self.nl)
-                self.queue_game.put(Boxes.alert("Proxy done.", base="green"))                    
+                self.queue_game.put(self.nl + Boxes.alert("Proxy done.", base="green"))                    
                 self.observer.load(self.save)
                 self.save = None
                 self.keepalive = None
@@ -2417,7 +2417,7 @@ class ProxyMenu(object):
             if 'exit' in info and info['exit']:
                 log.warn("exit proxy...")
                 # Exit Proxy Code 
-                self.queue_game.put(Boxes.alert("Proxy done.", base="green",style=3))
+                self.queue_game.put(self.nl + Boxes.alert("Proxy done.", base="green",style=3))
                 self.observer.load(self.save)
                 self.save = None
                 # It isn't running (NOW), so don't try to stop it.