summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-19 08:43:43 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-19 08:43:43 -0300
commite5d0a317c15f51059522b9c5045fc190ea8d1c82 (patch)
treed7d13da0ae24e9253186b36a280d89b1466a09f7
parenta9917d581ec6033748ad8bb87f08fcd86187527c (diff)
downloadclient-e5d0a317c15f51059522b9c5045fc190ea8d1c82.tar.gz
client-e5d0a317c15f51059522b9c5045fc190ea8d1c82.tar.bz2
client-e5d0a317c15f51059522b9c5045fc190ea8d1c82.tar.xz
client-e5d0a317c15f51059522b9c5045fc190ea8d1c82.zip
Correct dialog chara alignment so they are always above the textwindow.
Mobile does not have hide window, and this compensates a bit their obvious lack of height (which only a full body could compensate)
-rw-r--r--game/battle.rpy6
-rw-r--r--game/gui/transforms.rpy37
-rw-r--r--game/story.rpy34
3 files changed, 54 insertions, 23 deletions
diff --git a/game/battle.rpy b/game/battle.rpy
index 745bef0..c5600f0 100644
--- a/game/battle.rpy
+++ b/game/battle.rpy
@@ -188,9 +188,9 @@ label results:
show_img("bg "+dial["bg"], tag="sbg", ext=".jpg")
bg_is_showing=True
- show_img("dialog_"+dial["left_sprite"], at_list=[left], tag="l")
- show_img("dialog_"+dial["center_sprite"], at_list=[center], tag="c")
- show_img("dialog_"+dial["right_sprite"], at_list=[right], tag="r")
+ show_img("dialog_"+dial["left_sprite"], at_list=[tleft], tag="l")
+ show_img("dialog_"+dial["center_sprite"], at_list=[tcenter], tag="c")
+ show_img("dialog_"+dial["right_sprite"], at_list=[tright], tag="r")
renpy.say(dial["name"], dial["message"])
renpy.hide("l")
renpy.hide("c")
diff --git a/game/gui/transforms.rpy b/game/gui/transforms.rpy
index 80a71af..2fb2be9 100644
--- a/game/gui/transforms.rpy
+++ b/game/gui/transforms.rpy
@@ -85,13 +85,44 @@ transform czoom_75:
transform prologue_right1:
xalign 0.67
- yalign 1.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
transform prologue_right2:
xalign 1.1
- yalign 1.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
transform prologue_center:
xalign 0.42
- yalign 1.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
+
+
+transform tcenter:
+ xalign 0.5
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
+
+transform tleft:
+ xalign 0.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
+
+transform tright:
+ xalign 1.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
+
+transform toffscreenleft:
+ xpos 0.0
+ xanchor 1.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
+
+transform toffscreenright:
+ xpos 1.0
+ xanchor 0.0
+ yanchor 1.0
+ ypos (1824-gui.textbox_height)
diff --git a/game/story.rpy b/game/story.rpy
index 0f97b94..5e554d3 100644
--- a/game/story.rpy
+++ b/game/story.rpy
@@ -34,23 +34,23 @@ label SQ00001_prologue:
centered "{cps=36}{b}Somewhere distant{/b}{/cps}"
scene bg darklands with Dissolve(2.0)
centered "{b}Somewhere distant{/b}\n\n{fast}{cps=36}Darklands{/cps}"
- show dialog_detective at center with Dissolve(1.0)
+ show dialog_detective at tcenter with Dissolve(1.0)
window show
"???" "..."
"???" "This high peak... This dark cloud..."
"???" "So, these are the darklands."
"???" "I didn't realize they were real. If it is here..."
"???" "...Then there can be only one meaning. I have to report this at once!"
- show dialog_deadlyshadow at offscreenright with None
+ show dialog_deadlyshadow at toffscreenright with None
show dialog_detective at prologue_right1
show dialog_deadlyshadow at prologue_right2
with move
"???" "Uh oh..."
- show dialog_assassinshadow at offscreenright with None
+ show dialog_assassinshadow at toffscreenright with None
show dialog_detective at prologue_center
- show dialog_deadlyshadow at right
- show dialog_assassinshadow at left
+ show dialog_deadlyshadow at tright
+ show dialog_assassinshadow at tleft
with move
"???" "This won't end well..."
"???" "But still, I cannot afford to fail this mission."
@@ -62,7 +62,7 @@ label SQ00001_prologue:
play music MUSIC_PROLOGUE02.id() fadein 1.0
"Signet Academy\nGraduation Ceremony"
- show dialog_mentor at center with Dissolve(0.5)
+ show dialog_mentor at tcenter with Dissolve(0.5)
"Professor" "And with this, I declare graduate the fifteenth group of knights and captains."
"{color=#0f0}*cheers*{/color}"
@@ -107,12 +107,12 @@ label SQ00001_prologue:
scene bg forest_sunset with fade#Dissolve(0.5)
pause 0.2
- show dialog_archmage at center with Dissolve(0.5)
+ show dialog_archmage at tcenter with Dissolve(0.5)
"Arch mage" "Oho, I see at least some students were smart enough to join forces!"
"Arch mage" "No doubts you have a chance at arriving to the Capital."
- show dialog_rebel at offscreenright with None
- show dialog_rebel at right
- show dialog_archmage at left
+ show dialog_rebel at toffscreenright with None
+ show dialog_rebel at tright
+ show dialog_archmage at tleft
with move
"Female Rebel" "Why don't we have a friendly spar, though? If you are impressive enough, others may want to travel with you."
@@ -123,7 +123,7 @@ label SQ00001_prologue:
"Giulio" "In case you forgot, in the battle screen, you can swipe cards down to use Spheres, or up to use skills."
"Giulio" "Click on End turn at the upper right corner to advance the wave. As time passes, you'll eventually be able to use the summon!"
- show dialog_rebel at center with move
+ show dialog_rebel at tcenter with move
"Female Rebel" "Let's do it!"
return
@@ -135,7 +135,7 @@ label SQ00005_post:
"Giulio" "What are you standing there for? We gotta a Marshall to met."
# TODO: bg desk
scene bg castle with Dissolve(1.0)
- $ show_img("dialog_marshall", at_list=[center])
+ $ show_img("dialog_marshall", at_list=[tcenter])
"Marshall" "Congratulations in making to the Capital in one piece."
"Marshall" "If you both don't mind, I would like to officially assign your first task now."
"Giulio" "This task better be suitable for a top knight like myself."
@@ -167,7 +167,7 @@ label SQ00006_pre:
label SQ00006_post:
$ show_img("bg wilderness", False, ext=".jpg")
scene bg wilderness with Dissolve(1.0)
- $ show_img("dialog_milleue", at_list=[center])
+ $ show_img("dialog_milleue", at_list=[tcenter])
"Milleue" "Alright, I surrender! I admit defeat."
"Milleue" "I'm afraid the path to the Forest of Fae won't be a walk in the park."
"Milleue" "I'll go with you. But the other Imperial Soldiers will still try to stop you as you go."
@@ -181,7 +181,7 @@ label SQ00011_post:
scene bg forest_sunset with Dissolve(0.5)
"Giulio" "Mother Nature's sent us wolves... How much I hate it."
"Giulio" "Mother Nature, please, GIVE ME A DECENT CHALLENGE!"
- $ show_img("dialog_milleue", at_list=[center])
+ $ show_img("dialog_milleue", at_list=[tcenter])
"Milleue" "Be careful with what you wish for."
"Giulio" "Oh, please. My sword will get rusty at this small fry. These wolves aren't qualified for a top knight like myself."
return
@@ -191,15 +191,15 @@ label SQ00013_pre:
scene bg forest_sunset with Dissolve(0.5)
"Giulio" "I hear battle sounds up ahead."
"You" "It'll be quite a detour, but we should check."
- $ show_img("dialog_bandit", at_list=[left], tag="l")
- $ show_img("dialog_princess", at_list=[right], tag="r")
+ $ show_img("dialog_bandit", at_list=[tleft], tag="l")
+ $ show_img("dialog_princess", at_list=[tright], tag="r")
"{b}.:: CONTINUES ::.{/b}"
return
####################################################
label SQ00014_post:
scene bg forest_sunset with Dissolve(0.5)
- $ show_img("dialog_princess", at_list=[center])
+ $ show_img("dialog_princess", at_list=[tcenter])
"{b}.:: CONTINUES ::.{/b}"
return