--[[
Script to change the mod title in the mod view

Author:		Ifko[nator]
Date:		11.05.2018
Version:	1.0

History:	V 1.0 @ 11.05.2018 - intial release

<changeModTitle modTitle="_modTitle_"/>
]]

ChangeModTitle={}ChangeModTitle.modDirectory=g_currentModDirectory;ChangeModTitle.currentModName=g_currentModName;addModEventListener(ChangeModTitle)function ChangeModTitle:loadMap(a)local b=loadXMLFile("modDesc",ChangeModTitle.modDirectory.."modDesc.xml")local c="Modding-Welt Mod"if g_i18n:hasText(c)then c=g_i18n:getText(c)end;if StoreItemsUtil~=nil and StoreItemsUtil.storeItems~=nil then for d,e in pairs(StoreItemsUtil.storeItems)do if e~=nil and e.isMod and e.customEnvironment==ChangeModTitle.currentModName then e.isMod=false;if c~=""then e.dlcTitle=c else for d,f in pairs(ModsUtil.modList)do if f.modName==ChangeModTitle.currentModName then e.dlcTitle=f.title end end end end end end;delete(b)end;function ChangeModTitle:update(g)end;function ChangeModTitle:deleteMap()end;function ChangeModTitle:mouseEvent(h,i,j,k,l)end;function ChangeModTitle:keyEvent(m,n,o,j)end;function ChangeModTitle:draw()end