Formatted files very nicely
This commit is contained in:
1 parent
8c6564e69f
commit
fedec6ac37
5 files changed
+348
-157
No files matched your search
+58
-18
@@ -23,28 +23,26 @@ end
|
||||
__eidItemDescriptions[item] = "Most Fitting Description";
|
||||
|
||||
--]]
|
||||
|
||||
-- Init variables for other mods to hand over Descriptions if they were not yet inited by another mod.
|
||||
if not __eidItemDescriptions then
|
||||
__eidItemDescriptions = {};
|
||||
__eidItemDescriptions = {}
|
||||
end
|
||||
if not __eidTrinketDescriptions then
|
||||
__eidTrinketDescriptions = {};
|
||||
__eidTrinketDescriptions = {}
|
||||
end
|
||||
if not __eidCardDescriptions then
|
||||
__eidCardDescriptions = {};
|
||||
__eidCardDescriptions = {}
|
||||
end
|
||||
if not __eidPillDescriptions then
|
||||
__eidPillDescriptions = {};
|
||||
__eidPillDescriptions = {}
|
||||
end
|
||||
if not __eidItemTransformations then
|
||||
__eidItemTransformations = {};
|
||||
__eidItemTransformations = {}
|
||||
end
|
||||
if not __eidEntityDescriptions then
|
||||
__eidEntityDescriptions = {};
|
||||
__eidEntityDescriptions = {}
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
-------------------------Handle Custom Enum -----------------------------
|
||||
|
||||
@@ -65,7 +63,7 @@ EID.TRANSFORMATION = {
|
||||
["BOOKWORM"] = 12,
|
||||
["ADULT"] = 14,
|
||||
["SPIDERBABY"] = 13,
|
||||
["SUPERBUM"] = 11,
|
||||
["SUPERBUM"] = 11
|
||||
}
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
@@ -92,7 +90,7 @@ end
|
||||
|
||||
--Get the name of the given transformation by its ID
|
||||
function EID:getTransformation(id)
|
||||
local str="Custom";
|
||||
local str = "Custom"
|
||||
if (tonumber(id) <= #transformations - 1) then
|
||||
return transformations[tonumber(id) + 1]
|
||||
end
|
||||
@@ -103,7 +101,9 @@ end
|
||||
function EID:hasDescription(entity)
|
||||
local isAllowed = false
|
||||
if EIDConfig["EnableEntityDescriptions"] then
|
||||
isAllowed = isAllowed or (__eidEntityDescriptions[entity.Type.."."..entity.Variant.."."..entity.SubType]~=nil --[[or type(entity:GetData()["EID_Description"]) ~= type(nil)]])
|
||||
isAllowed =
|
||||
isAllowed or
|
||||
(__eidEntityDescriptions[entity.Type .. "." .. entity.Variant .. "." .. entity.SubType] ~= nil) --[[or type(entity:GetData()["EID_Description"]) ~= type(nil)]]
|
||||
end
|
||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EIDConfig["DisplayItemInfo"])
|
||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EIDConfig["DisplayTrinketInfo"])
|
||||
@@ -134,32 +134,72 @@ function EID:getBulletpointIcon(text)
|
||||
return v
|
||||
end
|
||||
end
|
||||
return '\007'
|
||||
return "\007"
|
||||
end
|
||||
|
||||
--needs to be called in a render Callback
|
||||
-- args: string, Vector(int, int), Vector(float,float), KColor obj, bool
|
||||
function EID:renderString(str, position, scale, kcolor, centered)
|
||||
EID.font:DrawStringScaledUTF8(str, position.X, position.Y, scale.X ,scale.Y ,kcolor ,EID.font:GetStringWidthUTF8(str), centered)
|
||||
EID.font:DrawStringScaledUTF8(
|
||||
str,
|
||||
position.X,
|
||||
position.Y,
|
||||
scale.X,
|
||||
scale.Y,
|
||||
kcolor,
|
||||
EID.font:GetStringWidthUTF8(str),
|
||||
centered
|
||||
)
|
||||
end
|
||||
|
||||
-- Get KColor object of "Entity Name" texts
|
||||
function EID:getNameColor()
|
||||
return KColor(EIDConfig["ItemNameColor"][1] , EIDConfig["ItemNameColor"][2], EIDConfig["ItemNameColor"][3],EIDConfig["Transparency"],0,0,0)
|
||||
return KColor(
|
||||
EIDConfig["ItemNameColor"][1],
|
||||
EIDConfig["ItemNameColor"][2],
|
||||
EIDConfig["ItemNameColor"][3],
|
||||
EIDConfig["Transparency"],
|
||||
0,
|
||||
0,
|
||||
0
|
||||
)
|
||||
end
|
||||
|
||||
-- Get KColor object of "Description" texts
|
||||
function EID:getTextColor()
|
||||
return KColor(EIDConfig["TextColor"][1] , EIDConfig["TextColor"][2], EIDConfig["TextColor"][3],EIDConfig["Transparency"],0,0,0)
|
||||
return KColor(
|
||||
EIDConfig["TextColor"][1],
|
||||
EIDConfig["TextColor"][2],
|
||||
EIDConfig["TextColor"][3],
|
||||
EIDConfig["Transparency"],
|
||||
0,
|
||||
0,
|
||||
0
|
||||
)
|
||||
end
|
||||
|
||||
-- Get KColor object of "Transformation" texts
|
||||
function EID:getTransformationColor()
|
||||
return KColor(EIDConfig["TransformationColor"][1] , EIDConfig["TransformationColor"][2], EIDConfig["TransformationColor"][3],EIDConfig["Transparency"],0,0,0)
|
||||
return KColor(
|
||||
EIDConfig["TransformationColor"][1],
|
||||
EIDConfig["TransformationColor"][2],
|
||||
EIDConfig["TransformationColor"][3],
|
||||
EIDConfig["Transparency"],
|
||||
0,
|
||||
0,
|
||||
0
|
||||
)
|
||||
end
|
||||
|
||||
-- Get KColor object of "Error" texts
|
||||
function EID:getErrorColor()
|
||||
return KColor(EIDConfig["ErrorColor"][1] , EIDConfig["ErrorColor"][2], EIDConfig["ErrorColor"][3],EIDConfig["Transparency"],0,0,0)
|
||||
return KColor(
|
||||
EIDConfig["ErrorColor"][1],
|
||||
EIDConfig["ErrorColor"][2],
|
||||
EIDConfig["ErrorColor"][3],
|
||||
EIDConfig["Transparency"],
|
||||
0,
|
||||
0,
|
||||
0
|
||||
)
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
EIDConfig = {
|
||||
|
||||
-------GENERAL---------
|
||||
|
||||
-- Change language of the mod.
|
||||
@@ -13,7 +12,6 @@ EIDConfig={
|
||||
-- Russian (https://steamcommunity.com/sharedfiles/filedetails/?id=1552851879)
|
||||
-- If you want to make a translation, please contact me :)
|
||||
["Language"] = "en_us",
|
||||
|
||||
-- Change Width of the info boxes. (In characters)
|
||||
-- Default = 25
|
||||
["TextboxWidth"] = 25,
|
||||
@@ -37,18 +35,15 @@ EIDConfig={
|
||||
-- Arrow = moving arrow pointing at the item | Blink = the whole sprite blinks white | Border = Blinking white border around the sprite | Highlight = White border around the sprite | None = Disable funtion
|
||||
-- Default = "none"
|
||||
["Indicator"] = "none",
|
||||
|
||||
-- Set the keybinding to toggle the descriptions
|
||||
-- look into the AB+ documentation for the key names
|
||||
-- Default = Keyboard.KEY_F2
|
||||
["HideKey"] = Keyboard.KEY_F2,
|
||||
|
||||
-------------CURSE-------------
|
||||
|
||||
-- Display informations when the floor has curse of the blind ( ? - Items)
|
||||
-- Default = true
|
||||
["DisableOnCurse"] = true,
|
||||
|
||||
----------ITEM NAMES-----------
|
||||
|
||||
-- Toggle Display of Collectible / Card and Pill names
|
||||
@@ -66,7 +61,6 @@ EIDConfig={
|
||||
-- Set the RGB color of the Itemname text
|
||||
-- Default = {0.8, 0.3, 0.8}
|
||||
["ItemNameColor"] = {0.8, 0.3, 0.8},
|
||||
|
||||
-------TRANSFORMATIONS---------
|
||||
|
||||
-- Toggle Display of Transformation text
|
||||
@@ -78,7 +72,6 @@ EIDConfig={
|
||||
-- Set the RGB color of the Transformation text
|
||||
-- Default = { 0.5, 0.5, 1}
|
||||
["TransformationColor"] = {0.5, 0.5, 1},
|
||||
|
||||
------------CARDS--------------
|
||||
|
||||
-- Toggle Display of Card / Rune descriptions
|
||||
@@ -87,7 +80,6 @@ EIDConfig={
|
||||
-- Toggle Display of Card / Rune descriptions when its a shop item
|
||||
-- Default = false
|
||||
["DisplayCardInfoShop"] = false,
|
||||
|
||||
------------PILLS--------------
|
||||
|
||||
-- Toggle Display of Pill descriptions
|
||||
@@ -99,22 +91,16 @@ EIDConfig={
|
||||
-- Toggle Display of Pill descriptions that arent known to you yet
|
||||
-- Default = false
|
||||
["ShowUnidentifiedPillDescriptions"] = false,
|
||||
|
||||
|
||||
--------Sacrifice Room---------
|
||||
|
||||
-- Toggle Display of next Sacrifice room Payout descriptions
|
||||
-- Default = true
|
||||
["DisplaySacrificeInfo"] = true,
|
||||
|
||||
|
||||
--------Dice Room---------
|
||||
|
||||
-- Toggle Display of Diceroom descriptions
|
||||
-- Default = true
|
||||
["DisplayDiceInfo"] = true,
|
||||
|
||||
|
||||
-------------MISC---------------
|
||||
|
||||
-- Error message displayed when an error occurs
|
||||
@@ -129,7 +115,6 @@ EIDConfig={
|
||||
-- Enables or disables custom Descriptions for entities
|
||||
-- Default = true
|
||||
["EnableEntityDescriptions"] = true
|
||||
|
||||
}
|
||||
|
||||
--END CONFIG--
|
||||
|
||||
+4
-2
@@ -9,8 +9,10 @@ EID:replaceMarkupStrings("!!! EID DEBUG MODE ACTIVATED !!!"), -- Header
|
||||
"cyrillic 2: Пп Рр Сс Тт Уу Фф Хх Цц Чч Шш Щщ Ъъ Ыы Ьь Ээ Юю Яя",
|
||||
"polish: Ąą Ćć Ęę Łł Ńń Óó Śś Źź Żż",
|
||||
"custom icons: ↑Positive ↓Negative \007bulletpoint !Exclamation ǃWarning !!!shortcut",
|
||||
EID:replaceMarkupStrings("legacy icon Markup: \\1:\1Positive \\2:\2Negative \\3:\3Warning ! \\6:\6 heart \\5:\5 Key \\015:\015 Coin \\8\\189:\8\189 Bomb"),
|
||||
"emotes: ☆★〠♠♣♥♦♤♧♡♢☀☂♨♪♭♯♂♀",
|
||||
EID:replaceMarkupStrings(
|
||||
"legacy icon Markup: \\1:\1Positive \\2:\2Negative \\3:\3Warning ! \\6:\6 heart \\5:\5 Key \\015:\015 Coin \\8\\189:\8\189 Bomb"
|
||||
),
|
||||
"emotes: ☆★〠♠♣♥♦♤♧♡♢☀☂♨♪♭♯♂♀"
|
||||
}
|
||||
|
||||
local function onDebugRender(t)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
EID = RegisterMod( "External Item Descriptions" ,1 );
|
||||
EID = RegisterMod("External Item Descriptions", 1)
|
||||
local itemConfig = Isaac.GetItemConfig()
|
||||
|
||||
local lineHeight = 11
|
||||
@@ -31,7 +31,6 @@ local modPath = string.sub(err, modPathStart+1, modPathEnd-1)
|
||||
modPath = string.gsub(modPath, "\\", "/")
|
||||
modPath = string.gsub(modPath, ":/", ":\\")
|
||||
|
||||
|
||||
EID.font = Font() -- init font object
|
||||
EID.font:Load(modPath .. "resources/font/default.fnt") -- load a font into the font object
|
||||
EID.font:SetMissingCharacter(2)
|
||||
@@ -44,11 +43,9 @@ if EIDConfig["Language"]=="en_us_detailed" and EIDConfig["Scale"] > 0.5 then
|
||||
EIDConfig["Scale"] = 0.5
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
-------------------------Handle Sacrifice Room-----------------------------
|
||||
if EIDConfig["DisplaySacrificeInfo"] then
|
||||
|
||||
function onNewFloor()
|
||||
EID.sacrificeCounter = 1
|
||||
end
|
||||
@@ -62,7 +59,6 @@ if EIDConfig["DisplaySacrificeInfo"] then
|
||||
end
|
||||
end
|
||||
EID:AddCallback(ModCallbacks.MC_ENTITY_TAKE_DMG, onDamage, EntityType.ENTITY_PLAYER)
|
||||
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
@@ -87,11 +83,19 @@ function printDescription(desc)
|
||||
IconSprite:Play(itemTypes[itemType])
|
||||
IconSprite.Scale = Vector(EIDConfig["Scale"], EIDConfig["Scale"])
|
||||
IconSprite:Update()
|
||||
IconSprite:Render(Vector(EIDConfig["XPosition"]-3*EIDConfig["Scale"],padding+offsetY), Vector(0,0), Vector(0,0))
|
||||
IconSprite:Render(
|
||||
Vector(EIDConfig["XPosition"] - 3 * EIDConfig["Scale"], padding + offsetY),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
if itemType == 3 then -- Display Charge
|
||||
IconSprite:Play(itemConfig:GetCollectible(desc[1]).MaxCharges)
|
||||
IconSprite:Update()
|
||||
IconSprite:Render(Vector(EIDConfig["XPosition"]-3*EIDConfig["Scale"],padding+offsetY), Vector(0,0), Vector(0,0))
|
||||
IconSprite:Render(
|
||||
Vector(EIDConfig["XPosition"] - 3 * EIDConfig["Scale"], padding + offsetY),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
end
|
||||
if not EIDConfig["ShowItemName"] then
|
||||
padding = padding + lineHeight * EIDConfig["Scale"]
|
||||
@@ -100,13 +104,24 @@ function printDescription(desc)
|
||||
--Display Itemname
|
||||
if EIDConfig["ShowItemName"] then
|
||||
local offset = 0
|
||||
if EIDConfig["ShowItemType"]then if itemType==3 then offset = 9 else offset = 6 end end
|
||||
EID:renderString(itemConfig:GetCollectible(desc[1]).Name, Vector(EIDConfig["XPosition"]+offset*EIDConfig["Scale"], padding-4), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), EID:getNameColor(), false)
|
||||
if EIDConfig["ShowItemType"] then
|
||||
if itemType == 3 then
|
||||
offset = 9
|
||||
else
|
||||
offset = 6
|
||||
end
|
||||
end
|
||||
EID:renderString(
|
||||
itemConfig:GetCollectible(desc[1]).Name,
|
||||
Vector(EIDConfig["XPosition"] + offset * EIDConfig["Scale"], padding - 4),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
EID:getNameColor(),
|
||||
false
|
||||
)
|
||||
|
||||
padding = padding + lineHeight * EIDConfig["Scale"]
|
||||
end
|
||||
|
||||
|
||||
--Display Transformation
|
||||
if not (desc[2] == "0" or desc[2] == "" or desc[2] == nil) then
|
||||
if EIDConfig["TransformationText"] then
|
||||
@@ -118,13 +133,23 @@ function printDescription(desc)
|
||||
else
|
||||
transformationText = EID:getTransformation(desc[2])
|
||||
end
|
||||
EID:renderString(transformationText, Vector(EIDConfig["XPosition"]+16*EIDConfig["Scale"], padding-1), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), EID:getTransformationColor(), false)
|
||||
EID:renderString(
|
||||
transformationText,
|
||||
Vector(EIDConfig["XPosition"] + 16 * EIDConfig["Scale"], padding - 1),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
EID:getTransformationColor(),
|
||||
false
|
||||
)
|
||||
end
|
||||
if EIDConfig["TransformationIcons"] and not (EID:getTransformation(desc[2]) == "Custom") then
|
||||
IconSprite:Play("Transformation" .. desc[2])
|
||||
IconSprite.Scale = Vector(EIDConfig["Scale"], EIDConfig["Scale"])
|
||||
IconSprite:Update()
|
||||
IconSprite:Render(Vector(EIDConfig["XPosition"]+5*EIDConfig["Scale"],padding+5*EIDConfig["Scale"]), Vector(0,0), Vector(0,0))
|
||||
IconSprite:Render(
|
||||
Vector(EIDConfig["XPosition"] + 5 * EIDConfig["Scale"], padding + 5 * EIDConfig["Scale"]),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
end
|
||||
if (EIDConfig["TransformationIcons"] or EIDConfig["TransformationText"]) then
|
||||
padding = padding + lineHeight * EIDConfig["Scale"]
|
||||
@@ -153,7 +178,13 @@ function printTrinketDescription(desc,typ)
|
||||
name = desc[2][1]
|
||||
Description = desc[2][2]
|
||||
end
|
||||
EID:renderString(name, Vector(EIDConfig["XPosition"],padding), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), EID:getNameColor(), false)
|
||||
EID:renderString(
|
||||
name,
|
||||
Vector(EIDConfig["XPosition"], padding),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
EID:getNameColor(),
|
||||
false
|
||||
)
|
||||
|
||||
padding = padding + lineHeight * EIDConfig["Scale"]
|
||||
end
|
||||
@@ -162,10 +193,10 @@ end
|
||||
|
||||
function printBulletPoints(description, padding)
|
||||
local textboxWidth = tonumber(EIDConfig["TextboxWidth"])
|
||||
for line in string.gmatch(description, '([^#]+)') do
|
||||
for line in string.gmatch(description, "([^#]+)") do
|
||||
local array = {}
|
||||
local text = ""
|
||||
for word in string.gmatch(line, '([^ ]+)') do
|
||||
for word in string.gmatch(line, "([^ ]+)") do
|
||||
if string.len(text) + string.len(word) <= textboxWidth then
|
||||
text = text .. " " .. word
|
||||
else
|
||||
@@ -180,18 +211,23 @@ function printBulletPoints(description, padding)
|
||||
local bpIcon = " " -- no bulletpoint
|
||||
if i == 1 then
|
||||
bpIcon = EID:getBulletpointIcon(v)
|
||||
if string.find(bpIcon,'\007') == nil then
|
||||
if string.find(bpIcon, "\007") == nil then
|
||||
v = string.sub(v, 3 + #bpIcon)
|
||||
posX = posX - 2 -- Move a bit to the left, to center icons
|
||||
end
|
||||
end
|
||||
EID:renderString(bpIcon..EID:replaceMarkupStrings(v), Vector(posX, padding), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), textColor, false)
|
||||
EID:renderString(
|
||||
bpIcon .. EID:replaceMarkupStrings(v),
|
||||
Vector(posX, padding),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
textColor,
|
||||
false
|
||||
)
|
||||
padding = padding + lineHeight * EIDConfig["Scale"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
---------------------------Handle Rendering--------------------------------
|
||||
function HasCurseBlind()
|
||||
@@ -210,8 +246,14 @@ function renderQuestionMark()
|
||||
IconSprite:Play("CurseOfBlind")
|
||||
IconSprite.Scale = Vector(EIDConfig["Scale"], EIDConfig["Scale"])
|
||||
IconSprite:Update()
|
||||
IconSprite:Render(Vector(EIDConfig["XPosition"]+5*EIDConfig["Scale"],posY()+5*EIDConfig["Scale"]), Vector(0,0), Vector(0,0))
|
||||
if Isaac.GetPlayer(0):HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then modifiedPosY =EIDConfig["YPosition"] -30 end
|
||||
IconSprite:Render(
|
||||
Vector(EIDConfig["XPosition"] + 5 * EIDConfig["Scale"], posY() + 5 * EIDConfig["Scale"]),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
if Isaac.GetPlayer(0):HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||
modifiedPosY = EIDConfig["YPosition"] - 30
|
||||
end
|
||||
end
|
||||
|
||||
function renderIndicator(entity)
|
||||
@@ -220,7 +262,6 @@ function renderIndicator(entity)
|
||||
entity:SetColor(Color(1, 1, 1, 1, c, c, c), 1, 1, false, false)
|
||||
entity:Render(Vector(0, 0))
|
||||
entity:SetColor(Color(1, 1, 1, 1, 0, 0, 0), 2, 1, false, false)
|
||||
|
||||
elseif EIDConfig["Indicator"] == "border" then
|
||||
local c = 255 - math.floor(255 * ((entity.FrameCount % 40) / 40))
|
||||
entity:SetColor(Color(1, 1, 1, 1, c, c, c), 1, 1, false, false)
|
||||
@@ -230,7 +271,6 @@ function renderIndicator(entity)
|
||||
entity:Render(Vector(-1, 0))
|
||||
entity:SetColor(Color(1, 1, 1, 1, 0, 0, 0), 2, 1, false, false)
|
||||
entity:Render(Vector(0, 0))
|
||||
|
||||
elseif EIDConfig["Indicator"] == "highlight" then
|
||||
entity:SetColor(Color(1, 1, 1, 1, 255, 255, 255), 1, 1, false, false)
|
||||
entity:Render(Vector(0, 1))
|
||||
@@ -239,16 +279,16 @@ function renderIndicator(entity)
|
||||
entity:Render(Vector(-1, 0))
|
||||
entity:SetColor(Color(1, 1, 1, 1, 0, 0, 0), 2, 1, false, false)
|
||||
entity:Render(Vector(0, 0))
|
||||
|
||||
elseif EIDConfig["Indicator"] == "arrow" then
|
||||
ArrowSprite:Update()
|
||||
local ArrowOffset = Vector(0, -35)
|
||||
if entity.Variant ==100 and not entity:ToPickup():IsShopItem() then ArrowOffset = Vector(0,-62) end
|
||||
if entity.Variant == 100 and not entity:ToPickup():IsShopItem() then
|
||||
ArrowOffset = Vector(0, -62)
|
||||
end
|
||||
ArrowSprite:Render(Game():GetRoom():WorldToScreenPosition(entity.Position + ArrowOffset), Vector(0, 0), Vector(0, 0))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
---------------------------On Render Function------------------------------
|
||||
|
||||
@@ -259,35 +299,42 @@ local function onRender(t)
|
||||
local closestDice = nil
|
||||
local dist = 10000
|
||||
if Input.IsButtonTriggered(EIDConfig["HideKey"], 0) then
|
||||
hideDescToggle = not hideDescToggle;
|
||||
hideDescToggle = not hideDescToggle
|
||||
end
|
||||
if hideDescToggle then
|
||||
return
|
||||
end
|
||||
if hideDescToggle then return end
|
||||
|
||||
for i, entity in ipairs(Isaac.GetRoomEntities()) do
|
||||
if Game():GetRoom():GetType()==RoomType.ROOM_DICE and entity.Type==1000 and entity.Variant== 76 then closestDice= entity end
|
||||
if Game():GetRoom():GetType() == RoomType.ROOM_DICE and entity.Type == 1000 and entity.Variant == 76 then
|
||||
closestDice = entity
|
||||
end
|
||||
|
||||
if EID:hasDescription(entity) then
|
||||
local diff = entity.Position:__sub(player.Position);
|
||||
local diff = entity.Position:__sub(player.Position)
|
||||
if diff:Length() < dist then
|
||||
closest = entity;
|
||||
dist = diff:Length();
|
||||
closest = entity
|
||||
dist = diff:Length()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if dist / 40 > tonumber(EIDConfig["MaxDistance"]) or not closest.Type == EntityType.ENTITY_PICKUP then
|
||||
if Game():GetRoom():GetType() == RoomType.ROOM_SACRIFICE and EIDConfig["DisplaySacrificeInfo"] then
|
||||
printTrinketDescription(sacrificeDescriptions[EID.sacrificeCounter], "sacrifice")
|
||||
end
|
||||
if Game():GetRoom():GetType()==RoomType.ROOM_DICE and EIDConfig["DisplayDiceInfo"] and type(closestDice) ~= type(nil) then
|
||||
if
|
||||
Game():GetRoom():GetType() == RoomType.ROOM_DICE and EIDConfig["DisplayDiceInfo"] and type(closestDice) ~= type(nil)
|
||||
then
|
||||
printTrinketDescription(diceDescriptions[closestDice.SubType + 1], "dice")
|
||||
renderIndicator(closestDice)
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
if closest==nil then return end
|
||||
if closest == nil then
|
||||
return
|
||||
end
|
||||
lastDescriptionEntity = closest
|
||||
isDisplayingText = true
|
||||
|
||||
@@ -301,24 +348,39 @@ local function onRender(t)
|
||||
end
|
||||
|
||||
--Handle Entities (omni)
|
||||
if EIDConfig["EnableEntityDescriptions"] and __eidEntityDescriptions[closest.Type.."."..closest.Variant.."."..closest.SubType] ~=nil then
|
||||
printTrinketDescription({closest.Type,EID:getModDescription(__eidEntityDescriptions,closest.Type.."."..closest.Variant.."."..closest.SubType)},"custom")
|
||||
if
|
||||
EIDConfig["EnableEntityDescriptions"] and
|
||||
__eidEntityDescriptions[closest.Type .. "." .. closest.Variant .. "." .. closest.SubType] ~= nil
|
||||
then
|
||||
printTrinketDescription(
|
||||
{
|
||||
closest.Type,
|
||||
EID:getModDescription(__eidEntityDescriptions, closest.Type .. "." .. closest.Variant .. "." .. closest.SubType)
|
||||
},
|
||||
"custom"
|
||||
)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
--Handle Trinkets
|
||||
if closest.Variant == PickupVariant.PICKUP_TRINKET then
|
||||
--Handle Collectibles
|
||||
if closest.SubType <= 128 then
|
||||
printTrinketDescription(trinketdescriptions[closest.SubType], "trinket")
|
||||
elseif EID:getModDescription(__eidTrinketDescriptions, closest.SubType) then
|
||||
printTrinketDescription({closest.SubType,EID:getModDescription(__eidTrinketDescriptions,closest.SubType)},"trinket")
|
||||
printTrinketDescription(
|
||||
{closest.SubType, EID:getModDescription(__eidTrinketDescriptions, closest.SubType)},
|
||||
"trinket"
|
||||
)
|
||||
else
|
||||
printTrinketDescription({closest.SubType, itemConfig:GetTrinket(closest.SubType).Description})
|
||||
end
|
||||
--Handle Collectibles
|
||||
elseif closest.Variant == PickupVariant.PICKUP_COLLECTIBLE then
|
||||
if HasCurseBlind() and EIDConfig["DisableOnCurse"] then renderQuestionMark() return end
|
||||
--Handle Cards & Runes
|
||||
if HasCurseBlind() and EIDConfig["DisableOnCurse"] then
|
||||
renderQuestionMark()
|
||||
return
|
||||
end
|
||||
if EID:getModDescription(__eidItemDescriptions, closest.SubType) then
|
||||
local tranformation = "0"
|
||||
if EID:getModDescription(__eidItemTransformations, closest.SubType) then
|
||||
@@ -327,16 +389,25 @@ local function onRender(t)
|
||||
printDescription({closest.SubType, tranformation, EID:getModDescription(__eidItemDescriptions, closest.SubType)})
|
||||
elseif closest.SubType <= 552 then
|
||||
if EID:getModDescription(__eidItemTransformations, closest.SubType) then
|
||||
printDescription({closest.SubType,EID:getModDescription(__eidItemTransformations,closest.SubType),descriptarray[closest.SubType][3]})
|
||||
printDescription(
|
||||
{
|
||||
closest.SubType,
|
||||
EID:getModDescription(__eidItemTransformations, closest.SubType),
|
||||
descriptarray[closest.SubType][3]
|
||||
}
|
||||
)
|
||||
else
|
||||
printDescription(descriptarray[closest.SubType])
|
||||
end
|
||||
else
|
||||
printDescription({closest.SubType, "", itemConfig:GetCollectible(closest.SubType).Description})
|
||||
end
|
||||
--Handle Cards & Runes
|
||||
elseif closest.Variant == PickupVariant.PICKUP_TAROTCARD then
|
||||
if closest:ToPickup():IsShopItem() and not EIDConfig["DisplayCardInfoShop"] then renderQuestionMark() return end
|
||||
--Handle Pills
|
||||
if closest:ToPickup():IsShopItem() and not EIDConfig["DisplayCardInfoShop"] then
|
||||
renderQuestionMark()
|
||||
return
|
||||
end
|
||||
if EID:getModDescription(__eidCardDescriptions, closest.SubType) then
|
||||
printTrinketDescription({closest.SubType, EID:getModDescription(__eidCardDescriptions, closest.SubType)}, "card")
|
||||
elseif closest.SubType <= 54 then
|
||||
@@ -345,14 +416,22 @@ local function onRender(t)
|
||||
CardSprite.Scale = Vector(EIDConfig["Scale"], EIDConfig["Scale"])
|
||||
CardSprite:Update()
|
||||
local offsetX = 0
|
||||
if EIDConfig["ShowItemName"] then offsetX = 10 end
|
||||
CardSprite:Render(Vector(EIDConfig["XPosition"]-9*EIDConfig["Scale"],posY()+(12+offsetX)*EIDConfig["Scale"]), Vector(0,0), Vector(0,0))
|
||||
if EIDConfig["ShowItemName"] then
|
||||
offsetX = 10
|
||||
end
|
||||
CardSprite:Render(
|
||||
Vector(EIDConfig["XPosition"] - 9 * EIDConfig["Scale"], posY() + (12 + offsetX) * EIDConfig["Scale"]),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
else
|
||||
printTrinketDescription({closest.SubType, itemConfig:GetCard(closest.SubType).Description})
|
||||
end
|
||||
--Handle Pills
|
||||
elseif closest.Variant == PickupVariant.PICKUP_PILL then
|
||||
if closest:ToPickup():IsShopItem() and not EIDConfig["DisplayPillInfoShop"] then renderQuestionMark() return end
|
||||
if closest:ToPickup():IsShopItem() and not EIDConfig["DisplayPillInfoShop"] then
|
||||
renderQuestionMark()
|
||||
return
|
||||
end
|
||||
|
||||
local pillColor = closest.SubType
|
||||
local pool = Game():GetItemPool()
|
||||
@@ -364,27 +443,44 @@ local function onRender(t)
|
||||
elseif pillEffect < 47 then
|
||||
printTrinketDescription(pillDescriptions[pillEffect + 1], "pill")
|
||||
else
|
||||
EID:renderString(EIDConfig["ErrorMessage"], Vector(EIDConfig["XPosition"], posY()), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), EID:getErrorColor(), false)
|
||||
EID:renderString(
|
||||
EIDConfig["ErrorMessage"],
|
||||
Vector(EIDConfig["XPosition"], posY()),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
EID:getErrorColor(),
|
||||
false
|
||||
)
|
||||
end
|
||||
else
|
||||
EID:renderString(unidentifiedPillMessage, Vector(EIDConfig["XPosition"], posY()), Vector(EIDConfig["Scale"],EIDConfig["Scale"]), EID:getErrorColor(), false)
|
||||
EID:renderString(
|
||||
unidentifiedPillMessage,
|
||||
Vector(EIDConfig["XPosition"], posY()),
|
||||
Vector(EIDConfig["Scale"], EIDConfig["Scale"]),
|
||||
EID:getErrorColor(),
|
||||
false
|
||||
)
|
||||
end
|
||||
local pillsprite = closest:GetSprite()
|
||||
pillsprite.Scale = Vector(EIDConfig["Scale"] * 0.75, EIDConfig["Scale"] * 0.75)
|
||||
pillsprite:Update()
|
||||
local offsetX = 0
|
||||
if EIDConfig["ShowItemName"] and (identified or EIDConfig["ShowUnidentifiedPillDescriptions"]) then offsetX = 10 end
|
||||
pillsprite:Render(Vector(EIDConfig["XPosition"]+2*EIDConfig["Scale"],posY()+(11+offsetX)*EIDConfig["Scale"]), Vector(0,0), Vector(0,0))
|
||||
if EIDConfig["ShowItemName"] and (identified or EIDConfig["ShowUnidentifiedPillDescriptions"]) then
|
||||
offsetX = 10
|
||||
end
|
||||
pillsprite:Render(
|
||||
Vector(EIDConfig["XPosition"] + 2 * EIDConfig["Scale"], posY() + (11 + offsetX) * EIDConfig["Scale"]),
|
||||
Vector(0, 0),
|
||||
Vector(0, 0)
|
||||
)
|
||||
pillsprite.Scale = Vector(1, 1)
|
||||
end
|
||||
if player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then modifiedPosY =EIDConfig["YPosition"] +30 end
|
||||
if player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
|
||||
modifiedPosY = EIDConfig["YPosition"] + 30
|
||||
end
|
||||
end
|
||||
|
||||
EID:AddCallback(ModCallbacks.MC_POST_RENDER, onRender)
|
||||
|
||||
|
||||
|
||||
|
||||
if ModConfigMenu then
|
||||
local json = require("json")
|
||||
--------------------------------
|
||||
@@ -398,7 +494,9 @@ local json = require("json")
|
||||
savedEIDConfig["Language"] = EIDConfig["Language"]
|
||||
-- Only copy Saved config entries that exist in the save
|
||||
for key, value in pairs(EIDConfig) do
|
||||
if savedEIDConfig[key]~=nil then EIDConfig[key]=savedEIDConfig[key] end
|
||||
if savedEIDConfig[key] ~= nil then
|
||||
EIDConfig[key] = savedEIDConfig[key]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
+132
-66
@@ -1,18 +1,21 @@
|
||||
if ModConfigMenu then
|
||||
|
||||
function AnIndexOf(t, val)
|
||||
for k, v in ipairs(t) do
|
||||
if v == val then return k end
|
||||
if v == val then
|
||||
return k
|
||||
end
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
||||
|
||||
ModConfigMenu.AddText("EID", "General", "Change Language in the Config file.")
|
||||
ModConfigMenu.AddSpace("EID", "General")
|
||||
|
||||
-- Disable on Curse
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisableOnCurse"]
|
||||
@@ -22,15 +25,19 @@ if ModConfigMenu then
|
||||
if EIDConfig["DisableOnCurse"] then
|
||||
onOff = "False"
|
||||
end
|
||||
return "Show on \"Curse of Blind\": " .. onOff
|
||||
return 'Show on "Curse of Blind": ' .. onOff
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisableOnCurse"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
--indicator
|
||||
local indicators = {"arrow", "blink", "border", "highlight", "none"}
|
||||
ModConfigMenu.AddSetting("EID", "General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.NUMBER,
|
||||
CurrentSetting = function()
|
||||
return AnIndexOf(indicators, EIDConfig["Indicator"])
|
||||
@@ -42,12 +49,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentNum)
|
||||
EIDConfig["Indicator"] = indicators[currentNum]
|
||||
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
--------ShowUnidentifiedPillDescriptions---------
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["ShowUnidentifiedPillDescriptions"]
|
||||
@@ -61,10 +71,14 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["ShowUnidentifiedPillDescriptions"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
--------Sacrifice Room---------
|
||||
ModConfigMenu.AddSetting("EID","Rooms", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Rooms",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplaySacrificeInfo"]
|
||||
@@ -78,11 +92,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplaySacrificeInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
--------Dice Room---------
|
||||
ModConfigMenu.AddSetting("EID","Rooms", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Rooms",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayDiceInfo"]
|
||||
@@ -96,13 +114,16 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayDiceInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
------------Collectibles--------------
|
||||
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayItemInfo"]
|
||||
@@ -116,11 +137,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayItemInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
------------Trinkets--------------
|
||||
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayTrinketInfo"]
|
||||
@@ -134,11 +159,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayTrinketInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
------------CARDS--------------
|
||||
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayCardInfo"]
|
||||
@@ -152,11 +181,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayCardInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
------------PILLS--------------
|
||||
ModConfigMenu.AddSetting("EID","General", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"General",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayPillInfo"]
|
||||
@@ -170,16 +203,18 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayPillInfo"] = currentBool
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
ModConfigMenu.AddSpace("EID", "Rooms")
|
||||
ModConfigMenu.AddText("EID", "Rooms", "Display Infos in Shops")
|
||||
------------CARDS--------------
|
||||
|
||||
ModConfigMenu.AddSetting("EID","Rooms", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Rooms",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayCardInfoShop"]
|
||||
@@ -193,11 +228,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayCardInfoShop"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
------------PILLS--------------
|
||||
ModConfigMenu.AddSetting("EID","Rooms", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Rooms",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["DisplayPillInfoShop"]
|
||||
@@ -211,14 +250,16 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["DisplayPillInfoShop"] = currentBool
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
end
|
||||
}
|
||||
)
|
||||
|
||||
-- SCALE
|
||||
local textScales = {0.5, 0.75, 1, 1.25, 1.5, 2}
|
||||
ModConfigMenu.AddSetting("EID", "Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.NUMBER,
|
||||
CurrentSetting = function()
|
||||
return AnIndexOf(textScales, EIDConfig["Scale"])
|
||||
@@ -230,40 +271,53 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentNum)
|
||||
EIDConfig["Scale"] = textScales[currentNum]
|
||||
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
-- maxDistance
|
||||
local distances = {1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9, 10}
|
||||
ModConfigMenu.AddSetting("EID", "Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.SCROLL,
|
||||
CurrentSetting = function()
|
||||
return AnIndexOf(distances, EIDConfig["MaxDistance"]) - 1
|
||||
end,
|
||||
Display = function()
|
||||
return "Display Distance: $scroll" .. AnIndexOf(distances,EIDConfig["MaxDistance"])-1 .." "..EIDConfig["MaxDistance"].." Grids"
|
||||
return "Display Distance: $scroll" ..
|
||||
AnIndexOf(distances, EIDConfig["MaxDistance"]) - 1 .. " " .. EIDConfig["MaxDistance"] .. " Grids"
|
||||
end,
|
||||
OnChange = function(currentNum)
|
||||
EIDConfig["MaxDistance"] = distances[currentNum + 1]
|
||||
end
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
-- Transparency
|
||||
local transparencies = {0.1, 0.175, 0.25, 0.3, 0.4, 0.5, 0.6, 0.75, 0.8, 0.9, 1}
|
||||
ModConfigMenu.AddSetting("EID", "Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.SCROLL,
|
||||
CurrentSetting = function()
|
||||
return AnIndexOf(transparencies, EIDConfig["Transparency"]) - 1
|
||||
end,
|
||||
Display = function()
|
||||
return "Transparency: $scroll" .. AnIndexOf(transparencies,EIDConfig["Transparency"])-1 .." "..EIDConfig["Transparency"]
|
||||
return "Transparency: $scroll" ..
|
||||
AnIndexOf(transparencies, EIDConfig["Transparency"]) - 1 .. " " .. EIDConfig["Transparency"]
|
||||
end,
|
||||
OnChange = function(currentNum)
|
||||
EIDConfig["Transparency"] = transparencies[currentNum + 1]
|
||||
end
|
||||
})
|
||||
}
|
||||
)
|
||||
--------ShowItemName---------
|
||||
ModConfigMenu.AddSetting("EID","Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["ShowItemName"]
|
||||
@@ -277,10 +331,14 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["ShowItemName"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
--------ShowItemType---------
|
||||
ModConfigMenu.AddSetting("EID","Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["ShowItemType"]
|
||||
@@ -294,11 +352,15 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["ShowItemType"] = currentBool
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
)
|
||||
-------TRANSFORMATIONS---------
|
||||
|
||||
ModConfigMenu.AddSetting("EID","Display", {
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["TransformationText"]
|
||||
@@ -312,9 +374,13 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["TransformationText"] = currentBool
|
||||
end,
|
||||
})
|
||||
ModConfigMenu.AddSetting("EID","Display", {
|
||||
end
|
||||
}
|
||||
)
|
||||
ModConfigMenu.AddSetting(
|
||||
"EID",
|
||||
"Display",
|
||||
{
|
||||
Type = ModConfigMenuOptionType.BOOLEAN,
|
||||
CurrentSetting = function()
|
||||
return EIDConfig["TransformationIcons"]
|
||||
@@ -328,7 +394,7 @@ if ModConfigMenu then
|
||||
end,
|
||||
OnChange = function(currentBool)
|
||||
EIDConfig["TransformationIcons"] = currentBool
|
||||
end,
|
||||
})
|
||||
|
||||
end
|
||||
}
|
||||
)
|
||||
end
|
||||
Reference in new issue
Block a user