安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
return retVal
end
local function handleJoypadDirDown(self, target, joypadData)
-- Store the original order of the backpacks
local originalOrder = {}
for index, button in ipairs(target.backpacks) do
originalOrder[button] = index
end
-- Sort the backpacks by their Y position so that scrolling works as expected
table.sort(target.backpacks, function(a, b) return a:getY() < b:getY() end)
-- Clear the 'backpackChoice', not sure what its actually for, but we stop it from existing on bumper inputs
target.killTheChoice = true
local retVal = self:pre_reorder_onJoypadDirDown(joypadData)
table.sort(target.backpacks, function(a, b) return originalOrder[a] < originalOrder end)
return retVal
end
ISInventoryPage.pre_reorder_onJoypadDirUp = ISInventoryPage.onJoypadDirUp
ISInventoryPage.onJoypadDirUp = function(self, joypadData)
local shoulderSwitch = getCore():getOptionShoulderButtonContainerSwitch()
local inv = getPlayerInventory(self.player)
local loot = getPlayerLoot(self.player)
if shoulderSwitch == 3 then
if isJoypadPressed(joypadData.id, Joypad.LBumper) then
return handleJoypadDirUp(self, inv, joypadData)
elseif isJoypadPressed(joypadData.id, Joypad.RBumper) then
if ReorderContainers_Mod.canReorderBackpacks(loot) then
return handleJoypadDirUp(self, loot, joypadData)
end
end
end
return self:pre_reorder_onJoypadDirUp(joypadData)
end
ISInventoryPage.pre_reorder_onJoypadDirDown = ISInventoryPage.onJoypadDirDown
ISInventoryPage.onJoypadDirDown = function(self, joypadData)
local shoulderSwitch = getCore():getOptionShoulderButtonContainerSwitch()
local inv = getPlayerInventory(self.player)
local loot = getPlayerLoot(self.player)
if shoulderSwitch == 3 then
if isJoypadPressed(joypadData.id, Joypad.LBumper) then
return handleJoypadDirDown(self, inv, joypadData)
elseif isJoypadPressed(joypadData.id, Joypad.RBumper) then
if ReorderContainers_Mod.canReorderBackpacks(loot) then
return handleJoypadDirDown(self, loot, joypadData)
end
end
end
return self:pre_reorder_onJoypadDirDown(joypadData)
end
Controller has not been a high priority for me thus far, so this is very helpful.