This commit is contained in:
2024-09-27 14:04:23 +08:00
parent 39d60b284e
commit b2133d8463
25 changed files with 1170 additions and 128 deletions

View File

@@ -50,7 +50,12 @@ class Tuguan_NewC extends LenheartNewUI_Windows {
State = 2;
}
BoxWindowName = Rindro_ItemInfoObject[BoxId].Name;
//读取物品名称
local ItemObject = L_sq_GetItem(BoxId);
local NamePointer = L_sq_RA(ItemObject + 0x20);
local Name = NativePointer(L_sq_I2P(NamePointer)).readUnicodeString();
BoxWindowName = Name;
Visible = true;
//初始化完成
InitState = true;
@@ -201,7 +206,7 @@ class Tuguan_NewC extends LenheartNewUI_Windows {
local ItemId = RewardObj[i][z]["itemid"];
local ItemCount = RewardObj[i][z]["num"];
//绘制物品
L_Sq_DrawItem((X - 195) + 198 + 30 + 9 + ((ofs % 4) * 86) + (z * 34) + 3, Y + 62 + 9 + ((ofs / 4) * 50) + 3, ItemId, ItemCount, 0, 0, 0);
DrawItemEx((X - 195) + 198 + 30 + 9 + ((ofs % 4) * 86) + (z * 34) + 3, Y + 62 + 9 + ((ofs / 4) * 50) + 3, ItemId, ItemCount);
if (sq_IsIntersectRect(IMouse.GetXPos(), IMouse.GetYPos(), 1, 1, (X - 195) + 198 + 30 + 9 + ((ofs % 4) * 86) + (z * 34) + 3, Y + 62 + 9 + ((ofs / 4) * 50) + 3, 24, 24)) {
ItemInfoDrawS = {};
ItemInfoDrawS.X <- (X - 195) + 198 + 30 + 9 + ((ofs % 4) * 86) + (z * 34) + 3;