protected void OnNodeSelected(object sender, MenuNodeEventArgs eventArgs) { // Audio - MAP_UI_GalaxyMap_NodeSelect - playing node selected AudioEvent.Play(AudioEventName.GalaxyMap.NodeSelected, Galaxy); // playing audio clip based on which node type was selected if (eventArgs.NodeType == MenuNodeType.Planet) { bool played = false; // checking if the player has selected Crait (bonus planet) if (eventArgs.BonusPlanet != null) { if (lastSelectedNode == null || !(lastSelectedNode is SurfaceMenuNode)) { played = AudioEvent.PlayOnceEver(AudioEventName.GalaxyMap.SelectCraitFirstTime, Holocron); if (!played && !DidAutoSelectNode) { AudioEvent.Play(AudioEventName.GalaxyMap.SelectCrait, Holocron); DidAutoSelectNode = false; } } } else { if (!pillarSelected) { if (eventArgs.Planet != PlanetType.Naboo) { played = AudioEvent.PlayOnceEver(AudioEventName.Archivist.GalaxyMap.UnlockPlanet.Replace("#planet#", eventArgs.Planet.ToString()), Holocron); } if (!played) { AudioEvent.Play(AudioEventName.Archivist.GalaxyMap.FunFactPlanet.Replace("#planet#", eventArgs.Planet.ToString()), Holocron); } } } pillarSelected = false; } else if (eventArgs.NodeType == MenuNodeType.Pillar || eventArgs.NodeType == MenuNodeType.Surface) { pillarSelected = true; } lastSelectedNode = sender; }
protected void OnNodeFocused(object sender, MenuNodeEventArgs eventArgs) { // Audio - playing the node highlighted audio AudioEvent.Play(AudioEventName.GalaxyMap.NodeHighlighted, Galaxy); // playing audio clip based on which node type was given focus if (eventArgs.NodeType == MenuNodeType.Planet) { // TODO: mathh010 - implement audio events for following planets (once available) if (eventArgs.Planet == PlanetType.Hoth) { // TODO: mathh010 update how first gaze is played based on design requirements //AudioEvent.PlayOnce(AudioEventName.Archivist.GalaxyMap.HothFirstGazeNode, Holocron); } else if (eventArgs.Planet == PlanetType.Takodana) { // TODO: mathh010 update how first gaze is played based on design requirements //AudioEvent.PlayOnce(AudioEventName.Archivist.GalaxyMap.TakodanaFirstGazeNode, Holocron); } } }
protected void OnNodeIdle(object sender, MenuNodeEventArgs eventArgs) { }