1
This commit is contained in:
@@ -336,7 +336,7 @@ class Lenheart_Character_Info_ClassC extends LenheartNewUI_Windows {
|
||||
GetMyInfoFlag = false;
|
||||
}
|
||||
|
||||
if (!WindowX || !OldWindowAddress) return;
|
||||
if (!WindowX) return;
|
||||
|
||||
if (!GetMyInfoFlag) {
|
||||
GetMyInfoFlag = true;
|
||||
@@ -347,41 +347,39 @@ class Lenheart_Character_Info_ClassC extends LenheartNewUI_Windows {
|
||||
SendPackEx(T);
|
||||
}
|
||||
|
||||
X = L_sq_RA(OldWindowAddress + 0x14);
|
||||
Y = L_sq_RA(OldWindowAddress + 0x18);
|
||||
X = Base_X;
|
||||
Y = Base_Y;
|
||||
}
|
||||
|
||||
Base_X = 0;
|
||||
Base_Y = 0;
|
||||
OldWindowAddress = null;
|
||||
|
||||
function SyncState(Address) {
|
||||
local WindowX = sq_GetPopupWindowMainCotrol(74);
|
||||
local WindowAddress = L_sq_GetWindowById(74);
|
||||
if (!WindowX || !WindowAddress) return false;
|
||||
//确定是个人信息窗口才执行逻辑 并且返回true 不执行原逻辑
|
||||
if (Address - WindowAddress <= 0x50000 && L_sq_RA(Address + 0x34) == 4089) {
|
||||
OldWindowAddress = Address;
|
||||
local obj = sq_getMyCharacter();
|
||||
RealShow(obj);
|
||||
Visible = true;
|
||||
return true;
|
||||
}
|
||||
function SyncState(Args) {
|
||||
Base_X = Args[0] + 800;
|
||||
Base_Y = Args[1] - 174;
|
||||
local obj = sq_getMyCharacter();
|
||||
RealShow(obj);
|
||||
Visible = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DrawCodeCallBackFunc.Rindro_Character_Info <- function(Args) {
|
||||
if (getroottable().rawin("Lenheart_Character_Info_Class_Obj")) {
|
||||
local MyWindow = getroottable().rawget("Lenheart_Character_Info_Class_Obj");
|
||||
MyWindow.SyncState(Args);
|
||||
}
|
||||
}
|
||||
|
||||
//个人信息窗口逻辑
|
||||
function L_Character_Info_Window(WindowObject) {
|
||||
//返回Flase 原逻辑继续执行 返回Tue 原逻辑终止执行
|
||||
local Flag = false;
|
||||
if (getroottable().rawin("Lenheart_Character_Info_Class_Obj")) {
|
||||
local MyWindow = getroottable().rawget("Lenheart_Character_Info_Class_Obj");
|
||||
local Ret = MyWindow.SyncState(WindowObject);
|
||||
if (Ret) Flag = true;
|
||||
}
|
||||
return Flag;
|
||||
// //返回Flase 原逻辑继续执行 返回Tue 原逻辑终止执行
|
||||
// local Flag = false;
|
||||
// if (getroottable().rawin("Lenheart_Character_Info_Class_Obj")) {
|
||||
// local MyWindow = getroottable().rawget("Lenheart_Character_Info_Class_Obj");
|
||||
// local Ret = MyWindow.SyncState(WindowObject);
|
||||
// if (Ret) Flag = true;
|
||||
// }
|
||||
// return Flag;
|
||||
}
|
||||
|
||||
getroottable().rawdelete("Lenheart_Character_Info_Class_Obj");
|
||||
|
||||
Reference in New Issue
Block a user