refactor(HudUi): 清理无用代码并优化内存修复逻辑
移除多余的return语句和注释掉的代码 清理全局变量并优化内存修复函数
This commit is contained in:
parent
85b66c2cb1
commit
2f20020a01
|
|
@ -53,30 +53,29 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
L_sq_WAB(0x400E17, 7);
|
L_sq_WAB(0x400E17, 7);
|
||||||
L_sq_WAB(0x400E18, 0);
|
L_sq_WAB(0x400E18, 0);
|
||||||
|
|
||||||
return;
|
|
||||||
// 干掉nut初始化基础技能栏坐标
|
// 干掉nut初始化基础技能栏坐标
|
||||||
L_sq_WAB(0x4B3239, 0xEB);
|
L_sq_WAB(0x4B3239, 0xEB);
|
||||||
|
|
||||||
//右上角绿色小圆球
|
// //右上角绿色小圆球
|
||||||
L_sq_WA(0x00E6D873, 1000);
|
// L_sq_WA(0x00E6D873, 1000);
|
||||||
//广播黑条
|
// //广播黑条
|
||||||
L_sq_WA(0x01AF4968, 0);
|
// L_sq_WA(0x01AF4968, 0);
|
||||||
//格兰背景
|
// //格兰背景
|
||||||
L_sq_WA(0x004CA0B3, 850);
|
// L_sq_WA(0x004CA0B3, 850);
|
||||||
L_sq_WA(0x004BB768, 850);
|
// L_sq_WA(0x004BB768, 850);
|
||||||
//副本名称
|
// //副本名称
|
||||||
L_sq_WA(0x004BB872, 850);
|
// L_sq_WA(0x004BB872, 850);
|
||||||
L_sq_WA(0x004BB850, 850);
|
// L_sq_WA(0x004BB850, 850);
|
||||||
//城镇名称
|
// //城镇名称
|
||||||
L_sq_WA(0x004CA27C, 850);
|
// L_sq_WA(0x004CA27C, 850);
|
||||||
|
|
||||||
//城镇过场Tips背景
|
// //城镇过场Tips背景
|
||||||
L_sq_WA(0x004580FD, 400 + 133);
|
// L_sq_WA(0x004580FD, 400 + 133);
|
||||||
//城镇过场Tips文本
|
// //城镇过场Tips文本
|
||||||
L_sq_WA(0x004581DD, 400 + 133);
|
// L_sq_WA(0x004581DD, 400 + 133);
|
||||||
|
|
||||||
//头顶滚动公告
|
// //头顶滚动公告
|
||||||
L_sq_WAB(0x11FA640, 0xC3);
|
// L_sq_WAB(0x11FA640, 0xC3);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -99,7 +98,6 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (i * 0x4)) + 0x14, 844 + (i * 17));
|
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (i * 0x4)) + 0x14, 844 + (i * 17));
|
||||||
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (i * 0x4)) + 0x18, 561);
|
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (i * 0x4)) + 0x18, 561);
|
||||||
}
|
}
|
||||||
|
|
||||||
//拍卖行(删除)
|
//拍卖行(删除)
|
||||||
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (4 * 0x4)) + 0x14, -5000);
|
L_sq_WA(L_sq_RA(L_sq_RA(0x01ADE0CC) + 0x84 + (4 * 0x4)) + 0x14, -5000);
|
||||||
|
|
||||||
|
|
@ -193,7 +191,6 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
LenheartNewUI_Windows.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
|
LenheartNewUI_Windows.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH);
|
||||||
FixMemory();
|
FixMemory();
|
||||||
|
|
||||||
return;
|
|
||||||
local BallFrameArr = [];
|
local BallFrameArr = [];
|
||||||
for (local i = 0; i< 120; i++) {
|
for (local i = 0; i< 120; i++) {
|
||||||
local T = {
|
local T = {
|
||||||
|
|
@ -213,7 +210,6 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
L_sq_DrawImg("interface2/hud/hpmp_vessel.img", i, -5000, 508);
|
L_sq_DrawImg("interface2/hud/hpmp_vessel.img", i, -5000, 508);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -629,7 +625,6 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
|
|
||||||
|
|
||||||
function TopShow(obj) {
|
function TopShow(obj) {
|
||||||
return;
|
|
||||||
//血蓝球悬停逻辑
|
//血蓝球悬停逻辑
|
||||||
BallRectLogic(obj);
|
BallRectLogic(obj);
|
||||||
//经验条悬停逻辑
|
//经验条悬停逻辑
|
||||||
|
|
@ -638,14 +633,12 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
}
|
}
|
||||||
|
|
||||||
function BottomShow(obj) {
|
function BottomShow(obj) {
|
||||||
return;
|
|
||||||
DrawMain(obj);
|
DrawMain(obj);
|
||||||
LenheartNewUI_Windows.Show(obj);
|
LenheartNewUI_Windows.Show(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
//动态窗口设置逻辑
|
//动态窗口设置逻辑
|
||||||
function Active_Windows_SyncPos() {
|
function Active_Windows_SyncPos() {
|
||||||
return;
|
|
||||||
//任务快捷导航窗口
|
//任务快捷导航窗口
|
||||||
{
|
{
|
||||||
local WindowAddress = L_sq_GetWindowById(1);
|
local WindowAddress = L_sq_GetWindowById(1);
|
||||||
|
|
@ -655,13 +648,17 @@ class HudUiC extends LenheartNewUI_Windows {
|
||||||
|
|
||||||
//逻辑入口
|
//逻辑入口
|
||||||
function Proc(obj) {
|
function Proc(obj) {
|
||||||
return;
|
|
||||||
LenheartNewUI_Windows.SyncPos(X, Y);
|
LenheartNewUI_Windows.SyncPos(X, Y);
|
||||||
Active_Windows_SyncPos();
|
Active_Windows_SyncPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
L_Windows_List <- [];
|
||||||
|
getroottable().rawdelete("LenheartPluginsInitFlag");
|
||||||
|
getroottable().rawdelete("EventList_Obj")
|
||||||
|
getroottable().rawdelete("HudUi_Obj");
|
||||||
|
getroottable().rawdelete("L_Each_Obj");
|
||||||
|
|
||||||
function Lenheart_HudUi_Fun(obj) {
|
function Lenheart_HudUi_Fun(obj) {
|
||||||
local RootTab = getroottable();
|
local RootTab = getroottable();
|
||||||
|
|
@ -672,6 +669,7 @@ function Lenheart_HudUi_Fun(obj) {
|
||||||
|
|
||||||
getroottable()["LenheartFuncTab"].rawset("HudUiFuncN", Lenheart_HudUi_Fun);
|
getroottable()["LenheartFuncTab"].rawset("HudUiFuncN", Lenheart_HudUi_Fun);
|
||||||
|
|
||||||
|
|
||||||
// L_sq_Test(L_sq_RA(0x01AB7CDC), 0x3DB61400);
|
// L_sq_Test(L_sq_RA(0x01AB7CDC), 0x3DB61400);
|
||||||
// local Ret = L_sq_Test(L_sq_RA(0x01AB7CDC), 10);
|
// local Ret = L_sq_Test(L_sq_RA(0x01AB7CDC), 10);
|
||||||
// local Ret = L_sq_Test(L_sq_RA(0x01A5FA88), 101020037);
|
// local Ret = L_sq_Test(L_sq_RA(0x01A5FA88), 101020037);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue