ただの覚え書き。
UserInterface/Default.zip更新内容。
Iconsディレクトリ
Buffs_Debuffs/green/ アイコン追加・更新
追加。
24031_virtue.dds
24033_cora.dds
ファイル名変更。
50000_obelisk.dds → 24034_obelisk.dds
icons.xml
行464~466 追加。
<!-- New Buff Icons -->
<Icon id="24033" texture="Icons/Buffs_Debuffs/green/24033_cora.dds" name="Cora buff" />
<Icon id="24031" texture="Icons/Buffs_Debuffs/green/24031_virtue.dds" name="Virtue buff" />
Sourceディレクトリ
BuffDebuffWindow.lua
行129~130 追加。
BuffDebuff.Good = {
-- (略)
[1183] = true; -- AB_CORA_IMMUNE
[1184] = true; -- AB_VIRTUE_SHIELD
}
ContainerWindow.lua
行2014 更新、行追加。
function ContainerWindow.GetContent(contId)
local prop
local rtn = L""
local items, qta, wgt, val, token
wgt = 0
qta = 0
local props = ItemProperties.GetObjectPropertiesArray( contId, "container items weight scan" )
if props then
local params = ItemProperties.BuildParamsArray( props )
for j = 1, #props.PropertiesTids do
if qta == 0 and ItemPropertiesInfo.QuantityTid[props.PropertiesTids[j]] then
token = ItemPropertiesInfo.QuantityTid[props.PropertiesTids[j]]
val = tostring(params[props.PropertiesTids[j]][token])
qta = qta + tonumber(val)
end
if wgt == 0 and ItemPropertiesInfo.WeightONLYTid[props.PropertiesTids[j]] then
token = ItemPropertiesInfo.WeightONLYTid[props.PropertiesTids[j]]
val = tostring(params[props.PropertiesTids[j]][token])
wgt = wgt + tonumber(val)
end
end
end
if wgt ~= 0 then
local tidParams = ItemProperties.GetObjectPropertiesParamsForTid( contId, 1073841, "container content params" )
if tidParams then
rtn = ReplaceTokens(GetStringFromTid(1073841), {towstring(qta), towstring(tidParams[2]), WindowUtils.AddCommasToNumber(wgt)}) -- Contents: ~1_COUNT~/~2_MAXCOUNT~ items, ~3_WEIGHT~ stones
else
rtn = ReplaceTokens(GetStringFromTid(1073841), {towstring(qta), towstring(125), WindowUtils.AddCommasToNumber(wgt)}) -- Contents: ~1_COUNT~/~2_MAXCOUNT~ items, ~3_WEIGHT~ stones
end
end
if rtn and rtn ~= L"" and wstring.find(rtn, L":") then
return rtn
end
return nil
end
行2071 抹消。
function ContainerWindow.ScanSubCont(id, allItems, itemsOnly)
local removeOnComplete = false
if not WindowData.ContainerWindow[id] then
RegisterWindowData(WindowData.ContainerWindow.Type, id)
removeOnComplete = true
end
local qta = 0
local wgt = 0
if not WindowData.ContainerWindow[id] and not itemsOnly then
local props = ItemProperties.GetObjectPropertiesArray( id, "container items weight scan" )
if props then
local params = ItemProperties.BuildParamsArray( props )
for j = 1, #props.PropertiesTids do
if ItemPropertiesInfo.WeightONLYTid[props.PropertiesTids[j]] then
local token = ItemPropertiesInfo.WeightONLYTid[props.PropertiesTids[j]]
local val = tostring(params[props.PropertiesTids[j]][token])
wgt = wgt + tonumber(val)
-- break 行抹消
end
end
end
-- (以下略)
Waypoints.lua
行941 追加。
Waypoints.Facet[1] = {
-- (略)
{ x="1471", y="1708", z="5", type="15", Name="The Britain Commons", Icon="100035", Scale=0.59 };
-- (略)