あまやど
gallery(簡易CGリスト)
saveload(セーブロード画面)
簡易CGリスト
transform zoo: zoom 2.0 transform opa_hover2: xysize (320, 650) linear .1 matrixcolor OpacityMatrix(0.5) transform opa_hover3: xysize (320, 650) image grock = Solid("#5E97B5", xsize=320, ysize=650) image ex1 = At("ex1.png", zoo) image ex2 = At("ex2.png", zoo) image ex3 = At("ex3.png", zoo) image ex1_ = At("ex1.png", opa_hover2) image ex2_ = At("ex2.png", opa_hover2) image ex3_ = At("ex3.png", opa_hover2) image ex1_2 = At("ex1.png", opa_hover3) image ex2_2 = At("ex2.png", opa_hover3) image ex3_2 = At("ex3.png", opa_hover3) init python: g = Gallery() g.locked_button = "grock" g.button("end1") g.image("ex1") g.condition("persistent.cheat or persistent.sueA and persistent.sueB") g.button("end2") g.image("ex2") g.condition("persistent.cheat or persistent.saneA and persistent.saneB") g.button("end3") g.image("ex3") g.condition("persistent.cheat or persistent.mutsuA and persistent.mutsuB") g.transition = dissolve screen image_room(): null height 350 style_prefix "omake" vbox: hbox: spacing 10 add g.make_button("end1", "ex1_", hover_border = "ex1_2", xalign=0.0, yalign=0.0) add g.make_button("end2", "ex2_", hover_border = "ex2_2", xalign=0.0, yalign=0.0) add g.make_button("end3", "ex3_", hover_border = "ex3_2", xalign=0.0, yalign=0.0)
saveload(セーブロード画面)
screen save(): tag menu use file_slots(_("Save")) screen load(): tag menu use file_slots(_("Load")) screen file_slots(title): default page_name_value = FilePageNameInputValue(pattern=_("Page {}"), auto=_("Automatic saves"), quick=_("Quick saves")) use game_menu(title): fixed: order_reverse True grid gui.file_slot_cols gui.file_slot_rows: style_prefix "slot" xalign 0.5 yalign 0.1 spacing gui.slot_spacing for i in range(gui.file_slot_cols * gui.file_slot_rows): $ slot = i + 1 button: action FileAction(slot) has vbox add FileScreenshot(slot) xalign 0.5 null height 10 text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")): style "slot_time_text" text FileSaveName(slot): style "slot_name_text" key "save_delete" action FileDelete(slot) hbox: style_prefix "page" xalign 0.5 yalign 1.0 spacing gui.page_spacing textbutton _("<") action FilePagePrevious() if config.has_autosave: textbutton _("{#auto_page}A") action FilePage("auto") if config.has_quicksave: textbutton _("{#quick_page}Q") action FilePage("quick") ## range(1, 10) gives the numbers from 1 to 9. for page in range(1, 10): textbutton "[page]" action FilePage(page) textbutton _(">") action FilePageNext() style page_label is gui_label style page_label_text is gui_label_text style page_button is gui_button style page_button_text is gui_button_text style slot_button is gui_button style slot_button_text is gui_button_text style slot_time_text is slot_button_text style slot_name_text is slot_button_text style page_label: xpadding 50 ypadding 3 style page_label_text: text_align 0.5 layout "subtitle" hover_color gui.hover_color style page_button: properties gui.button_properties("page_button") style page_button_text: properties gui.button_text_properties("page_button") style slot_button: properties gui.button_properties("slot_button") style slot_button_text: properties gui.button_text_properties("slot_button")