forked from SilverStudioGames/WTS
Compare commits
No commits in common. "19f49924d641f89a23ad473ea539d40cdd66ff47" and "01126edc4e3174a7ca4f17eb8e622e9e43409d9a" have entirely different histories.
19f49924d6
...
01126edc4e
@ -1,45 +1,32 @@
|
|||||||
image blkfade = "#000"
|
screen blkfade():
|
||||||
define config.tag_layer["blkfade"] = "screens"
|
tag blkfade
|
||||||
define config.tag_zorder["blkfade"] = 25
|
zorder 25
|
||||||
# show screen blkfade -> show blkfade
|
add Color("#000")
|
||||||
# hide screen blkfade -> hide blkfade
|
|
||||||
|
|
||||||
image whitefade = "#fff"
|
screen whitefade():
|
||||||
define config.tag_layer["whitefade"] = "screens"
|
tag whitefade
|
||||||
define config.tag_zorder["whitefade"] = 25
|
zorder 25
|
||||||
# show screen whitefade -> show whitefade
|
add Color("#fff")
|
||||||
# hide screen whitefade -> hide whitefade
|
|
||||||
|
|
||||||
image blktone = "#0008"
|
screen blktone(alpha=0.5):
|
||||||
define config.tag_layer["blktone"] = "screens"
|
tag blktone
|
||||||
define config.tag_zorder["blktone"] = 14
|
zorder 14
|
||||||
# show screen blktone -> show blktone
|
add Color("#000", alpha=alpha)
|
||||||
# hide screen blktone -> hide blktone
|
|
||||||
# (the parameter was never actually passed, so the alpha was always .5)
|
|
||||||
# to have arbitrary alpha,
|
|
||||||
# show screen blktone(.725) -> show blkfade at Transform(alpha=.725) as blktone
|
|
||||||
# I *think* that puts it at zorder 14
|
|
||||||
|
|
||||||
image white = "#fff"
|
screen white():
|
||||||
define config.tag_layer["white"] = "screens"
|
zorder 20
|
||||||
define config.tag_zorder["white"] = 20
|
add Color("#fff")
|
||||||
# show screen white -> show white
|
|
||||||
# hide screen white -> hide white
|
|
||||||
|
|
||||||
image bld1 = "interface/bld.webp"
|
screen bld1():
|
||||||
define config.tag_layer["bld1"] = "screens"
|
zorder 10
|
||||||
define config.tag_zorder["bld1"] = 10
|
tag bld1
|
||||||
# show screen bld1 -> show bld1
|
|
||||||
# hide screen bld1 -> hide bld1
|
|
||||||
|
|
||||||
image bld2 = Transform("interface/bld.webp", yzoom=-1.0)
|
add "interface/bld.webp"
|
||||||
define config.tag_layer["bld2"] = "screens"
|
|
||||||
define config.tag_zorder["bld2"] = 10
|
screen bld2():
|
||||||
# show screen bld2 -> show bld2
|
zorder 10
|
||||||
# hide screen bld2 -> hide bld2
|
add Transform("interface/bld.webp", yzoom=-1.0)
|
||||||
|
|
||||||
# that one needs a rename to be optimized
|
|
||||||
# (the newly named goes onlayer screens at the given pos and zorder, the original animation onlayer master)
|
|
||||||
screen notes():
|
screen notes():
|
||||||
add "notes" xpos 320+140 ypos 330
|
add "notes" xpos 320+140 ypos 330
|
||||||
zorder 1
|
zorder 1
|
||||||
@ -48,7 +35,7 @@ screen clothing_unlock(item):
|
|||||||
zorder 30
|
zorder 30
|
||||||
modal True
|
modal True
|
||||||
|
|
||||||
use notes # add "renamed_notes"
|
use notes
|
||||||
on "show" action Play("sound", "sounds/win2.ogg")
|
on "show" action Play("sound", "sounds/win2.ogg")
|
||||||
|
|
||||||
if isinstance(item, DollCloth):
|
if isinstance(item, DollCloth):
|
||||||
@ -56,9 +43,6 @@ screen clothing_unlock(item):
|
|||||||
elif isinstance(item, DollOutfit):
|
elif isinstance(item, DollOutfit):
|
||||||
add item.image align (0.5, 0.0) yoffset -50 zoom 0.4
|
add item.image align (0.5, 0.0) yoffset -50 zoom 0.4
|
||||||
|
|
||||||
# should be replaced with the dismiss screen element
|
|
||||||
# there is no equivalent of the alternate property though
|
|
||||||
# but there should, but it's only used in one instance (so the other can have a dismiss in the meantime)
|
|
||||||
screen invisible_button(action=NullAction(), keysym=None, alternate=None):
|
screen invisible_button(action=NullAction(), keysym=None, alternate=None):
|
||||||
|
|
||||||
# Note: Actions cannot be passed as transclude, separate parameter is required.
|
# Note: Actions cannot be passed as transclude, separate parameter is required.
|
||||||
|
Loading…
Reference in New Issue
Block a user