Ver Fonte

Fixed Quest Removed

david há 5 anos atrás
pai
commit
fd53f272d3
1 ficheiros alterados com 40 adições e 40 exclusões
  1. 40 40
      flexible.py

+ 40 - 40
flexible.py

@@ -3090,46 +3090,46 @@ class ProxyMenu(object):
             return
             # self.queue_game.put(pformat(self.portdata).replace("\n", "\n\r") + self.nl)
             # self.queue_game.put(pformat(self.warpdata).replace("\n", "\n\r") + self.nl)    
-        """ elif key == "Q":
-            self.queue_game.put(self.c + key + self.r + self.nl)
-
-            # This is an example of chaining PlayerInput prompt calls.
-
-            ask = PlayerInput(self.game)
-            d = ask.prompt("What is your quest?", 40, name="quest", abort_blank=True)
-
-            # Display the user's input
-            d.addCallback(ask.output)
-
-            d.addCallback(
-                lambda ignore: ask.prompt(
-                    "What is your favorite color?", 10, name="color"
-                )
-            )
-            d.addCallback(ask.output)
-
-            d.addCallback(
-                lambda ignore: ask.prompt(
-                    "What is the meaning of the squirrel?",
-                    12,
-                    name="squirrel",
-                    digits=True,
-                )
-            )
-            d.addCallback(ask.output)
-
-            def show_values(show):
-                log.debug(show)
-                self.queue_game.put(pformat(show).replace("\n", "\n\r") + self.nl)
-
-            d.addCallback(lambda ignore: show_values(ask.keep))
-            d.addCallback(self.welcome_back)
-
-            # On error, just return back
-            # This doesn't seem to be getting called.
-            # d.addErrback(lambda ignore: self.welcome_back)
-            d.addErrback(self.welcome_back)
-            return """
+        #elif key == "Q":
+        #    self.queue_game.put(self.c + key + self.r + self.nl)
+        #
+        #    # This is an example of chaining PlayerInput prompt calls.
+        #    
+        #    ask = PlayerInput(self.game)
+        #    d = ask.prompt("What is your quest?", 40, name="quest", abort_blank=True)
+        #
+        #    # Display the user's input
+        #    d.addCallback(ask.output)
+        #    
+        #    d.addCallback(
+        #        lambda ignore: ask.prompt(
+        #            "What is your favorite color?", 10, name="color"
+        #        )
+        #    )
+        #    d.addCallback(ask.output)
+        #    
+        #    d.addCallback(
+        #        lambda ignore: ask.prompt(
+        #            "What is the meaning of the squirrel?",
+        #            12,
+        #            name="squirrel",
+        #            digits=True,
+        #        )
+        #    )
+        #    d.addCallback(ask.output)
+        #
+        #    def show_values(show):
+        #        log.debug(show)
+        #        self.queue_game.put(pformat(show).replace("\n", "\n\r") + self.nl)
+        #
+        #    d.addCallback(lambda ignore: show_values(ask.keep))
+        #    d.addCallback(self.welcome_back)
+        #
+        #    # On error, just return back
+        #    # This doesn't seem to be getting called.
+        #    # d.addErrback(lambda ignore: self.welcome_back)
+        #    d.addErrback(self.welcome_back)
+        #    return
 
         elif key == "X":
             self.queue_game.put(self.c + key + self.r + self.nl)