-- New Fruits Register -- Sources: public scriptDoku www.ls-mods.de/scriptDocumentation.php by GIANTS-Software local regFileLUA = g_currentModDirectory.."huds/"; -- Gülle -- print("register fill type: Guelle"); local liquidManureHudFile = regFileLUA.."liquidmanureHUD.dds"; Fillable.registerFillType("liquidManure", g_i18n:getText("liquidManure"), 0.1, true, liquidManureHudFile) -- Sonnenblumen -- print("register fruit type: Sonnenblumen"); local sunflowerHudFile = regFileLUA.."sunflowerHud.dds"; FruitUtil.registerFruitType("sunflower", g_i18n:getText("sunflower"), true, true, false, 0, 4, 6, 8, false, 0.5, 2.0, 0.05, true, sunflowerHudFile, {1, 0.6, 0, 1}); SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["maize"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["sunflower"].index); end; end end; -- Roggen -- print("register fruit type: Roggen"); local ryeHudFile = regFileLUA.."ryeHud.dds"; FruitUtil.registerFruitType("rye", g_i18n:getText("rye"), true, true, false, 0, 4, 6, 8, false, 0.3, 1.5, 0.1, true, ryeHudFile, {0.1, 0.1, 0.9, 1}); SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["wheat"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["rye"].index); end; end end; -- Roggenstroh -- local windrowHudFile = regFileLUA.."hud_fill_straw.dds"; FruitUtil.registerFruitTypeWindrow(FruitUtil.FRUITTYPE_RYE, "barley_windrow", g_i18n:getText("straw"), 0.04, 3, false, windrowHudFile); -- Hafer -- print("register fruit type: Hafer"); local oatHudFile = regFileLUA.."oatHud.dds"; FruitUtil.registerFruitType("oat", g_i18n:getText("oat"), true, true, false, 0, 4, 6, 8, false, 0.25, 1.2, 0.05, true, oatHudFile, {0.5, 0.5, 0, 1}); SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["wheat"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["oat"].index); end; end end; -- Haferstroh -- local windrowHudFile = regFileLUA.."hud_fill_straw.dds"; FruitUtil.registerFruitTypeWindrow(FruitUtil.FRUITTYPE_OAT, "barley_windrow", g_i18n:getText("straw"), 0.04, 3, false, windrowHudFile); -- Hirse -- print("register fruit type: Hirse"); local milletHudFile = regFileLUA.."milletHud.dds"; FruitUtil.registerFruitType("millet", g_i18n:getText("millet"), true, true, false, 0, 4, 6, 8, false, 0.3, 1.5, 0.1, true, milletHudFile, {1.0, 0.3, 0, 1}); SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["wheat"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["millet"].index); end; end end; -- Hirsestroh -- local windrowHudFile = regFileLUA.."hud_fill_straw.dds"; FruitUtil.registerFruitTypeWindrow(FruitUtil.FRUITTYPE_MILLET, "barley_windrow", g_i18n:getText("straw"), 0.04, 3, false, windrowHudFile); -- Dinkel -- print("register fruit type: Dinkel"); local dinkelHudFile = regFileLUA.."dinkelHud.dds"; FruitUtil.registerFruitType("dinkel", g_i18n:getText("dinkel"), true, true, false, 0, 4, 6, 8, false, 0.3, 1.5, 0.1, true, dinkelHudFile, {0.1, 0.5, 0.8, 1}); SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["wheat"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["dinkel"].index); end; end end; -- Dinkelstroh -- local windrowHudFile = regFileLUA.."hud_fill_straw.dds"; FruitUtil.registerFruitTypeWindrow(FruitUtil.FRUITTYPE_DINKEL, "barley_windrow", g_i18n:getText("straw"), 0.04, 3, false, windrowHudFile);