adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] master 88062ca 14/21: UPDATE text positio


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] master 88062ca 14/21: UPDATE text position during Redwyne Inn part of intro, so it is better readable
Date: Mon, 25 Jul 2016 18:16:39 +0000 (UTC)

branch: master
commit 88062ca0bb4a17f5bb20ce01b7530b98e824ee0e
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    UPDATE text position during Redwyne Inn part of intro, so it is better 
readable
---
 scripts/modules/intro.py |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/scripts/modules/intro.py b/scripts/modules/intro.py
index f831f77..1819bc3 100644
--- a/scripts/modules/intro.py
+++ b/scripts/modules/intro.py
@@ -105,7 +105,7 @@ the harshness of the road."),
            _("As you approach the trading post, there\nseems to be little sign 
of life.      \
            \n       \nEventually you find the Redwyne Inn,\nwhich seems to be 
the main building\nhere."),
            _("The heavy wooden doors are closed,\nand no one is there \
-to let you in. As you\napproach the gate, you suddenly hear a voice from 
within."),
+to let you in. As you\napproach the gate, you suddenly hear\na voice from 
within."),
            _("                      \nSuddenly, it looked like the day 
would\nbe harder than I thought ..."))
 
 cont.set_visible_background (False);
@@ -195,7 +195,12 @@ while not input_has_been_pushed (SDLK_ESCAPE) and not 
input_has_been_pushed (SDL
                 if wincpt < len (wintext[wintextocc]):
                     windelay = windelay + 1
                     if windelay >= 10:
-                        if wincpt == 0: lab.set_text ("")
+                        if wincpt == 0: 
+                            lab.set_text ("")
+                            if wintextocc == 6: 
+                                cont.move((screen_length () - cont.length 
())//2, 
+                                          (screen_height () - cont.height ()))
+
                         lab.add_text (wintext[wintextocc][wincpt])
                         if wintext[wintextocc][wincpt] == '.': windelay = -50
                         else: windelay = 0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]