-- By PeterJ (30-11-2010)



painelinfo = {};

function painelinfo.prerequisitesPresent(specializations)
    return SpecializationUtil.hasSpecialization(Steerable, specializations);
end;

function painelinfo:load(xmlFile)

	self.controlpath = Utils.getFilename("info.png", self.baseDirectory);
    self.helpPoxX = 0.87;
    self.helpPoxY = 0.36;
    self.helpWidth = 0.16;
    self.helpHeight = 0.50;
    self.helpOverlay = Overlay:new("info", self.controlpath, self.helpPoxX, self.helpPoxY, self.helpWidth, self.helpHeight);
    self.bcActive = true;

end;

function painelinfo:keyEvent(unicode, sym, modifier, isDown)
	

end;

function painelinfo:update(dt)
	if InputBinding.hasEvent(InputBinding.INFOPANEL) then  
			
			self.bcActive = not self.bcActive;	
				
		end;

end;

function painelinfo:draw()

	 if self.helpOverlay ~= nil then
		if self.bcActive then
		self.helpOverlay:render();
		end;
	end;
		if self.bcActive then	
			g_currentMission:addExtraPrintText("Key Numpad 0: Info Off");
		else
			g_currentMission:addExtraPrintText("Key Numpad 0: Info On");
		end;

end;

function painelinfo:onEnter()
end;

function painelinfo:onLeave()
end;

function painelinfo:delete()
end;

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

function painelinfo:validateAttacherJoint(implement, jointDesc, dt)
    return true;
end;





