This commit is contained in:
2025-05-27 21:24:22 +08:00
parent e1528c41bb
commit d71fc5c822
126 changed files with 11382 additions and 1202 deletions

View File

@@ -192,6 +192,14 @@ class ServerAuctionC extends LenheartNewUI_Windows {
AddChild(OpenAuctionButton);
}
function GetItemName(Id) {
//读取物品名称
local ItemObject = L_sq_GetItem(Id);
local NamePointer = L_sq_RA(ItemObject + 0x20);
local Name = NativePointer(L_sq_I2P(NamePointer)).readUnicodeString();
return Name;
}
//绘制主界面
function DrawMain(obj) {
@@ -211,18 +219,17 @@ class ServerAuctionC extends LenheartNewUI_Windows {
if (Value.cost == -1) CostItemId = 7906;
if (Value.cost == -2) CostItemId = 133;
//绘制扣除道具
if (Rindro_ItemInfoObject.rawin(CostItemId)) DrawItemEx(X + 40, Y + 284, CostItemId, 1);
else L_Sq_DrawItem(X + 40, Y + 284, CostItemId, 1, 0, 0, 0);
DrawItemEx(X + 40, Y + 284, CostItemId, 1);
local CostName = "";
if (Value.cost == 0) CostName = "金币";
else if (Value.cost == -1) CostName = "点券";
else if (Value.cost == -2) CostName = "代币券";
else CostName = Rindro_ItemInfoObject[CostItemId].Name;
else CostName = GetItemName(CostItemId);
//绘制扣除道具名字
L_sq_DrawCode(CostName, X + 79, Y + 300, sq_RGBA(227, 212, 154, 250), 0, 1);
//绘制竞品名
L_sq_DrawCode(Rindro_ItemInfoObject[Value.itemId].Name, X + 120, Y + 207, sq_RGBA(227, 212, 154, 250), 0, 1);
L_sq_DrawCode(GetItemName(Value.itemId), X + 120, Y + 207, sq_RGBA(227, 212, 154, 250), 0, 1);
//绘制最高竞价者
L_sq_DrawCode(AuctionRealInfo.name, X + 120, Y + 230, sq_RGBA(227, 212, 154, 250), 0, 1);
//绘制最高竞拍价