MCM : reload demo descriptions on language change
This commit is contained in:
1 parent
01d1b25eb4
commit
1fb8dede1f
1 file changed
+7
-2
+7
-2
@@ -24,8 +24,12 @@ local MCMCompat_oldPermanentObj = false
|
|||||||
EID.MCMLoaded = MCMLoaded
|
EID.MCMLoaded = MCMLoaded
|
||||||
local colorNameArray = {}
|
local colorNameArray = {}
|
||||||
|
|
||||||
local function renderDummyDesc()
|
local function renderDummyDesc(reload)
|
||||||
MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj
|
if reload then
|
||||||
|
MCMCompat_oldPermanentObj = nil
|
||||||
|
else
|
||||||
|
MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj
|
||||||
|
end
|
||||||
local demoDescObj = EID:getDescriptionObj(5, 100, 33)
|
local demoDescObj = EID:getDescriptionObj(5, 100, 33)
|
||||||
demoDescObj.Name = EID:getDescriptionEntry("MCM","DemoObjectName")
|
demoDescObj.Name = EID:getDescriptionEntry("MCM","DemoObjectName")
|
||||||
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","DemoObjectTransformation")
|
demoDescObj.Transformation = EID:getDescriptionEntry("MCM","DemoObjectTransformation")
|
||||||
@@ -228,6 +232,7 @@ if MCMLoaded then
|
|||||||
if isFixed then
|
if isFixed then
|
||||||
EID:loadFont(EID.modPath .. "resources/font/eid_"..EID.Config["FontType"]..".fnt")
|
EID:loadFont(EID.modPath .. "resources/font/eid_"..EID.Config["FontType"]..".fnt")
|
||||||
end
|
end
|
||||||
|
renderDummyDesc(true)
|
||||||
end,
|
end,
|
||||||
Info = {"Changes the language.","Languages marked with (WIP) are incomplete"}
|
Info = {"Changes the language.","Languages marked with (WIP) are incomplete"}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user