## Notify screen ###############################################################
##
## The notify screen is used to show the player a message. (For example, when
## the game is quicksaved or a screenshot has been taken.)
##
## https://www.renpy.org/doc/html/screen_special.html#notify-screen

init offset = -1

screen notify(message):

    zorder 100
    style_prefix "notify"

    frame at notify_appear:
        text "[message!tq]"

    timer 3.25 action Hide('notify')


transform notify_appear:
    on show:
        xanchor 1.0
        linear 0.25 xanchor 0.0
        linear 0.1 xoffset 10
        linear 0.1 xoffset 0
    on hide:
        linear 0.1 xoffset 10
        parallel:
            linear 0.1 xoffset 0
        parallel:
            linear 0.4 xanchor 1.0


style notify_frame is empty:
    ypos gui.notify_ypos

    background Frame("gradient_main")
    padding gui.notify_frame_borders.padding

style notify_text is gui_text:
    properties gui.text_properties("notify")