完成多出修改

修复拾取界面点击无效问题
修复宠物训练界面不显示训练点问题
新增天赋分享到聊天界面
修复飞行界面无法关闭问题
修复术士宠物的显示问题
为天赋界面添加默认数据库支持
框架现在也可自主选择是否启用
玩家框架和目标框架可取消显示3D头像以及透明度修改
背包和银行也添加透明度自定义支持
优化tooltip性能和背包物品显示方式
修复布局模式在ui缩放后不能正常定位的问题
添加硬核模式危险和死亡的工会通报
添加拾取和已拾取的框体
等等
This commit is contained in:
rucky
2026-03-23 10:25:25 +08:00
parent 63337b14d2
commit ec9e3c29d6
34 changed files with 13897 additions and 578 deletions

View File

@@ -426,13 +426,18 @@ function MUI:BuyMultiple(index, totalAmount)
end
local name, _, price, batchQty, numAvailable = GetMerchantItemInfo(index)
local batchSize = (batchQty and batchQty > 0) and batchQty or 1
local numPurchases = math.ceil(totalAmount / batchSize)
if numAvailable > -1 and totalAmount > numAvailable then
totalAmount = numAvailable
if numAvailable > -1 and numPurchases > numAvailable then
numPurchases = numAvailable
end
for i = 1, totalAmount do
BuyMerchantItem(index, 1)
while numPurchases > 0 do
local batch = numPurchases
if batch > 255 then batch = 255 end
BuyMerchantItem(index, batch)
numPurchases = numPurchases - batch
end
end
@@ -612,12 +617,13 @@ local function CreateMerchantButton(parent, id)
local name, _, price, quantity, numAvailable = GetMerchantItemInfo(btn.itemIndex)
if not name then return end
local popupLink = GetMerchantItemLink(btn.itemIndex)
local batchSize = (quantity and quantity > 0) and quantity or 1
local maxCanAfford = 9999
if price and price > 0 then
maxCanAfford = math.floor(GetMoney() / price)
maxCanAfford = math.floor(GetMoney() / price) * batchSize
end
if numAvailable > -1 and numAvailable < maxCanAfford then
maxCanAfford = numAvailable
if numAvailable > -1 and numAvailable * batchSize < maxCanAfford then
maxCanAfford = numAvailable * batchSize
end
if maxCanAfford < 1 then return end
EnsureBuyPopup()