LoginSignup
0
0

More than 1 year has passed since last update.

雀魂 大会の絞り込み

Posted at

スクリプトの利用は、自己責任でお願いします。

雀魂の大会ロビーの「フォロー中の大会」にチェックを入れると、大会の一覧を絞り込むスクリプトです。開発者ツールから実行できます。
同じサーバーにいるプレイヤーが開いた大会のみを表示し、新しく開催された順に並び変えます。

uiscript.UI_Match_Lobby.Inst.content._refresh_match_list ??= uiscript.UI_Match_Lobby.Inst.content.refresh_match_list;
uiscript.UI_Match_Lobby.Inst.content.refresh_match_list = function(_, searchText) {
    this._refresh_match_list(...arguments);
    if (searchText || !this.only_follow) return;

    const is_same_zone = id => game.Tools.is_same_zone(id, GameMgr.Inst.account_id);
    const match_ids = Object.values(this.match_infos)
        .filter(match => match.state === 2 && is_same_zone(match.creator_id))
        .sort((a, b) => a.start_time < b.start_time ? 1 : -1)
        .map(match => match.unique_id);
    if (!match_ids.length) return;

    this.match_ids = [...new Set([...this.match_ids, ...match_ids])];
    this.nolimitlist.reset();
    this.nolimitlist.total_count = this.match_ids.length;
    this.noinfo.visible = false;
};
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0