Add LocalMode and Scale desc Room and Pickup
This commit is contained in:
1 parent
c5585d5caa
commit
a476328de2
1 file changed
+76
-26
+76
-26
@@ -32,7 +32,7 @@ function EID:renderMCMDummyDescription()
|
|||||||
if hudOffset == nil and ScreenHelper then
|
if hudOffset == nil and ScreenHelper then
|
||||||
hudOffset = ScreenHelper.GetOffset()
|
hudOffset = ScreenHelper.GetOffset()
|
||||||
end
|
end
|
||||||
if REPENTANCE and Options then
|
if REPENTANCE then
|
||||||
hudOffset = (Options.HUDOffset * 10)
|
hudOffset = (Options.HUDOffset * 10)
|
||||||
end
|
end
|
||||||
EID.Config["HUDOffset"] = hudOffset
|
EID.Config["HUDOffset"] = hudOffset
|
||||||
@@ -285,29 +285,6 @@ if MCMLoaded then
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
-- disable the warnings that display at the start of new runs
|
|
||||||
MCM.AddSetting(
|
|
||||||
"EID",
|
|
||||||
"General",
|
|
||||||
{
|
|
||||||
Type = ModConfigMenu.OptionType.BOOLEAN,
|
|
||||||
CurrentSetting = function()
|
|
||||||
return EID.Config["DisableAchievementCheck"]
|
|
||||||
end,
|
|
||||||
Display = function()
|
|
||||||
local onOff = "Enabled"
|
|
||||||
if EID.Config["DisableAchievementCheck"] then
|
|
||||||
onOff = "Disabled"
|
|
||||||
end
|
|
||||||
return "Start of Run Warnings: " .. onOff
|
|
||||||
end,
|
|
||||||
OnChange = function(currentBool)
|
|
||||||
EID.Config["DisableAchievementCheck"] = currentBool
|
|
||||||
end,
|
|
||||||
Info = {"Toggle the achievement, outdated game version, and modded crafting recipes warnings"}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Disable on Curse
|
-- Disable on Curse
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
"EID",
|
"EID",
|
||||||
@@ -460,6 +437,29 @@ if MCMLoaded then
|
|||||||
Info = {"Distance to the object until descriptions are displayed."}
|
Info = {"Distance to the object until descriptions are displayed."}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- disable achievements
|
||||||
|
MCM.AddSetting(
|
||||||
|
"EID",
|
||||||
|
"General",
|
||||||
|
{
|
||||||
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
|
CurrentSetting = function()
|
||||||
|
return EID.Config["DisableAchievementCheck"]
|
||||||
|
end,
|
||||||
|
Display = function()
|
||||||
|
local onOff = "Enabled"
|
||||||
|
if EID.Config["DisableAchievementCheck"] then
|
||||||
|
onOff = "Disabled"
|
||||||
|
end
|
||||||
|
return "Achievement warning: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["DisableAchievementCheck"] = currentBool
|
||||||
|
end,
|
||||||
|
Info = {"Use this to turn off the achievement warning"}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
---------------------------------Display-----------------------------------
|
---------------------------------Display-----------------------------------
|
||||||
@@ -869,6 +869,29 @@ if MCMLoaded then
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- LOCAL MODE
|
||||||
|
MCM.AddSetting(
|
||||||
|
"EID",
|
||||||
|
"Visuals",
|
||||||
|
{
|
||||||
|
Type = ModConfigMenu.OptionType.BOOLEAN,
|
||||||
|
CurrentSetting = function()
|
||||||
|
return EID.Config["LocalMode"]
|
||||||
|
end,
|
||||||
|
Display = function()
|
||||||
|
local onOff = "False"
|
||||||
|
if EID.Config["LocalMode"] then
|
||||||
|
onOff = "True"
|
||||||
|
end
|
||||||
|
return "Local Mode: " .. onOff
|
||||||
|
end,
|
||||||
|
OnChange = function(currentBool)
|
||||||
|
EID.Config["LocalMode"] = currentBool
|
||||||
|
end,
|
||||||
|
Info = {"Sets the local rendering mode of the description text below currently inspected object"}
|
||||||
|
}
|
||||||
|
)
|
||||||
-- SCALE
|
-- SCALE
|
||||||
local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2}
|
local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2}
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
@@ -882,7 +905,11 @@ if MCMLoaded then
|
|||||||
Minimum = 1,
|
Minimum = 1,
|
||||||
Maximum = 6,
|
Maximum = 6,
|
||||||
Display = function()
|
Display = function()
|
||||||
return "Text Size: " .. EID.Config["Scale"]
|
if EID.Config["LocalMode"] then
|
||||||
|
return "Text Size (Pickup Description): " .. EID.Config["LocalScale"]
|
||||||
|
else
|
||||||
|
return "Text Size (All Description): " .. EID.Config["Scale"]
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
OnChange = function(currentNum)
|
OnChange = function(currentNum)
|
||||||
EID.Config["Scale"] = textScales[currentNum]
|
EID.Config["Scale"] = textScales[currentNum]
|
||||||
@@ -890,7 +917,30 @@ if MCMLoaded then
|
|||||||
Info = {"Change text size. CAN BE HARD TO READ IN SOME SETTINGS!"}
|
Info = {"Change text size. CAN BE HARD TO READ IN SOME SETTINGS!"}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2}
|
||||||
|
MCM.AddSetting(
|
||||||
|
"EID",
|
||||||
|
"Visuals",
|
||||||
|
{
|
||||||
|
Type = ModConfigMenu.OptionType.NUMBER,
|
||||||
|
CurrentSetting = function()
|
||||||
|
return AnIndexOf(textScales, EID.Config["Scale"])
|
||||||
|
end,
|
||||||
|
Minimum = 1,
|
||||||
|
Maximum = 6,
|
||||||
|
Display = function()
|
||||||
|
if EID.Config["LocalMode"] then
|
||||||
|
return "Text Size (Room Description): " .. EID.Config["Scale"]
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
OnChange = function(currentNum)
|
||||||
|
EID.Config["Scale"] = textScales[currentNum]
|
||||||
|
end,
|
||||||
|
Info = {"Change text size. CAN BE HARD TO READ IN SOME SETTINGS!"}
|
||||||
|
}
|
||||||
|
)
|
||||||
-- Transparency
|
-- Transparency
|
||||||
local transparencies = {0.1, 0.175, 0.25, 0.3, 0.4, 0.5, 0.6, 0.75, 0.8, 0.9, 1}
|
local transparencies = {0.1, 0.175, 0.25, 0.3, 0.4, 0.5, 0.6, 0.75, 0.8, 0.9, 1}
|
||||||
MCM.AddSetting(
|
MCM.AddSetting(
|
||||||
|
|||||||
Reference in new issue
Block a user