Port the AVA2 switchbot window and switchbot module
PythonSwitchbot + PythonNetworkStreamPhaseGameSwitchbot from AVA2 (CG/GC 171, SWITCHBOT window 7, SLOT_TYPE_SWITCHBOT), uiswitchbot.py verbatim in SwitchbotScript.inc plus its ENABLE_SWITCHBOT glue (tooltip, mouse/inventory drag-back, interface/game hooks, zh strings, server switchbot_* messages). Entry is the minimap 洗练 button; F9 stays with auto-hunt. The client version timestamp is now "mt20261016" so the server enables the switchbot. 50348/50349 no longer open the window. Adds docs/AVA2-PARITY-PLAN.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e70a6abf7a
commit
fc98e6e2b4
@@ -93,10 +93,6 @@ def UseItemSlot(self,slot):
|
||||
import mt_battlepass
|
||||
if mt_battlepass.g_window:mt_battlepass.g_window.OfferTicket(cell,vnum)
|
||||
return
|
||||
if vnum in (50348,50349):
|
||||
import mt_switchbot
|
||||
if mt_switchbot.g_window:mt_switchbot.g_window.Open()
|
||||
return
|
||||
return _use(self,slot)
|
||||
|
||||
uiInventory.InventoryWindow.UseItemSlot=UseItemSlot
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "UserInterface/PythonMessenger.h"
|
||||
#include "UserInterface/PythonSafeBox.h"
|
||||
#include "UserInterface/PythonSash.h"
|
||||
#include "UserInterface/PythonSwitchbot.h"
|
||||
#include "UserInterface/PythonGuild.h"
|
||||
#include "UserInterface/MarkManager.h"
|
||||
#include "UserInterface/GuildMarkDownloader.h"
|
||||
@@ -158,6 +159,7 @@ struct GameSingletons
|
||||
CPythonMessenger pyManager;
|
||||
CPythonSafeBox pySafeBox;
|
||||
CPythonSash pySash; // PORT: AVA2 sash
|
||||
CPythonSwitchbot pySwitchbot; // PORT: AVA2 switchbot
|
||||
CPythonGuild pyGuild;
|
||||
CGuildMarkManager kGuildMarkManager;
|
||||
CGuildMarkDownloader kGuildMarkDownloader;
|
||||
@@ -924,6 +926,7 @@ bool run_main_script_body(const char* lpCmdLine, std::string* error)
|
||||
initMessenger();
|
||||
initsafebox();
|
||||
initSash();
|
||||
initSwitchbot();
|
||||
initguild();
|
||||
initServerStateChecker();
|
||||
initRenderTarget(); // PORT: AVA2 model preview
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user