copel Posté(e) le 19 novembre 2003 Posté(e) le 19 novembre 2003 bonjour a tous, g resolu mon probleme d'erreur 21 (mauvaise config du "default.xap") mais maintenant g un enorme soucis: des que j'integre ma config et mon default, la taille des menus est minuscule et et il ni ya plus d'animation, par contre les liens fonctionnent correctement: je pe donc me balader dans le dash mais c un peu a l'aveuglette..... Je mets mon default.xap, si quelqu'un voit le probleme...... // // Copyright © Microsoft Corporation. All rights reserved. // DEF theScreen Screen { width 640 height 480 // width 854 // height 480 } DEF theAmbientSounds Group { // 0 = main menu // 1 = memory area // 2 = music area // 3 = settings area children [ DEF theAmbientSound0 AudioClip { url "Audio/AmbientAudio/AMB_12_HYDROTHUNDER_LR.wav" loop true volume 0 fade 2 pause_on_moving true } DEF theAmbientSound1 AudioClip { url "Audio/AmbientAudio/AMB_06_COMMUNICATION_LR.wav" loop true volume 0 fade 2 pause_on_moving true } DEF theAmbientSound2 AudioClip { url "Audio/AmbientAudio/AMB_05_ENGINEROOM_LR.wav" loop true volume 0 fade 2 pause_on_moving true } ] } DEF thePeriodicSounds Group { children [ PeriodicAudioGroup { period 60 // how many seconds between sounds (minimum) periodNoise 20 // maximum random seconds to add to period children [ AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam1.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam2.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam3.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam4.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam5.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam6.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Steam7.wav" volume 0.80 } ] } PeriodicAudioGroup { period 120 // how many seconds between sounds (minimum) periodNoise 30 // maximum random seconds to add to period children [ AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices1.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices2.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices3.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices4.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices5.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices6.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices7.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices8.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices9.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices10.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices11.wav" volume 0.80 } AudioClip { url "Audio/AmbientAudio/AMB_EC_Voices12.wav" volume 0.80 } ] } PeriodicAudioGroup { period 45 // how many seconds between sounds (minimum) periodNoise 15 // maximum random seconds to add to period children [ AudioClip { url "Audio/AmbientAudio/comm voice 1.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 2.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm static 1.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 3.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 4.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm static 2.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 5.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 6.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm static 3.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 7.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 8.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm static 4.wav" fade 2 volume 0.85 } AudioClip { url "Audio/AmbientAudio/comm voice 9.wav" fade 2 volume 0.85 } ] } PeriodicAudioGroup { period 300 periodNoise 60 children [ AudioClip { url "Audio/AmbientAudio/AMB_EC_Pinger1.wav" volume 0.85 } AudioClip { url "Audio/AmbientAudio/Control Room Loop.wav" volume 0.85 } AudioClip { url "Audio/AmbientAudio/Control Room Loop ver2.wav" volume 0.85 } ] } ] } function EnableAmbientAudio() { var n = Math.round(Math.random() * (theAmbientSounds.children.length() - 1)); log("Picking ambient track " + (n + 1)); for (var i = 0; i theAmbientSounds.children.isActive = false; theAmbientSounds.children[n].volume = 0.95; theAmbientSounds.children[n].isActive = true; for (i = 0; i thePeriodicSounds.children.length(); i = i + 1) thePeriodicSounds.children.isActive = true; } function DisableAmbientAudio() { log("Disabling ambient audio..."); for (var i = 0; i theAmbientSounds.children.isActive = false; for (i = 0; i thePeriodicSounds.children.isActive = false; } // Transition sounds DEF theGamesMenuIn AudioClip { url "Audio/TransitionAudio/Games Main Menu In_LR.wav" volume 0.92 } DEF theGamesMenuOut AudioClip { url "Audio/TransitionAudio/Games Main Menu Out_LR.wav" volume 0.92 } DEF theGamesSubMenuIn AudioClip {url "Audio/TransitionAudio/Games Sub Menu In_LR.wav" volume 0.92 } DEF theGamesSubMenuOut AudioClip {url "Audio/TransitionAudio/Games Sub Menu Out_LR.wav" volume 0.92 } DEF theMusicMenuIn AudioClip { url "Audio/TransitionAudio/Music Main Menu In_LR.wav" volume 0.92 } DEF theMusicMenuOut AudioClip { url "Audio/TransitionAudio/Music Main Menu Out_LR.wav" volume 0.92 } DEF theMusicSubMenuIn AudioClip { url "Audio/TransitionAudio/Music Select Track In_LR.wav" volume 0.92 } DEF theMusicSubMenuOut AudioClip { url "Audio/TransitionAudio/Music Select Track Out_LR.wav" volume 0.92 } DEF theSettingsMenuIn AudioClip { url "Audio/TransitionAudio/Settings Main Menu In_LR.wav" volume 0.92 } DEF theSettingsMenuOut AudioClip { url "Audio/TransitionAudio/Settings Main Menu Out_LR.wav" volume 0.92 } DEF theSettingsSubMenuIn AudioClip { url "Audio/TransitionAudio/Settings Sub Menu In_LR.wav" volume 0.92 } DEF theSettingsSubMenuOut AudioClip { url "Audio/TransitionAudio/Settings Sub Menu Out_LR.wav" volume 0.92 } // Music Area sounds DEF theCDExpand AudioClip { url "Audio/MusicAudio/Music CD Select.wav" volume 0.85 } DEF thePlayerPanelIn AudioClip { url "Audio/MusicAudio/Games Info Screen In MSurr.wav" volume 0.92 } DEF thePlayerPanelOut AudioClip { url "Audio/MusicAudio/Games Info Screen Out MSurr.wav" volume 0.92 } // Main Menu Area sounds DEF theMainMenuForward AudioClip { url "Audio/MainAudio/Global Main MenuFwd3ver2.wav" volume 0.90 } DEF theMainMenuBackward AudioClip { url "Audio/MainAudio/Global Main MenuBack3ver2.wav" volume 0.90 } DEF theASound AudioClip { url "Audio/MainAudio/Global A Button Select.wav" pan 75 volume 0.92 } DEF theBSound AudioClip { url "Audio/MainAudio/Global B Button Back.wav" pan -75 volume 0.92 } DEF theMenuChangeSound AudioClip { url "Audio/MainAudio/Global Scroll Beep.wav" volume 0.85 } DEF theErrorSound AudioClip { url "Audio/MainAudio/Global Error Message B.wav" volume 0.85 } DEF theDeleteSound AudioClip { url "Audio/MainAudio/Global Delete_Destroy.wav" volume 0.85 } DEF theProgressSound AudioClip { url "Audio/MainAudio/Global Progress Bar.wav" loop true volume 0.85 } DEF theCompleteSound AudioClip { url "Audio/MainAudio/Global Completion Beep.wav" volume 0.85 } // Memory Menu Area sounds DEF theMemoryControllerSelectSound AudioClip { url "Audio/MemoryAudio/Memory Controller Select.wav" volume 0.90 } DEF theMemoryTitleSelectSound AudioClip { url "Audio/MemoryAudio/Memory Games Select.wav" volume 0.90 } DEF theMemorySaveSelectSound AudioClip { url "Audio/MemoryAudio/Memory Memory Slot Select.wav" volume 0.90 } // Settings Menu Area sounds DEF theSettingsLangSound AudioClip { url "Audio/SettingsAudio/Settings Lang SubMenu Sel.wav" volume 0.90 } DEF theSettingsParentSound AudioClip { url "Audio/SettingsAudio/Settings Parent SubMenu Sel.wav" volume 0.90 } function PlaySoundError() { theErrorSound.Play(); } function PlaySoundDelete() { theDeleteSound.Play(); } function PlaySoundA() { theASound.Play(); } function PlaySoundB() { theBSound.Play(); } function PlaySoundMenuChange() { theMenuChangeSound.Play(); } DEF theScreenSaver ScreenSaver { function OnStart() { theScreen.brightness = 0.1; } function OnEnd() { theScreen.brightness = 1; } } NavigationInfo { type "sample" headlight false // speed 10 } DEF theBackground Background { skyColor 0 0 0 } DEF theConfig Config function GetLanguage() { return theConfig.GetLanguage(); } function SetLanguage(nLanguage) { return theConfig.SetLanguage(nLanguage); } function ClosePopup() { if (g_bKeyboardDisplayed) { CloseKeyboard(); } if (g_bPanelDisplayed) { CloseMessage(); } } DEF theDVDPlayerInline Inline { visible false url "dvd.xap" function onLoad() { theDVDPlayerInline.children[0].theDVDLevel.GoTo(); } } DEF theDiscDrive DiscDrive { function OnDiscRemoved() { if (theDVDPlayerInline.visible) { bShowDVDStopBackground = false; theDVDPlayerInline.children[0].theDVDPlayer.stop(); theDVDPlayerInline.children[0].ClearOnScreenInfo(); if (g_bPanelDisplayed) { CloseMessage(); } theLauncherLevel.GoTo(); return; } else if (theMusicInline.visible) { var c = theMusicInline.children[0]; ClosePopup(); if (c.musicSelect != 0) // Not Audio CD { return; } if (c.theMusicPlayMenu.visible) { // Update track in the player c.DoMusicStop(); c.InitPlaylist(); c.UpdateTrackList(); } else if (c.theMusicCopyMenu.visible) { c.theMusicCollection.error = 3; // Disc ejected c.OnMusicCopyComplete(); } else if (c.theMusicMenu.visible) { // Update numbers of tracks and total time c.UpdateMusicMetaData(); } } else { CloseMessage(); } } function OnDiscInserted() { if (discType == "Audio") { } } } function StartDVDPlayer() { log("Starting the DVD player!"); theDVDPlayerInline.visible = true; } function StartCDPlayer() { log("Should start the CD player now!"); bGoToCDPlayer = true; EnableInput(false); // music.xap will re-enable it again if bGoToCDPlay is true GoToMusic(); } DEF theTranslator Translator /////////////////////////////////////////////////////////////////////// ///// /* DEF theGamesInline Inline { visible false url "Games.xap" function onLoad() { theGamesInline.children[0].theGamesMenu.GoTo(); } } function GoToGames() { if (theGamesInline.visible) theGamesInline.children[0].theGamesMenu.GoTo(); else theGamesInline.visible = true; } */ ///////////////////////////////////////////////////////////////// /////////// DEF theMusicInline Inline { visible false url "Music2.xap" function onLoad() { theMusicInline.children[0].theMusicMenu.GoTo(); } /* visible false url "Settings_List.xap" function onLoad() { theMusicInline.children[0].theSettingsList.GoTo(); } */ } function GoToMusic() { if (theMusicInline.visible) theMusicInline.children[0].theMusicMenu.GoTo(); else { BlockMemoryUnitInsert(); theMusicInline.visible = true; } /* if (theMusicInline.visible) theMusicInline.children[0].theSettingsList.GoTo(); else theMusicInline.visible = true; */ } ///////////////////////////////////////////////////////////////// /////////// DEF theMemoryInline Inline { visible false url "Memory3.xap" function onLoad() { theMemoryInline.children[0].theMemoryMenu.GoTo(); } } function GoToMemory() { if (theMemoryInline.visible) theMemoryInline.children[0].theMemoryMenu.GoTo(); else theMemoryInline.visible = true; } /////////////////////////////////////////////////////////////////////// ///// DEF theSettingsInline Inline { visible false url "Settings3.xap" function onLoad() { theSettingsInline.children[0].theSettingsMenu.GoTo(); } } function GoToSettings() { bBackToDVDPlayer = false; if (theSettingsInline.visible) theSettingsInline.children[0].theSettingsMenu.GoTo(); else theSettingsInline.visible = true; } /////////////////////////////////////////////////////////////////////// ///// /////////////////////////////////////////////////////////////////////////// / DEF theSubMenuInline Inline //Lets Use a new .xap - dunny { visible false url "msubmenu.xap" function onLoad() { theSubMenuInline.children[0].theSubMenu.GoTo(); } } function GoToSubMenu() { bBackToDVDPlayer = false; if (theSubMenuInline.visible) theSubMenuInline.children[0].theSubMenu.GoTo(); else theSubMenuInline.visible = true; } DEF theSubMenu2Inline Inline //Lets Use a new .xap - dunny { visible false url "msubmenu2.xap" function onLoad() { theSubMenu2Inline.children[0].theSubMenu2.GoTo(); } } function GoToSubMenu2() { bBackToDVDPlayer = false; if (theSubMenu2Inline.visible) theSubMenu2Inline.children[0].theSubMenu2.GoTo(); else theSubMenu2Inline.visible = true; } /////////////////////////////////////////////////////////////////////// ///// // START CUSTOM BUTTON CODE //////////////////////////////////////////////////////////////////////////// r> var configloaded; var MainMenuItem1; var MainMenuItem2; var MainMenuItem3; var MainMenuItem4; var MainMenuItem5; var MainMenuLaunch1; var MainMenuLaunch2; var MainMenuLaunch3; var MainMenuLaunch4; var MainMenuLaunch5; var SubMenuItem1; var SubMenuItem2; var SubMenuItem3; var SubMenuItem4; var SubMenuItem5; var SubMenuItem6; var SubMenuLaunch1; var SubMenuLaunch2; var SubMenuLaunch3; var SubMenuLaunch4; var SubMenuLaunch5; var SubMenuLaunch6; var SubMenuItems; var XBMPpath; var gamesMenuName; var appsMenuName; var emusMenuName; var dashsMenuName; var numberOfGames; var numberOfApps; var numberOfEmus; var numberOfDashs; var dashespath; var appspath; var emuspath; var gamespath; var gamename; var appname; var emuname; var dashname; var password; var nPsswrd; var magicnumber; var use5ButtonMainMenu; var autoDvdx2; var dvdx2path; DEF config Inline { visible true url "config.xap" function onLoad() { config.children[0].setvar.GoTo(); } } ///////////////////////////////////////////////////////////////// > var nCurMainMenuItem; function UpdateMainMenu() { // Adjust for a 4 or 5 button menu if( use5ButtonMainMenu == true ) { // Update our 5 button menu with the online button Update5ButtonMainMenu(); } else { // Update our 4 button menu without the online button Update4ButtonMainMenu(); } } function Update5ButtonMainMenu() { var c = theMainMenu.children[0].children[0]; c.game_select_pod_inner02.visible = false; // Memory Flashing Orb c.game_select_pod_inner.visible = false; // Music Flashing Orb c.game_select_pod_inner04.visible = false; // Xbox Live Flashing Orb c.game_select_pod_inner03.visible = false; // Settings Flashing Orb c.game_select_pod_inner03custom.visible = false; // Custom Flashing Orb if (nCurMainMenuItem == 0) // Memory Button { c.game_select_pod_inner02.visible = true; c.theMenuItems.SetRotation(0, 0, 1, -0.25); c.theMemoryItem.SetRotation(0, 1, 0, -0.25); c.theMusicItem.SetRotation(0, 1, 0, -0.25); c.theOnlineItem.SetRotation(0, 1, 0, -0.25); c.theSettingsItem.SetRotation(0, 1, 0, -0.25); c.theCustomItem.SetRotation(0, 1, 0, -0.25); c.MemoryPanelMaterial.name = "GameHilite"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "HilightedType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 1) // Music Button (Default position) { c.game_select_pod_inner.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.0); c.theMemoryItem.SetRotation(0, 1, 0, 0.0); c.theMusicItem.SetRotation(0, 1, 0, 0.0); c.theOnlineItem.SetRotation(0, 1, 0, 0.0); c.theSettingsItem.SetRotation(0, 1, 0, 0.0); c.theCustomItem.SetRotation(0, 1, 0, 0); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "GameHilite"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "HilightedType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 2) // Xbox Live Button { c.game_select_pod_inner04.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.25); c.theMemoryItem.SetRotation(0, 1, 0, 0.25); c.theMusicItem.SetRotation(0, 1, 0, 0.25); c.theOnlineItem.SetRotation(0, 1, 0, 0.25); c.theSettingsItem.SetRotation(0, 1, 0, 0.25); c.theCustomItem.SetRotation(0, 1, 0, 0.25); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "GameHilite"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "HilightedType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "NavType"; // Custom } else if (nCurMainMenuItem == 3) // Settings Button { c.game_select_pod_inner03.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.50); c.theMemoryItem.SetRotation(0, 1, 0, 0.50); c.theMusicItem.SetRotation(0, 1, 0, 0.50); c.theOnlineItem.SetRotation(0, 1, 0, 0.50); c.theSettingsItem.SetRotation(0, 1, 0, 0.50); c.theCustomItem.SetRotation(0, 1, 0, 0.50); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "GameHilite"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "HilightedType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 4) // Custom Button { c.game_select_pod_inner03custom.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.75); c.theMemoryItem.SetRotation(0, 1, 0, 0.75); c.theMusicItem.SetRotation(0, 1, 0, 0.75); c.theOnlineItem.SetRotation(0, 1, 0, 0.75); c.theSettingsItem.SetRotation(0, 1, 0, 0.75); c.theCustomItem.SetRotation(0, 1, 0, 0.75); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "GameHilite"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "HilightedType"; } } function Update4ButtonMainMenu() { var c = theMainMenu.children[0].children[0]; c.game_select_pod_inner02.visible = false; // Memory Flashing Orb c.game_select_pod_inner.visible = false; // Music Flashing Orb c.game_select_pod_inner03.visible = false; // Settings Flashing Orb c.game_select_pod_inner03custom.visible = false; // Custom Flashing Orb if (nCurMainMenuItem == 0) // Memory Button { c.game_select_pod_inner02.visible = true; c.theMenuItems.SetRotation(0, 0, 1, -0.25); c.theMemoryItem.SetRotation(0, 1, 0, -0.25); c.theMusicItem.SetRotation(0, 1, 0, -0.25); c.theSettingsItem.SetRotation(0, 1, 0, -0.25); c.theCustomItem.SetRotation(0, 1, 0, -0.25); c.MemoryPanelMaterial.name = "GameHilite"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "HilightedType"; c.MusicTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 1) // Music Button (Default position) { c.game_select_pod_inner.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.0); c.theMemoryItem.SetRotation(0, 1, 0, 0.0); c.theMusicItem.SetRotation(0, 1, 0, 0.0); c.theSettingsItem.SetRotation(0, 1, 0, 0.0); c.theCustomItem.SetRotation(0, 1, 0, 0); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "GameHilite"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "HilightedType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 2) // Xbox Live Button { // This should never happen in a 3 button menu config // This code is purly defensive. If there is a bug, this could help prevent bad behavior // NOTE: This is still bad though, as it would most likely prevent the user from reaching // the settings area nCurMainMenuItem = 1; UpdateMainMenu(); } else if (nCurMainMenuItem == 3) // Settings Button { c.game_select_pod_inner03.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.25); c.theMemoryItem.SetRotation(0, 1, 0, 0.25); c.theMusicItem.SetRotation(0, 1, 0, 0.25); c.theSettingsItem.SetRotation(0, 1, 0, 0.25); c.theCustomItem.SetRotation(0, 1, 0, 0.25); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "GameHilite"; c.CustomPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "HilightedType"; c.CustomTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 4) // Custom Button { c.game_select_pod_inner03custom.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.50); c.theMemoryItem.SetRotation(0, 1, 0, 0.50); c.theMusicItem.SetRotation(0, 1, 0, 0.50); c.theSettingsItem.SetRotation(0, 1, 0, 0.50); c.theCustomItem.SetRotation(0, 1, 0, 0.50); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.CustomPanelMaterial.name = "GameHilite"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.CustomTextMaterial.name = "HilightedType"; } } DEF theMainMenu Level { archive "MainMenu5.xip" unloadable false children [ Inline { url "MainMenu5/default.xap" function onLoad() { // Adjust our transforms if necessary theMainJoystick.secretKey = "YX"; var c = theMainMenu.children[0].children[0]; c.MainMenu1.geometry.text = MainMenuItem1; c.MainMenu2.geometry.text = MainMenuItem2; c.MainMenu3.geometry.text = MainMenuItem3; c.MainMenu4.geometry.text = MainMenuItem4; c.MainMenu5.geometry.text = MainMenuItem5; if( use5ButtonMainMenu == true ) { // Setup for a 5 button menu with the online button c.Main_memory_ringpin_3.SetTranslation(62.779999, 13.892000, 102.000000); // Memory c.Main_memory_ringpin_2.SetTranslation(56.830002, 33.290001, 101.900002); // Music c.Main_Online_ringpin.SetTranslation(62.779999, -6.092000, 102.000000); // Online c.Main_memory_ringpin_4.SetTranslation(57.430000, -24.379999, 101.500000); // Settings c.Main_memory_ringpin_custom.SetTranslation(42.000000, -38.000000, 101.500000); // Custom } else { // Turn off the Online Menu Button's Visible Propery c.Main_Online_ringpin.visible = false; // Setup for a 4 button menu without the online button c.Main_memory_ringpin_3.SetTranslation(62.779999, 13.892000, 102.000000); // Memory c.Main_memory_ringpin_2.SetTranslation(56.830002, 33.290001, 101.900002); // Music c.Main_memory_ringpin_4.SetTranslation(62.779999, -6.092000, 102.000000); // Settings c.Main_memory_ringpin_custom.SetTranslation(57.430000, -24.379999, 101.500000);// Custom } UpdateMainMenu(); g_theMainMenuLoaded = true; } } ] shell Transform { scale 150 150 150 translation 0 -20 80 children [ Waver { rpm 0.75 children [ Shape { appearance Appearance { material MaxMaterial { name "InnerWall_01" } texture ImageTexture { alpha true url "cellwall.bmp" } } geometry Mesh { url "Inner_cell-FACES.xm" } } Shape { appearance Appearance { material MaxMaterial { name "InnerWall_02" } } geometry Sphere { radius 1 } } ] } ] } path Viewpoint { fieldOfView 1.300000 orientation -0.177400 -0.983500 -0.036250 -0.045440 position 11.180000 -32.299999 174.300003 jump false } control DEF theMainJoystick Joystick { function OnADown() { theMainMenu.children[0].children[0].select_pod_HL.children[0].appearance.material.par am = 1; PlaySoundA(); if (nCurMainMenuItem == 0) // Memory Button { if ( MainMenuLaunch1 == 0 ) { theMusicMenuIn.Play(); GoToSubMenu(); } if ( MainMenuLaunch1 == 1 ) { theMusicMenuIn.Play(); magicnumber = 2; GoToSubMenu2(); } if ( MainMenuLaunch1 == 2 ) { theMusicMenuIn.Play(); magicnumber = 3; GoToSubMenu2(); } if ( MainMenuLaunch1 == 3 ) { theMusicMenuIn.Play(); magicnumber = 4; GoToSubMenu2(); } if ( MainMenuLaunch1 == 4 ) { theMusicMenuIn.Play(); magicnumber = 1; GoToSubMenu2(); } if ( MainMenuLaunch1 == 5 ) { theMusicMenuIn.Play(); GoToMusic(); } if ( MainMenuLaunch1 == 6 ) { theSettingsMenuIn.Play(); GoToSettings(); } if ( MainMenuLaunch1 == 7 ) { theGamesMenuIn.Play(); GoToMemory(); } if ( MainMenuLaunch1 == 8 ) { launch( "default.xbe", XBMPpath ); } } else if (nCurMainMenuItem == 1) // Music Button { if ( MainMenuLaunch2 == 0 ) { theMusicMenuIn.Play(); GoToSubMenu(); } if ( MainMenuLaunch2 == 1 ) { theMusicMenuIn.Play(); magicnumber = 2; GoToSubMenu2(); } if ( MainMenuLaunch2 == 2 ) { theMusicMenuIn.Play(); magicnumber = 3; GoToSubMenu2(); } if ( MainMenuLaunch2 == 3 ) { theMusicMenuIn.Play(); magicnumber = 4; GoToSubMenu2(); } if ( MainMenuLaunch2 == 4 ) { theMusicMenuIn.Play(); magicnumber = 1; GoToSubMenu2(); } if ( MainMenuLaunch2 == 5 ) { theMusicMenuIn.Play(); GoToMusic(); } if ( MainMenuLaunch2 == 6 ) { theSettingsMenuIn.Play(); GoToSettings(); } if ( MainMenuLaunch2 == 7 ) { theGamesMenuIn.Play(); GoToMemory(); } if ( MainMenuLaunch2 == 8 ) { launch( "default.xbe", XBMPpath ); } } else if (nCurMainMenuItem == 2) // Xbox Live Button { if ( MainMenuLaunch3 == 0 ) { theMusicMenuIn.Play(); GoToSubMenu(); } if ( MainMenuLaunch3 == 1 ) { theMusicMenuIn.Play(); magicnumber = 2; GoToSubMenu2(); } if ( MainMenuLaunch3 == 2 ) { theMusicMenuIn.Play(); magicnumber = 3; GoToSubMenu2(); } if ( MainMenuLaunch3 == 3 ) { theMusicMenuIn.Play(); magicnumber = 4; GoToSubMenu2(); } if ( MainMenuLaunch3 == 4 ) { theMusicMenuIn.Play(); magicnumber = 1; GoToSubMenu2(); } if ( MainMenuLaunch3 == 5 ) { theMusicMenuIn.Play(); GoToMusic(); } if ( MainMenuLaunch3 == 6 ) { theSettingsMenuIn.Play(); GoToSettings(); } if ( MainMenuLaunch3 == 7 ) { theGamesMenuIn.Play(); GoToMemory(); } if ( MainMenuLaunch3 == 8 ) { launch( "default.xbe", XBMPpath ); } } else if (nCurMainMenuItem == 3) // Settings Button { if ( MainMenuLaunch4 == 0 ) { theMusicMenuIn.Play(); GoToSubMenu(); } if ( MainMenuLaunch4 == 1 ) { theMusicMenuIn.Play(); magicnumber = 2; GoToSubMenu2(); } if ( MainMenuLaunch4 == 2 ) { theMusicMenuIn.Play(); magicnumber = 3; GoToSubMenu2(); } if ( MainMenuLaunch4 == 3 ) { theMusicMenuIn.Play(); magicnumber = 4; GoToSubMenu2(); } if ( MainMenuLaunch4 == 4 ) { theMusicMenuIn.Play(); magicnumber = 1; GoToSubMenu2(); } if ( MainMenuLaunch4 == 5 ) { theMusicMenuIn.Play(); GoToMusic(); } if ( MainMenuLaunch4 == 6 ) { theSettingsMenuIn.Play(); GoToSettings(); } if ( MainMenuLaunch4 == 7 ) { theGamesMenuIn.Play(); GoToMemory(); } if ( MainMenuLaunch4 == 8 ) { launch( "default.xbe", XBMPpath ); } } else if (nCurMainMenuItem == 4) // Custom Button { if ( MainMenuLaunch5 == 0 ) { theMusicMenuIn.Play(); GoToSubMenu(); } if ( MainMenuLaunch5 == 1 ) { theMusicMenuIn.Play(); magicnumber = 2; GoToSubMenu2(); } if ( MainMenuLaunch5 == 2 ) { theMusicMenuIn.Play(); magicnumber = 3; GoToSubMenu2(); } if ( MainMenuLaunch5 == 3 ) { theMusicMenuIn.Play(); magicnumber = 4; GoToSubMenu2(); } if ( MainMenuLaunch5 == 4 ) { theMusicMenuIn.Play(); magicnumber = 1; GoToSubMenu2(); } if ( MainMenuLaunch5 == 5 ) { theMusicMenuIn.Play(); GoToMusic(); } if ( MainMenuLaunch5 == 6 ) { theSettingsMenuIn.Play(); &nb
Pink Floyd Posté(e) le 19 novembre 2003 Posté(e) le 19 novembre 2003 au bout de 40 message tu c toujours pas ecrire un titre clair et explicite ?
copel Posté(e) le 19 novembre 2003 Auteur Posté(e) le 19 novembre 2003 mille excuse Pink Floyd c vrai que mon titre est bidon..... mais la, la bobox me soule grave ...... si ta la solution..... desole le texte est enorme, c la premiere fois que j'utilise le "quote" ....
Tilienna Posté(e) le 20 novembre 2003 Posté(e) le 20 novembre 2003 Il manque 2 "}" a la fin de ton fichier, a moins que ca ne soit a cause du copier / coller.
Messages recommandés
Créer un compte ou se connecter pour commenter
Vous devez être membre afin de pouvoir déposer un commentaire
Créer un compte
Créez un compte sur notre communauté. C’est facile !
Créer un nouveau compteSe connecter
Vous avez déjà un compte ? Connectez-vous ici.
Connectez-vous maintenant