The demo object text displayed in MCM can now be translated

This commit is contained in:
Wofsauge committed 2022-01-15 17:39:26 +01:00
1 parent 0ec8a0ae60
commit 390ea68c1b
2 files changed
+13 -4

No files matched your search

+4 -4
View File
@@ -27,9 +27,9 @@ local colorNameArray = {}
local function renderDummyDesc()
MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj
local demoDescObj = EID:getDescriptionObj(5, 100, 33)
demoDescObj.Name = EID:getDescriptionEntry("MCM","demoObjectName")
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","demoObjectTransformation")
demoDescObj.Description = EID:getDescriptionEntry("MCM","demoObjectText")
demoDescObj.Name = EID:getDescriptionEntry("MCM","DemoObjectName")
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","DemoObjectTransformation")
demoDescObj.Description = EID:getDescriptionEntry("MCM","DemoObjectText")
EID:displayPermanentText(demoDescObj)
end
@@ -219,7 +219,7 @@ if MCMLoaded then
Minimum = 1,
Maximum = #(EID.Languages),
Display = function()
EID.MCMCompat_isDisplayingEIDTab = "";
EID.MCMCompat_isDisplayingEIDTab = "Visuals"
return "Language: " .. displayLanguage[AnIndexOf(EID.Languages, EID.Config["Language"])]
end,
OnChange = function(currentNum)