Загрузка данных
# ============================================================
# MOONLIGHT SECRETS
# Система «Отношения»
# ============================================================
# ============================================================
# ДАННЫЕ 6 ДЕВУШЕК — ЭТАП 1
# ============================================================
init python:
relationships_template = {
"girl_1": {
"name": "Девушка 1",
"age": 18,
"height": "165 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [3, 3, 4, 4, 5],
"bad_choice_limit": 10,
"unlocked": True,
"locked": False,
},
"girl_2": {
"name": "Девушка 2",
"age": 18,
"height": "165 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [2, 4, 3, 5, 4],
"bad_choice_limit": 8,
"unlocked": True,
"locked": False,
},
"girl_3": {
"name": "Девушка 3",
"age": 19,
"height": "170 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [4, 2, 5, 3, 6],
"bad_choice_limit": 12,
"unlocked": True,
"locked": False,
},
"girl_4": {
"name": "Девушка 4",
"age": 19,
"height": "168 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [3, 5, 3, 4, 5],
"bad_choice_limit": 9,
"unlocked": True,
"locked": False,
},
"girl_5": {
"name": "Девушка 5",
"age": 20,
"height": "172 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [5, 3, 4, 6, 5],
"bad_choice_limit": 11,
"unlocked": True,
"locked": False,
},
"girl_6": {
"name": "Девушка 6",
"age": 20,
"height": "167 см",
"favorite_food": "Неизвестно",
"favorite_music": "Неизвестно",
"favorite_movie": "Неизвестно",
"favorite_color": "Неизвестно",
"favorite_animal": "Неизвестно",
"relationship_points": 0,
"correct_choices": 0,
"bad_choices": 0,
"heart_requirements": [2, 5, 4, 3, 6],
"bad_choice_limit": 7,
"unlocked": True,
"locked": False,
},
}
default relationships_data = relationships_template.copy()
# ============================================================
# ВЫБРАННАЯ ДЕВУШКА — ЭТАП 4
# ============================================================
default selected_relationship_girl = None
# ============================================================
# ПЛАВНОЕ ПОЯВЛЕНИЕ СОДЕРЖИМОГО
# ============================================================
transform relationships_content_fade:
alpha 0.0
linear 0.35 alpha 1.0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 1
# ============================================================
transform relationship_card_1:
yoffset 0
pause 0.10
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 2
# ============================================================
transform relationship_card_2:
yoffset 0
pause 0.45
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 3
# ============================================================
transform relationship_card_3:
yoffset 0
pause 0.80
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 4
# ============================================================
transform relationship_card_4:
yoffset 0
pause 1.15
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 5
# ============================================================
transform relationship_card_5:
yoffset 0
pause 1.50
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ПОДПРЫГИВАНИЕ КАРТОЧКИ 6
# ============================================================
transform relationship_card_6:
yoffset 0
pause 1.85
easein 0.16 yoffset -35
easeout 0.16 yoffset 0
# ============================================================
# ЭФФЕКТ НАВЕДЕНИЯ НА КАРТОЧКИ
# ============================================================
transform relationship_card_hover:
on idle:
linear 0.15 zoom 1.0
on hover:
linear 0.15 zoom 1.05
# ============================================================
# ЭКРАН «ОТНОШЕНИЯ»
# ============================================================
screen relationships():
modal True
zorder 200
# ========================================================
# ФОН
# ========================================================
add Solid("#111111")
# ========================================================
# ПЛАВНОЕ ПОЯВЛЕНИЕ
# ========================================================
fixed:
xsize 1920
ysize 1020
at relationships_content_fade
# ====================================================
# КАРТОЧКИ
# ====================================================
hbox:
xalign 0.5
yalign 1.0
spacing 35
# =================================================
# КАРТОЧКА 1
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_1
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_1"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_1":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_1"
),
Show(
"relationship_profile",
girl_id="girl_1"
)
]
# =================================================
# КАРТОЧКА 2
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_2
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_2"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_2":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_2"
),
Show(
"relationship_profile",
girl_id="girl_2"
)
]
# =================================================
# КАРТОЧКА 3
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_3
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_3"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_3":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_3"
),
Show(
"relationship_profile",
girl_id="girl_3"
)
]
# =================================================
# КАРТОЧКА 4
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_4
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_4"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_4":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_4"
),
Show(
"relationship_profile",
girl_id="girl_4"
)
]
# =================================================
# КАРТОЧКА 5
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_5
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_5"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_5":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_5"
),
Show(
"relationship_profile",
girl_id="girl_5"
)
]
# =================================================
# КАРТОЧКА 6
# =================================================
fixed:
xsize 280
ysize 370
at relationship_card_6
button:
xsize 280
ysize 370
background Solid("#181818")
hover_background Solid("#222222")
at relationship_card_hover
text relationships_data["girl_6"]["name"]:
xalign 0.5
yalign 0.5
size 32
color "#FFFFFF"
if selected_relationship_girl == "girl_6":
add Solid("#FF0000"):
xpos 0
ypos 0
xsize 280
ysize 4
action [
SetVariable(
"selected_relationship_girl",
"girl_6"
),
Show(
"relationship_profile",
girl_id="girl_6"
)
]
# ====================================================
# КНОПКА «НАЗАД»
# ====================================================
textbutton _("Назад"):
xpos 30
ypos 20
text_size (
52 if renpy.variant("touch") else 42
)
text_color "#FFFFFF"
text_hover_color "#FF0000"
background None
hover_background None
action [
Hide("relationships"),
Return()
]
# ============================================================
# ПРОФИЛЬ ДЕВУШКИ — ЭТАП 2
# ============================================================
screen relationship_profile(girl_id):
modal True
zorder 300
# ========================================================
# ФОН
# ========================================================
add Solid("#111111")
# ========================================================
# ПОЛУЧАЕМ ДАННЫЕ ДЕВУШКИ
# ========================================================
$ girl = relationships_data[girl_id]
# ========================================================
# ПРОФИЛЬ
# ========================================================
frame:
xalign 0.5
yalign 0.5
xsize 1100
ysize 800
background Solid("#181818")
vbox:
xalign 0.5
yalign 0.5
spacing 20
# =================================================
# ИМЯ
# =================================================
text girl["name"]:
xalign 0.5
size 52
color "#FFFFFF"
# =================================================
# ИНФОРМАЦИЯ
# =================================================
text "Возраст: [girl['age']]":
size 30
color "#FFFFFF"
text "Рост: [girl['height']]":
size 30
color "#FFFFFF"
text "Любимая еда: [girl['favorite_food']]":
size 30
color "#FFFFFF"
text "Любимая музыка: [girl['favorite_music']]":
size 30
color "#FFFFFF"
text "Любимый фильм: [girl['favorite_movie']]":
size 30
color "#FFFFFF"
text "Любимый цвет: [girl['favorite_color']]":
size 30
color "#FFFFFF"
text "Любимое животное: [girl['favorite_animal']]":
size 30
color "#FFFFFF"
# =================================================
# НАЗАД
# =================================================
textbutton "Назад":
xalign 0.5
text_size 32
text_color "#FFFFFF"
text_hover_color "#FF0000"
background None
hover_background None
action Hide("relationship_profile")