This site obtains and uses access data, using cookies, In order to recognize the state of use and distribute advertisements. If you continue to the next page, you shall be deemed to have agreed to the settings and use of cookies. Please refer to the details for more information about the settings and use of cookies and opt-out.
Created at
Updated at
AddonManagerのTakeOutCommandCallbackを使うことで、 フロー上にあるアドオンの後の処理を停止・再開することができます。
以下のアドオンはイベントを歩行させるものですが、 「完了までウェイト」を実現するためにTakeOutCommandCallbackを利用しています。 https://github.com/kakudo/rmu-addons/blob/main/RDEventMove/RDEventMove.cs#L203 アドオン中でTakeOutCommandCallbackの戻り値を保管しておくと、アドオン後のフロー処理が待機されます。 (同じアドオンを複数回並行に動かす可能性があるため、ここではリストにしています) その後、 https://github.com/kakudo/rmu-addons/blob/main/RDEventMove/RDEventMoveUpdate.cs#L140 のように保管した戻り値を関数として実行すると、フロー処理が再開します。
Created at
Updated at
ありがとうございます、うまくいきました。
そうか、そこの関数そういう使い方で中身がああなってたんですね……
これで独自メニューはだいたいいい感じに行けそうです。
改めて、どうもありがとうございました。