init python:
    def living_tv_screen_func(x, y):
        if (((485*y >= 153305 - 22*x) and (508*y <= 94*x + 104000) and (215*x >= 314298 - 23*y) and (331*x <= 635520))) and quick_menu_shown == False:
            return True
        return False

    def living_tv_screen_func1(x, y):
        if (((485*y >= 153305 - 22*x) and (508*y <= 94*x + 104000) and (215*x >= 314298 - 23*y) and (331*x <= 635520))) and quick_menu_shown == False:
            return False
        return True

image living_empty = ConditionSwitch("daytime == 1 or daytime == 2","images/rooms/1_living.jpg",
"daytime == 3 or daytime == 4","images/rooms/2_living.jpg",
"daytime == 5 or daytime == 6","images/rooms/3_living.jpg",
"daytime == 7 or daytime == 8","images/rooms/4_living.jpg")
image living_tv = ConditionSwitch("daytime == 3","images/events/2rosie_tv.jpg",
"daytime == 5","images/events/3rosie_book.jpg")
image living_tv_1 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/living/1_living_tv1.jpg",
"daytime == 3 or daytime == 4","images/needs/living/2_living_tv1.jpg",
"daytime == 5 or daytime == 6","images/needs/living/3_living_tv1.jpg")
image living_tv_2 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/living/1_living_tv2.jpg",
"daytime == 3 or daytime == 4","images/needs/living/2_living_tv2.jpg",
"daytime == 5 or daytime == 6","images/needs/living/3_living_tv2.jpg")
image living_tv_3 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/living/1_living_tv3.jpg",
"daytime == 3 or daytime == 4","images/needs/living/2_living_tv3.jpg",
"daytime == 5 or daytime == 6","images/needs/living/3_living_tv3.jpg")
image living_tv_4 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/living/1_living_tv4.jpg",
"daytime == 3 or daytime == 4","images/needs/living/2_living_tv4.jpg",
"daytime == 5 or daytime == 6","images/needs/living/3_living_tv4.jpg")
image living_tv_5 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/living/1_living_tv5.jpg",
"daytime == 3 or daytime == 4","images/needs/living/2_living_tv5.jpg",
"daytime == 5 or daytime == 6","images/needs/living/3_living_tv5.jpg")
image living_tv_6_1 = "images/needs/living/1_living_tv6.jpg"
image living_tv_6_2 = "images/needs/living/2_living_tv6.jpg"
image living_tv_6_3 = "images/needs/living/3_living_tv6.jpg"

screen living_screen:
    modal True
    zorder 10
    null width 1920 height 1080
    button:
        hovered Show("living_tv_screen")
        focus_mask living_tv_screen_func
        action NullAction()

screen living_tv_screen:
    modal True
    zorder 11
    button:
        focus_mask living_tv_screen_func
        action [Hide("living_tv_screen"),Jump("living_tv")]
    button:
        hovered Hide("living_tv_screen")
        focus_mask living_tv_screen_func1
        action NullAction()
    add ConditionSwitch("daytime == 1 or daytime == 2","images/props/1living_tv.png",
    "daytime == 3 or daytime == 4","images/props/2living_tv.png",
    "daytime == 5 or daytime == 6","images/props/3living_tv.png",
    "daytime == 7 or daytime == 8","images/props/4living_tv.png")

label living:
    call my_refresh
    call sound_silience
    $ position = "living"
    $ city_active = False
    $ house_active = False
    $ play_bg_music()
    $ gal_update()
    if "any" in storyes.keys():
        $ renpy.jump(storyes["any"])
    if "any" in place_events:
        $ renpy.jump(place_events["any"])
    if "living" in storyes.keys() and (storyes["living"] == "living_tv_event" or storyes["living"] == "living_rosie_book"):
        scene living_tv
    elif True:
        scene living_empty
    if "living" in storyes.keys():
        $ renpy.jump(storyes["living"])
    if "living" in place_events.keys():
        $ renpy.jump(place_events["living"])
    if "corridor1" in storyes.keys():
        if storyes["corridor1"] == "corridor1_tv_2_event":
            if "park" in storyes.keys():
                if storyes["park"] == "park_lucy_2":
                    hide screen corridor1_booktable_screen
                    hide screen corridor1_rosie2_watering_screen
                    jump living_rosie_book
            jump living_rl_tv
    if "corridor1" in place_events.keys():
        if place_events["corridor1"] == "corridor1_tv_2_event":
            if "park" in place_events.keys():
                if place_events["park"] == "park_lucy_2":
                    hide screen corridor1_booktable_screen
                    hide screen corridor1_rosie2_watering_screen
                    jump living_rosie_book
            jump living_rl_tv
    if not check_pos():
        if ("living" in storyes.keys() and storyes["living"] in exceptions) or ("living" in place_events.keys() and place_events["living"]  in exceptions):
            call hide_interface
        elif True:
            call hide_bottom_menu
        $ prev = position
    call show_interface
    call screen living_screen
    jump living

label living_tv:
    if daytime > 6:
        call adv_say (mc, txt0000003, 3)
        jump living
    call hide_interface
    menu:
        "Watch TV" if True:
            jump living_watch_tv
        "Back" if True:
            jump living
    jump living_tv

label living_watch_tv:
    if leisure == 100:
        call adv_say (mc, txt0000004, 3)
    elif True:
        $ set_prev("TV")
        scene living_tv_1
        $ renpy.pause(1.0)
        scene living_tv_2
        $ renpy.pause(1.0)
        scene living_tv_3
        $ renpy.pause(1.0)
        scene living_tv_4
        show img17:
            alpha 0.0
            parallel:
                pause .5
                linear .5 alpha 1.0
        $ renpy.pause(1.5, hard = True)
        scene living_tv_5
        show img17:
            alpha 1.0
            parallel:
                linear .5 alpha 0.0
        call show_changes ("leisure", True)
        $ restore_leisure(100)
        $ renpy.pause(1.5, hard = True)
        if daytime == 1 or daytime == 2:
            scene living_tv_6_1
        elif daytime == 3 or daytime == 4:
            scene living_tv_6_2
        elif daytime == 5 or daytime == 6:
            scene living_tv_6_3
        $ renpy.pause(.5)
        $ next_daytime(force="leisure")
        call hide_changes
        $ generate_event_maps()
    jump living
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
