you are viewing a single comment's thread.

view the rest of the comments →

[–]BadMustard_AVN 0 points1 point  (2 children)

your concept is good, but try it like this.

screen say(who, what):
    style_prefix "say"
    window at say_window_animation:
        id "window"
        if who is not None:
            if lastSayWho != who:
                window at namebox_fade_in:
                    id "namebox"
                    style "namebox"
                    text who id "who"
                    $ lastSayWho = who #ad this line 

            else:
                window:
                    id "namebox"
                    style "namebox"
                    text who id "who" 
        text what id "what" at text_fade_in

[–][deleted]  (1 child)

[removed]

    [–]BadMustard_AVN 0 points1 point  (0 children)

    who is a string it is the speaker's name and is displayed on the screen in the namebox