Category | Farming Simulator 2013 |
Created | 14.02.2014 08:44 |
Ludovic Fritz (mrludo40) | 14.02.2014 08:47 |
---|---|
hello, here is my new problem for "InputBindings" I give you all the problem LUA CODE function Projet:update(dt) if self:getIsActiveForInput() then if InputBinding.hasEvent(InputBinding.ADDITIONAL) then self:setAdditional(not self.Additional); end; end; end; function Projet:draw() if self.Additional then g_currentMission:addHelpButtonText(g_i18n:getText("Additional_ON"), InputBinding.ADDITIONAL); else g_currentMission:addHelpButtonText(g_i18n:getText("Additional_OFF"), InputBinding.ADDITIONAL); end; end; XML CODE modDesc <l10n> <text name="Additional_ON"> <en>lifting up</en> <de>Anheben</de> <fr>lever le relevage</fr> </text> <text name="Additional_OFF"> <en>lowering the linkage</en> <de>Absenken der Verbindungs</de> <fr>baisser le relevage</fr> </text> </l10n> <inputBindings> <input name="ADDITIONAL" category="VEHICLE" key1="KEY_lshift KEY_x" key2="" button="" device="0" mouse="" /> </inputBindings> result Load mod: MonMod Warning: Missing l10n for ADDITIONAL button in MonMod why I have this error? thank you. |
Manuel Leithner - GIANTS Software | 14.02.2014 09:49 |
---|---|
Hi, you need a third l10n element: <text name="ADDITIONAL"> <en>ToggleAdditional</en> <de>Wechseln</de> <fr>ToggleAdditional</fr> </text> this text will be displayed in the settings input screen. |
Ludovic Fritz (mrludo40) | 14.02.2014 10:06 |
---|---|
thank you it works |
Note: Log in to post. Create a new account here.