screens.rpy

screen quick_menu():

    ## 他のスクリーンの上に表示する。
    zorder 100

    if quick_menu:

        hbox:
            style_prefix "quick"

            xalign 0.5
            yalign 1.0
            textbutton _("SAVE") action ShowMenu('save') text_size 16
            textbutton _("LOAD") action ShowMenu('load') text_size 16
            textbutton _("SKIP") action Skip() alternate Skip(fast=False, confirm=False) text_size 16
            textbutton _(">>") action Skip(fast=True, confirm=True) text_size 16#様子見next

「>>」ってやつがそうです。デフォルトでもSKIPの上で右クリックをすると同じ挙動をするのですが、ついつい忘れがちなのでメッセージボックス上に機能として載せちゃおうの試み。

confirm=Falseにするとスキップしますか?の確認が出なくなります。

Untitled

この機能をPreferenceでオンオフするとかを・・・できたらやりたいですが・・・

ちょっとやってみましょう。

と思ったんですがtoggleボタンではうまくできなかった。

のでradioのオンオフになりました。

options.rpyに任意のpersistent「nextmode」を作成。

###次の選択肢までスキップのオプション
default persistent.nextmode = False

screens.rpyにて、メッセージボックスボタンをifで場合分け。

#textbutton _("SKIP") action Skip() alternate Skip(fast=False, confirm=False) text_size 16#これは普通のSKIP
            if persistent.nextmode:
                textbutton _(">>") action Skip(fast=True, confirm=True) text_size 16#様子見next  
            else:
                textbutton _(">>") action Skip(fast=True, confirm=False) text_size 16#様子見next
                      
     

screens.rpyのPreferenceにコンフィグボタンとして置く。

vbox:
                    hbox:
                        null width (37)                   
                        label _("確認ウインドウ")
                        spacing 5
                    hbox:
                        null height (27)
                        style_prefix "radio"
                        text _("{size=-2}    ・次の選択肢までスキップ  {/size}")
                        textbutton _("オン ") action SetVariable("persistent.nextmode", True)
                        textbutton _("オフ ") action SetVariable("persistent.nextmode", False)

【追記】トグルでの書き方を教えていただきました!!!

action ToggleVariable("persistent.nextmode", true_value=True, false_value=False)