MCM dummy description improvements
This commit is contained in:
1 parent
0ccd789234
commit
14807d51b0
1 file changed
+10
-10
@@ -564,7 +564,7 @@ local function renderAchievementInfo()
|
|||||||
demoDescObj.Description = EID:getDescriptionEntry("OldGameVersionWarningText") or ""
|
demoDescObj.Description = EID:getDescriptionEntry("OldGameVersionWarningText") or ""
|
||||||
EID:displayPermanentText(demoDescObj)
|
EID:displayPermanentText(demoDescObj)
|
||||||
hasShownAchievementWarning = true
|
hasShownAchievementWarning = true
|
||||||
elseif EID.player:HasCollectible(710) and EID:DetectModdedItems() and EID.Config.DisplayBagOfCrafting ~= "never" and not EID.Config.BagOfCraftingSimplifiedMode then
|
elseif EID.player:HasCollectible(710) and EID:DetectModdedItems() and EID.Config.DisplayBagOfCrafting ~= "never" and EID.Config.BagOfCraftingDisplayMode ~= "No Recipes" then
|
||||||
local demoDescObj = EID:getDescriptionObj(-999, -1, 1)
|
local demoDescObj = EID:getDescriptionObj(-999, -1, 1)
|
||||||
demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or ""
|
demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or ""
|
||||||
demoDescObj.Description = EID:getDescriptionEntry("ModdedRecipesWarningText") or ""
|
demoDescObj.Description = EID:getDescriptionEntry("ModdedRecipesWarningText") or ""
|
||||||
@@ -608,13 +608,12 @@ local function onRender(t)
|
|||||||
EID.isHidden = not EID.isHidden
|
EID.isHidden = not EID.isHidden
|
||||||
end
|
end
|
||||||
|
|
||||||
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID
|
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" and EID.MCMCompat_isDisplayingEIDTab ~= "Crafting" then --if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu isn't currently in the "Visuals" or "Crafting" tab of EID
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
EID:renderMCMDummyDescription()
|
|
||||||
|
|
||||||
renderAchievementInfo()
|
renderAchievementInfo()
|
||||||
|
EID:renderMCMDummyDescription()
|
||||||
|
|
||||||
if EID.GameVersion == "ab+" then
|
if EID.GameVersion == "ab+" then
|
||||||
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
if EID.player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||||
@@ -628,12 +627,6 @@ local function onRender(t)
|
|||||||
else
|
else
|
||||||
EID:removeTextPosModifier("Tained HUD")
|
EID:removeTextPosModifier("Tained HUD")
|
||||||
end
|
end
|
||||||
if EID.player:HasCollectible(710) then
|
|
||||||
local success = EID:handleBagOfCraftingRendering()
|
|
||||||
if success then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if EID.isHidden then
|
if EID.isHidden then
|
||||||
@@ -650,6 +643,13 @@ local function onRender(t)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if REPENTANCE and EID.player:HasCollectible(710) then
|
||||||
|
local success = EID:handleBagOfCraftingRendering()
|
||||||
|
if success then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
EID.lastDescriptionEntity = nil
|
EID.lastDescriptionEntity = nil
|
||||||
EID.lastDist = 10000
|
EID.lastDist = 10000
|
||||||
local searchGroups = {}
|
local searchGroups = {}
|
||||||
|
|||||||
Reference in new issue
Block a user