《饥荒》修改了双层人物物品栏,游戏设置(选项)-(设置)-HUD大小项目设置为0?在哪里设置?

双主角物品(60格)

1.用记事本打开游戏目录\ data \ DLC 0001 \ scripts \ components \ inventory . Lua文件,将local MAXSLOTS = 15替换为local MAXSLOTS = 60。

2.用记事本打开游戏目录\ data \ scripts \ widgets \ inventory bar . Lua文件,将self.bg: setscale (1.15,1,1)替换为self . BG:set scale(1)。

3.替换以下内容:

local num _ intersep = math . floor(num _ slots/5)+1

local total_w =(插槽数量+设备数量)*(W) +(插槽数量+设备数量- 2 -中间数量)*(SEP) +中间数量*中间数量

对于k,在IPA IRS(self . equislotinfo)中做v

本地插槽=设备插槽(虚拟插槽、虚拟图集、虚拟图像、自有)

self . equip[v . slot]= self . top row:AddChild(slot)

local x =-total _ W/2+(num _ slots)*(W)+num _ INTERSEP *(INTERSEP-SEP)+(num _ slots-1)* SEP+INTERSEP+W *(k-1)+SEP *(k-1)

slot:SetPosition(x,0,0)

table.insert(eslot_order,slot)

local item = self . owner . components . inventory:GetEquippedItem(v . slot)

如果项目然后

slot:SetTile(ItemTile(item))

结束

结束

对于k = 1,数量_槽数为

local slot = InvSlot(k,HUD_ATLAS," inv_slot.tex ",self.owner,self . owner . components . inventory)

self . inv[k]= self . top row:AddChild(slot)

local inter seps = math . floor((k-1)/5)

局部x =-total _ W/2+W/2+inter seps *(inter SEP-SEP)+(k-1)* W+(k-1)* SEP

slot:SetPosition(x,0,0)

slot.top_align_tip = W*0.5 + YSEP

local item = self . owner . components . inventory:GetItemInSlot(k)

如果项目然后

slot:SetTile(ItemTile(item))

结束

结束

替换为:

local num _ intersep = math . floor(num _ slots/10)+1

local total _ W =(num _ slots-30.85)*(W)+(num _ slots-30.85-2-num _ INTERSEP)*(SEP)+INTERSEP * num _ INTERSEP

对于k,在IPA IRS(self . equislotinfo)中做v

本地插槽=设备插槽(虚拟插槽、虚拟图集、虚拟图像、自有)

self . equip[v . slot]= self . top row:AddChild(slot)

local x =-total _ W/2+(num _ slots * 0+14.07)*(W)+num _ INTERSEP *(INTERSEP-SEP)+(num _ slots-1)* SEP+INTERSEP+W *(k-1)+SEP *(k-1)

插槽:设置位置(x+341,190,0)

table.insert(eslot_order,slot)

local item = self . owner . components . inventory:GetEquippedItem(v . slot)

如果项目然后

slot:SetTile(ItemTile(item))

结束

结束

对于k = 1,30 do

local slot = InvSlot(k,HUD_ATLAS," inv_slot.tex ",self.owner,self . owner . components . inventory)

self . inv[k]= self . top row:AddChild(slot)

local inter seps = math . floor((k-1)/10)

局部x =-total _ W/2+W/2+inter seps *(inter SEP-SEP)+(k-1)* W+(k-1)* SEP

slot:SetPosition(x,0,0)

local item = self . owner . components . inventory:GetItemInSlot(k)

如果项目然后

slot:SetTile(ItemTile(item))

结束

结束

对于k = 31,60 do

local slot = InvSlot(k,HUD_ATLAS," inv_slot.tex ",self.owner,self . owner . components . inventory)

self . inv[k]= self . top row:AddChild(slot)

local inter seps = math . floor((k-1-30)/10)

局部x =-total _ W/2+W/2+inter SEP *(inter SEP-SEP)+(k-1-30)* W+(k-1-30)* SEP

插槽:设置位置(x,80,0)

local item = self . owner . components . inventory:GetItemInSlot(k)

如果项目然后

slot:SetTile(ItemTile(item))

结束

结束

可以获得双层主角物品栏(60格)。注意,必须将游戏设置(选项)-(设置)-HUD大小项设置为0,即显示最小项栏,完整显示60格即可。

事实上,你可以得到一个25平方的。