Skip to content

Commit

Permalink
Added a mod name & icon to the MCM demo description
Browse files Browse the repository at this point in the history
  • Loading branch information
wofsauge committed Aug 30, 2024
1 parent c66de27 commit 16f2c53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/eid_mcm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ EID.MCMLoaded = MCMLoaded
local colorNameArray = {}
EID.MCM_OptionChanged = false

-- Add MCM demo description
EID.ModIndicator["~~EID-MCM-DEMO~~"] = {Name = "My Demo Mod", Icon = "Delirium"}

local function renderDummyDesc(reload)
if reload then
MCMCompat_oldPermanentObj = nil
Expand All @@ -35,6 +38,7 @@ local function renderDummyDesc(reload)
demoDescObj.Name = EID:getDescriptionEntry("MCM","DemoObjectName")
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","DemoObjectTransformation")
demoDescObj.Description = EID:getDescriptionEntry("MCM","DemoObjectText")
demoDescObj.ModName = "~~EID-MCM-DEMO~~"
EID:displayPermanentText(demoDescObj, "MCM", "DemoObjectName")
end

Expand Down

0 comments on commit 16f2c53

Please sign in to comment.