178 lines
5.4 KiB
Plaintext
178 lines
5.4 KiB
Plaintext
/*
|
|
文件名:DrawMain.nut
|
|
路径:Base/CallBack/DrawMain.nut
|
|
创建日期:2024-08-06 18:58
|
|
文件用途:绘制回调
|
|
*/
|
|
//在DrawMain后面调用
|
|
function L_drawMainCustomUI_All() {
|
|
local obj = sq_getMyCharacter();
|
|
if (!obj) return;
|
|
|
|
local RootTab = getroottable();
|
|
//下帧执行任务事件
|
|
if (RootTab.rawin("LenheartNextFrameFuncTab")) {
|
|
foreach(Func in RootTab["LenheartNextFrameFuncTab"]) {
|
|
Func();
|
|
}
|
|
RootTab["LenheartNextFrameFuncTab"] = [];
|
|
} else {
|
|
RootTab.LenheartNextFrameFuncTab <- [];
|
|
}
|
|
|
|
//重载逻辑
|
|
try {
|
|
local Func = loadfile("Yosin_Game_Reloading.Sign", true);
|
|
Func();
|
|
L_Cmd("cmd.exe /c del Yosin_Game_Reloading.Sign");
|
|
//清空窗口
|
|
L_Windows_List = [];
|
|
//清空所有注册包
|
|
Pack_Control = {};
|
|
|
|
PushDamageFontDataFuncTab <- {};
|
|
PushDamageFontFuncTab <- {};
|
|
|
|
//清空活动图标窗口
|
|
getroottable().rawdelete("EventList_Obj");
|
|
//清空插件初始化状态
|
|
getroottable().rawdelete("LenheartPluginsInitFlag");
|
|
|
|
getroottable().rawdelete("RINDRO_GET_ITEM_FLAG");
|
|
//特殊清空
|
|
getroottable().rawdelete("OnlineAnnouncement_Obj");
|
|
//血槽UI
|
|
getroottable().rawdelete("HudUi_Obj");
|
|
|
|
//战令
|
|
getroottable().rawdelete("AradPass_Obj");
|
|
//战斗力系统
|
|
getroottable().rawdelete("CombatRankC_Obj");
|
|
//刷图签到
|
|
getroottable().rawdelete("FightSign_Obj");
|
|
//希曼音乐会
|
|
getroottable().rawdelete("MidsummerParty_Obj");
|
|
//在线签到
|
|
getroottable().rawdelete("OnilneSign_Obj");
|
|
//全服竞拍
|
|
getroottable().rawdelete("ServerAuction_Obj");
|
|
//秒伤统计
|
|
getroottable().rawdelete("DamagePerSecond_Obj");
|
|
//皮肤仓库
|
|
getroottable().rawdelete("SkinHub_Obj");
|
|
|
|
} catch (exception) {
|
|
if (exception != "cannot open the file")
|
|
print("Reloading Script Fail !!! \n" + exception);
|
|
}
|
|
|
|
//
|
|
local RootTab = getroottable();
|
|
|
|
|
|
//尝试调用百级UI
|
|
// if (getroottable().rawin("Lenheart_100UI_Event_BackGround")) Lenheart_100UI_Event_BackGround();
|
|
// if (getroottable().rawin("Lenheart_100UI")) Lenheart_100UI(obj);
|
|
|
|
//初始化活动图标
|
|
Lenheart_EventList_Fun(obj);
|
|
|
|
//加载注册Base函数窗口
|
|
if (RootTab.rawin("LenheartBaseFuncTab")) {
|
|
if (RINDRO_INIT_FLAG) {
|
|
local LenheartFunc = RootTab["LenheartBaseFuncTab"];
|
|
foreach(Func in LenheartFunc) {
|
|
Func(obj);
|
|
}
|
|
}
|
|
}
|
|
|
|
//加载注册Ex函数窗口
|
|
if (RootTab.rawin("LenheartFuncTab")) {
|
|
if (RINDRO_INIT_FLAG) {
|
|
local LenheartFunc = RootTab["LenheartFuncTab"];
|
|
foreach(Func in LenheartFunc) {
|
|
Func(obj);
|
|
}
|
|
}
|
|
}
|
|
|
|
//所有插件初始化完毕
|
|
if (!getroottable().rawin("LenheartPluginsInitFlag")) {
|
|
if (RINDRO_INIT_FLAG) {
|
|
local T = {
|
|
op = 25001021,
|
|
}
|
|
Rindro_BaseToolClass.SendPackEx(T);
|
|
getroottable().LenheartPluginsInitFlag <- true;
|
|
}
|
|
}
|
|
|
|
//初始化Item信息
|
|
if (!getroottable().rawin("RINDRO_GET_ITEM_FLAG")) {
|
|
RINDRO_CONFIG <- Rindro_GetLocalConfig();
|
|
getroottable().RINDRO_GET_ITEM_FLAG <- true;
|
|
Rindro_BaseToolClass.SendPackEx({
|
|
op = 20069005,
|
|
md5 = Rindro_GetMd5()
|
|
});
|
|
}
|
|
|
|
|
|
// if (Clock() - getroottable().Lsnzz >= 50) {
|
|
// getroottable().Lsnzz = Clock();
|
|
// local T = {
|
|
// op = 25001021,
|
|
// }
|
|
// Rindro_BaseToolClass.SendPackEx(T);
|
|
// }
|
|
|
|
// if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/curreny.nut")) {
|
|
// local appendage1 = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 174, false, "appendage/curreny.nut", true);
|
|
// }
|
|
|
|
// print(format("%02X", L_sq_RA(0x1B474D4)));
|
|
// print(R_Mouse.IsLock());
|
|
// print(format("%02X", L_sq_RA(0x3431de00 + 0x14)));
|
|
// L_sq_WA(0x3431de00 + 0x14,200);
|
|
// print(format("%02X", L_sq_RA(0x1AE94C4, "0x590+0x44+")));
|
|
//外界主界面
|
|
// if(L_sq_RA(0x1B474D4) == 0x3C7FB100)print(true);
|
|
// else print(false);
|
|
// print(CheckInOldW());
|
|
// GetTownBaseBackgroundAddress();
|
|
|
|
// print(getroottable().WindowsShowABFlag);
|
|
|
|
// L_Sq_GetPlayerEachName();
|
|
// Sout("%L",L_Sq_GetPlayerEachName());
|
|
// print(Rindro_BaseToolClass.GetEachNpcId());
|
|
|
|
|
|
|
|
// local EachCount = 0;
|
|
// local EachClassObject = L_sq_RA(0x1ADE0E0);
|
|
// if (EachClassObject) {
|
|
// local FristChildOffset = (EachClassObject + 0x68);
|
|
// for (local i = 0; i< 74; i++) {
|
|
// local AddressBuf = FristChildOffset + (4 * i);
|
|
// local ChildAddress = L_sq_RA(AddressBuf);
|
|
// if (ChildAddress) {
|
|
// local OpenFlag = L_sq_RA(ChildAddress + 0xC);
|
|
// if (OpenFlag == 257) EachCount++;
|
|
// }
|
|
// }
|
|
// }
|
|
// print(EachCount);
|
|
|
|
// for (local i = 0; i< 400; i++) {
|
|
// local WindowAddress = L_sq_GetWindowById(i);
|
|
// if (WindowAddress != 0) print(format("%02X", WindowAddress));
|
|
// if (WindowAddress == 0x39F56000) print(i);
|
|
// }
|
|
}
|
|
// getroottable().Lsnzz <- Clock();
|
|
|
|
// dofile("sqr/Base/_Tool/Json.nut");
|
|
|
|
// print(T); |