func (self *DefaultRenderer) initObj8Lights() {
	_, path, _, _ := plugins.GetPluginInfo(plugins.GetMyId())
	//aktueller Pfad ist die XPL-Datei --> noch eins nach oben
	path = filepath.Dir(path)
	//aktueller Pfad ist jetzt der 64-Ordner --> noch eins nach oben
	path = filepath.Dir(path)
	if self.configuration.DisableObj8LightSpills {
		path = filepath.Join(path, "Resources", "obj8Lights")
	} else {
		path = filepath.Join(path, "Resources", "obj8Lights", "spill")
	}
	self.greenNavRef = scenery.LoadObject(filepath.Join(path, "greenNavLight.obj"))
	self.redNavRef = scenery.LoadObject(filepath.Join(path, "redNavLight.obj"))
	self.strobeRef = scenery.LoadObject(filepath.Join(path, "strobeLight.obj"))
	self.beaconRef = scenery.LoadObject(filepath.Join(path, "beaconLight.obj"))
	self.landingRef = scenery.LoadObject(filepath.Join(path, "landingLight.obj"))
	self.taxiRef = scenery.LoadObject(filepath.Join(path, "taxiLight.obj"))
	self.otherRef = scenery.LoadObject(filepath.Join(path, "otherLight.obj"))

}
Exemple #2
0
//Liefert die ID des Plugins.
func (self *XPlanePlugin) GetId() plugins.PluginId {
	if self.id == -plugins.NO_PLUGIN_ID {
		self.id = plugins.GetMyId()
	}
	return self.id
}