--
-- IHC 1455 XL
-- Spezialization um Hilfe ein- bzw. ausblenden zu können
-- 
--
-- Author  Friedrich L.  -  Skullman
-- Date 18. Dezember 2010
-- Web www.modding-society.de
--
-- Copyright (c) Friedrich L. - All Rights Reserved.
--

ShowHelp = {};

function ShowHelp.prerequisitesPresent(specializations)
    return SpecializationUtil.hasSpecialization(Motorized, specializations);
end;

function ShowHelp:load(xmlFile)
	self.showHelp = false;
end;

function ShowHelp:delete()
end;

function ShowHelp:mouseEvent(posX, posY, isDown, isUp, button)
end;

function ShowHelp:keyEvent(unicode, sym, modifier, isDown)
end;

function ShowHelp:update(dt)
	if self:getIsActiveForInput(false) then
		if InputBinding.hasEvent(InputBinding.TOGGLE_SHOW_HELP) then
			self.showHelp = not self.showHelp;
		end;
	end;
end;



function ShowHelp:updateTick(dt)
end;


function ShowHelp:draw()
	if not self.showHelp then
		renderText(0.82, 0.29, 0.015, "Taste Numpad 0: Info");
	 else
		-- Koordinaten sind aus der F930.lua - Author leider unbekannt
		renderText(0.82, 0.29, 0.015, "Taste Numpad 0: Info ");
		renderText(0.77, 0.86, 0.02, "- John Deere 6630 Obciaznik -");			
		renderText(0.72, 0.83, 0.018, "Taste Numpad enter: odpal/zgas");
		renderText(0.72, 0.81, 0.018, "Taste Numpad 7: drzwi lewe");
		renderText(0.72, 0.79, 0.018, "Taste Numpad 8: tylna szyba");			
		renderText(0.72, 0.77, 0.018, "Taste Numpad 9: drzwi prawe");
		renderText(0.72, 0.75, 0.018, "Taste Numpad 5: halogeny tyl");
		renderText(0.72, 0.73, 0.018, "Taste Numpad 6: halogeny przod");
		renderText(0.72, 0.71, 0.018, "Taste space   : interaktywne sterowanie");
		renderText(0.72, 0.69, 0.018, "Taste 5       : tylni zaczep w gore");
		renderText(0.72, 0.67, 0.018, "Taste 6       : tylni zaczep w dol");
		renderText(0.72, 0.65, 0.018, "Taste Numpad 1: kierunek lewy");
		renderText(0.72, 0.63, 0.018, "Taste Numpad 2: awaryjne");
		renderText(0.72, 0.61, 0.018, "Taste Numpad 3: kierunek prawy");
		renderText(0.72, 0.59, 0.018, "Taste 9	   : zaloz ramie tura");
		renderText(0.72, 0.57, 0.018, "Taste Numpad 4: zaloz obciaznik");
		renderText(0.72, 0.55, 0.018, "Taste 7	   : zaloz konsole tura");
     	end;
end;

function ShowHelp:onLeave()
	self.showHelp = false;
end;




