Use new Tab ID system for achievement lock preview
This commit is contained in:
1 parent
6bd6a4d1f5
commit
2abef7b52c
1 file changed
+5
-10
+5
-10
@@ -830,21 +830,16 @@ function EID:handleBagOfCraftingRendering()
|
|||||||
--Display the result of the 8 items in our bag
|
--Display the result of the 8 items in our bag
|
||||||
if (showCraftingResult or EID.Config["BagOfCraftingDisplayMode"] == "Preview Only") and #EID.BagItems >= 8 then
|
if (showCraftingResult or EID.Config["BagOfCraftingDisplayMode"] == "Preview Only") and #EID.BagItems >= 8 then
|
||||||
local craftingResult, backupResult = EID:calculateBagOfCrafting(EID.BagItems)
|
local craftingResult, backupResult = EID:calculateBagOfCrafting(EID.BagItems)
|
||||||
if Input.IsActionPressed(ButtonAction.ACTION_MAP, EID.player.ControllerIndex) then
|
if (backupResult ~= craftingResult) then EID.TabPreviewID = backupResult end
|
||||||
local descriptionObj = EID:getDescriptionObj(5, 100, backupResult)
|
|
||||||
descriptionObj.Description = getHotkeyString() .. descriptionObj.Description
|
|
||||||
EID:printDescription(descriptionObj)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
local descriptionObj = EID:getDescriptionObj(5, 100, craftingResult)
|
local descriptionObj = EID:getDescriptionObj(5, 100, craftingResult)
|
||||||
local infoText = EID:getDescriptionEntry("FlipItemToggleInfo")
|
|
||||||
--prepend the Hide/Preview hotkeys to the description
|
--prepend the Hide/Preview hotkeys to the description
|
||||||
descriptionObj.Description = getHotkeyString() .. descriptionObj.Description
|
descriptionObj.Description = getHotkeyString() .. descriptionObj.Description
|
||||||
local backupObjName = EID:getObjectName(5, 100, backupResult)
|
if (backupResult ~= craftingResult and descriptionObj.ObjSubType == craftingResult) then
|
||||||
if (backupResult ~= craftingResult) then
|
|
||||||
local backupDesc = EID:getDescriptionEntry("CraftingPreviewBackup")
|
local backupDesc = EID:getDescriptionEntry("CraftingPreviewBackup")
|
||||||
|
local backupObjName = EID:getObjectName(5, 100, backupResult)
|
||||||
|
local tabText = EID:getDescriptionEntry("FlipItemToggleInfo")
|
||||||
EID:appendToDescription(descriptionObj,"#" .. backupDesc .. "#{{Collectible" .. backupResult .. "}} " ..
|
EID:appendToDescription(descriptionObj,"#" .. backupDesc .. "#{{Collectible" .. backupResult .. "}} " ..
|
||||||
backupObjName .. "#{{Blank}} " .. infoText)
|
backupObjName .. "#{{Blank}} " .. tabText)
|
||||||
end
|
end
|
||||||
EID:printDescription(descriptionObj)
|
EID:printDescription(descriptionObj)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in new issue
Block a user