Add the battle pass window (mt_battlepass)

战令 window opened by the 战令 button under the minimap or F6: season and
time left, missions with progress and per-mission claim, final reward,
done notices in chat. Talks to the server over /mt_bp 1 / MTBP1 lines and
reports an unsupported server after 3 s without an answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-16 09:11:43 +09:00
co-authored by Claude Opus 5.5
parent 84404cf1f1
commit 8164c02709
3 changed files with 522 additions and 0 deletions
+2
View File
@@ -1010,6 +1010,7 @@ namespace PythonBoot
#include "BossScript.inc"
#include "VipScript.inc"
#include "ModelPreviewScript.inc"
#include "BattlePassScript.inc"
static void install_script_module(const char* c_szModule, const char* c_szScript)
{
@@ -1091,6 +1092,7 @@ bool RunMainScript(const char* lpCmdLine, std::string* error)
install_script_module("mt_boss", c_szBossScript);
install_script_module("mt_vip", c_szVipScript);
install_script_module("mt_preview", c_szModelPreviewScript);
install_script_module("mt_battlepass", c_szBattlePassScript);
if (g_touch_input)
install_script_module("mt_mobile_hud", c_szMobileHUDScript);
}