-------------------------------- -- MAIN MENU LAYOUT -------------------------------- local mainMenuLayoutName = "mainMenuLayout" LYTLayout.Setup{ name = mainMenuLayoutName, archiveName = "Frontend/FE_mainMenu.arc", layoutName = "FE_mainMenu.brlyt" } LYTPane.Setup{ name = "danceLocator", paneName = "dance", layoutCmp = mainMenuLayoutName } LYTPane.Setup{ name = "karaokeLocator", paneName = "karaoke", layoutCmp = mainMenuLayoutName } LYTPane.Setup{ name = "partyLocator", paneName = "party", layoutCmp = mainMenuLayoutName } LYTPane.Setup{ name = "bonusContentLocator", paneName = "bonus", layoutCmp = mainMenuLayoutName } LYTPane.Setup{ name = "optionsLocator", paneName = "options", layoutCmp = mainMenuLayoutName } ---------------------------------- -- CONFIRM SCREEN LAYOUT ---------------------------------- local confirmScreenLayoutName = "ConfirmScreenLayout" LYTLayout.Setup{ name = confirmScreenLayoutName, layoutName = "FE_gameDetails.brlyt", additionalFonts = "GlobalFontPack" } for scrollBoxId=1, 3 do LYTPane.Setup{ name="scrollBoxRoot"..scrollBoxId, paneName="0"..scrollBoxId, layoutCmp=confirmScreenLayoutName } LYTTextPane.Setup{ name="scrollBoxTitle"..scrollBoxId, paneName="header_0"..scrollBoxId.."_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=40 } LYTTextPane.Setup{ name="scrollBoxText"..scrollBoxId, paneName="subHeader_0"..scrollBoxId.."_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=40 } LYTPane.Setup{ name = "arrow_0"..scrollBoxId.."_left_root", paneName = "arrow_0"..scrollBoxId.."_left", layoutCmp = confirmScreenLayoutName } arrowButtonBase = "0"..scrollBoxId.."_left" LYTPane.Setup{ name = arrowButtonBase.."_idle", paneName = arrowButtonBase.."_idle", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_over", paneName = arrowButtonBase.."_hover", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_press", paneName = arrowButtonBase.."_select", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_na", paneName = arrowButtonBase.."_na", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "arrow_0"..scrollBoxId.."_right_root", paneName = "arrow_0"..scrollBoxId.."_right", layoutCmp = confirmScreenLayoutName } arrowButtonBase = "0"..scrollBoxId.."_right" LYTPane.Setup{ name = arrowButtonBase.."_idle", paneName = arrowButtonBase.."_idle", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_over", paneName = arrowButtonBase.."_hover", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_press", paneName = arrowButtonBase.."_select", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = arrowButtonBase.."_na", paneName = arrowButtonBase.."_na", layoutCmp = confirmScreenLayoutName } end LYTTextPane.Setup{ name="SongTitle", paneName="Song_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTTextPane.Setup{ name="Song", paneName="SongName_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTTextPane.Setup{ name="GameTitle", paneName="Game_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTTextPane.Setup{ name="Game", paneName="Game_Details_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTTextPane.Setup{ name="DifficultyTitle", paneName="Difficulty_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTTextPane.Setup{ name="Difficulty", paneName="Difficulty2_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=56 } LYTPane.Setup{ name = "ControllersRoot", paneName = "Configs", layoutCmp = confirmScreenLayoutName } LYTTextPane.Setup{ name="ControllerDescription", paneName="description_FL", layoutCmp=confirmScreenLayoutName, maxNumCharacters=300 } for configId=1, 2 do LYTPane.Setup{ name = "ControllerConfig_"..configId.."0", paneName = "kConfig_"..configId.."0", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "ControllerConfig_"..configId.."IntMic", paneName = "kConfig_"..configId.."IntMic", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "ControllerConfig_"..configId.."1", paneName = "kConfig_"..configId.."1", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "ControllerConfig_"..configId.."2", paneName = "kConfig_"..configId.."2", layoutCmp = confirmScreenLayoutName } end --Config10 LYTPane.Setup{ name = "Config10_Con1", paneName = "contr_01", layoutCmp = confirmScreenLayoutName } --Config1Int LYTPane.Setup{ name = "Config1Int_Con1", paneName = "contr_02", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config1Int_Mic1", paneName = "cam_01", layoutCmp = confirmScreenLayoutName } --Config11 LYTPane.Setup{ name = "Config11_Con1", paneName = "contr_03", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config11_Mic1", paneName = "mic_01", layoutCmp = confirmScreenLayoutName } --Config12 LYTPane.Setup{ name = "Config12_Con1", paneName = "contr_04", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config12_Mic1", paneName = "mic_02", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config12_Mic2", paneName = "mic_03", layoutCmp = confirmScreenLayoutName } --Config20 LYTPane.Setup{ name = "Config20_Con1", paneName = "contr_05", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config20_Con2", paneName = "contr_06", layoutCmp = confirmScreenLayoutName } --Config2Int LYTPane.Setup{ name = "Config2Int_Con1", paneName = "contr_07", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config2Int_Con2", paneName = "contr_08", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config2Int_Mic1", paneName = "cam_02", layoutCmp = confirmScreenLayoutName } --Config21 LYTPane.Setup{ name = "Config21_Con1", paneName = "contr_09", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config21_Con2", paneName = "contr_10", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config21_Mic1", paneName = "mic_04", layoutCmp = confirmScreenLayoutName } --Config22 LYTPane.Setup{ name = "Config22_Con1", paneName = "contr_11", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config22_Con2", paneName = "contr_12", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config22_Mic1", paneName = "mic_05", layoutCmp = confirmScreenLayoutName } LYTPane.Setup{ name = "Config22_Mic2", paneName = "mic_06", layoutCmp = confirmScreenLayoutName } ----------------------------------- -- CHOOSE CHARACTER SCREEN ---------------------------------- local numPlayers = 4 local numTeams = 2 local numCharacters = 16 local ChooseCharaterLayoutName = "ChooseCharacterLayout" LYTLayout.Setup{ name = ChooseCharaterLayoutName, layoutName = "FE_chooseTeam.brlyt" } -- character locators for char = 1, numCharacters do LYTPane.Setup{ name = "characterSlot"..(char-1), paneName = "characterSlot"..char, layoutCmp = ChooseCharaterLayoutName } end -- marker locators for team = 1, numTeams do for player =1, numPlayers do LYTPane.Setup{ name = "markerLoc_T"..(team-1).."_P"..(player-1), paneName = "marker_T"..team.."_P"..player, layoutCmp = ChooseCharaterLayoutName } end end ------------------------------------ -- TEAM MARKERS/SKIP GAME MARKERS ------------------------------------ local numMarkers = 7 for idx=0, numMarkers do local teamMarkerLayout = "teamMarkerLayout"..idx local teamMarkerFileName = "FE_teamNumber_markers" LYTLayout.Setup{ name = teamMarkerLayout, layoutName = teamMarkerFileName } local markerBtnBase = "teamMarker"..idx.."_" LYTPane.Setup{ name = markerBtnBase.."Root", paneName = "animMaster", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."Mover", paneName = "teamNo_markers", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."EmptyBlue", paneName = "blueTeam_vacant", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."NextBlue", paneName = "blueTeam_toChose", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."ChosenBlue", paneName = "blueTeam_chosen", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."EmptyRed", paneName = "redTeam_vacant", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."NextRed", paneName = "redTeam_toChose", layoutCmp = teamMarkerLayout } LYTPane.Setup{ name = markerBtnBase.."ChosenRed", paneName = "redTeam_chosen", layoutCmp = teamMarkerLayout } LYTAnimation.Setup{ name = markerBtnBase.."animChoseBlue", animName = teamMarkerFileName.."_blueTeam_chosen.brlan", paneCmp = markerBtnBase.."ChosenBlue", layoutCmp = teamMarkerLayout } LYTAnimation.Setup{ name = markerBtnBase.."animChoseRed", animName = teamMarkerFileName.."_redTeam_chosen.brlan", paneCmp = markerBtnBase.."ChosenRed", layoutCmp = teamMarkerLayout } LYTAnimation.Setup{ name= markerBtnBase.."entry", layoutCmp=teamMarkerLayout, animName= teamMarkerFileName.."_menu_entry.brlan" } LYTAnimation.Setup{ name= markerBtnBase.."exit", layoutCmp=teamMarkerLayout, animName= teamMarkerFileName.."_menu_exit.brlan" } end ------------------------------ -- INFO SCREEN LAYOUT ------------------------------ infoScreenLayoutName = "InfoScreenLayout" local infoScreenFileName = "FE_infoScreen" LYTLayout.Setup{ name = infoScreenLayoutName, layoutName = infoScreenFileName..".brlyt" , additionalFonts="GlobalFontPack" } LYTTextPane.Setup{ name = "InfoTextPane", paneName = "infoText_FL", layoutCmp = infoScreenLayoutName, maxNumCharacters=300 } ------------------------------ -- CHOOSE GAME LAYOUT ------------------------------ require( "Frontend/FE_ChooseGame.lua" ) ------------------------------ -- CHOOSE SONG LAYOUT ------------------------------ require( "Frontend/FE_ChooseSong.lua" ) ------------------------------ -- AUDIO SETTINGS LAYOUT ------------------------------ FEAudioLayoutName = "FEAudioSettingsLayout" FEAudioFileName = "FE_options_audioSettings" LYTLayout.Setup{ name = FEAudioLayoutName, archiveName = "Frontend/"..FEAudioFileName..".arc", layoutName = FEAudioFileName..".brlyt", additionalFonts="GlobalFontPack" } LYTAnimation.Setup{ name="FE_audioSettings_entry", layoutCmp=FEAudioLayoutName, animName= FEAudioFileName.."_menu_entry.brlan" } LYTAnimation.Setup{ name="FE_audioSettings_exit", layoutCmp=FEAudioLayoutName, animName= FEAudioFileName.."_menu_exit.brlan" } LYTPane.Setup{ name = "SFX_Dn_null", paneName = "btnSFX_minus", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "Music_Dn_null", paneName = "btnMusic_minus", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "Mic_Dn_null", paneName = "btnMic_minus", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "SFX_Up_null", paneName = "btnSFX_plus", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "Music_Up_null", paneName = "btnMusic_plus", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "Mic_Up_null", paneName = "btnMic_plus", layoutCmp = FEAudioLayoutName } LYTTextPane.Setup{ name = "SFX_Text", paneName = "text_sfx", layoutCmp = FEAudioLayoutName, maxNumCharacters=64 } LYTTextPane.Setup{ name = "Music_Text", paneName = "text_music", layoutCmp = FEAudioLayoutName, maxNumCharacters=64 } LYTTextPane.Setup{ name = "Mic_Text", paneName = "text_microphone",layoutCmp = FEAudioLayoutName, maxNumCharacters=64 } LYTPane.Setup{ name = "SFX_animPane", paneName = "bg_sfx_barFill", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "music_animPane", paneName = "bg_music_barFill", layoutCmp = FEAudioLayoutName } LYTPane.Setup{ name = "mic_animPane", paneName = "bg_mic_barFill", layoutCmp = FEAudioLayoutName } LYTAnimation.Setup{ name="FE_audioSettings_sfx", layoutCmp=FEAudioLayoutName, paneCmp = "SFX_animPane", animName= FEAudioFileName.."_sfx_volumeAnim.brlan" } LYTAnimation.Setup{ name="FE_audioSettings_music", layoutCmp=FEAudioLayoutName, paneCmp = "music_animPane", animName= FEAudioFileName.."_music_volumeAnim.brlan" } LYTAnimation.Setup{ name="FE_audioSettings_mic", layoutCmp=FEAudioLayoutName, paneCmp = "mic_animPane", animName= FEAudioFileName.."_microphone_volumeAnim.brlan" } --------------------------- -- audio options +/- button ----------------------------- local numVolumeButtons = 5 for idx=0, numVolumeButtons do -- 6 plates local volumeLayout = "volumeButtonLYT"..idx local volumeFileName = "FE_plate_audioOption" LYTLayout.Setup{ name = volumeLayout, archiveName = "Frontend/"..volumeFileName..".arc", layoutName = volumeFileName..".brlyt", additionalFonts="GlobalFontPack" } local volumeBase = "volumeBtn"..idx.."_" LYTPane.Setup{ name = volumeBase.."Root", paneName = "animMaster", layoutCmp = volumeLayout } LYTPane.Setup{ name = volumeBase.."NA", paneName = "audioBtn_na", layoutCmp = volumeLayout } LYTPane.Setup{ name = volumeBase.."Idle", paneName = "audioBtn_idle", layoutCmp = volumeLayout } LYTPane.Setup{ name = volumeBase.."Over", paneName = "audioBtn_over", layoutCmp = volumeLayout } LYTPane.Setup{ name = volumeBase.."Press", paneName = "audioBtn_press", layoutCmp = volumeLayout } LYTTextPane.Setup{ name=volumeBase.."text_na", paneName="naTxt", layoutCmp=volumeLayout, maxNumCharacters=5 } LYTTextPane.Setup{ name=volumeBase.."text_idle", paneName="idleTxt", layoutCmp=volumeLayout, maxNumCharacters=5 } LYTTextPane.Setup{ name=volumeBase.."text_over", paneName="overTxt", layoutCmp=volumeLayout, maxNumCharacters=5 } LYTTextPane.Setup{ name=volumeBase.."text_press", paneName="pressTxt", layoutCmp=volumeLayout, maxNumCharacters=5 } LYTAnimation.Setup{ name = volumeBase.."animRollOver", animName = volumeFileName.."_buttonOver_grow.brlan", paneCmp = volumeBase.."Over", layoutCmp = volumeLayout } LYTAnimation.Setup{ name = volumeBase.."animRollOff", animName = volumeFileName.."_buttonOver_shrink.brlan", paneCmp = volumeBase.."Over", layoutCmp = volumeLayout } LYTAnimation.Setup{ name = volumeBase.."animTrigger", animName = volumeFileName.."_buttonPress.brlan", paneCmp = volumeBase.."Press", layoutCmp = volumeLayout } LYTAnimation.Setup{ name= volumeBase.."entry", layoutCmp=volumeLayout, animName= volumeFileName.."_menu_entry.brlan" } LYTAnimation.Setup{ name= volumeBase.."exit", layoutCmp=volumeLayout, animName= volumeFileName.."_menu_exit.brlan" } end ------------------------------ -- FRONT END LEADERBOARDS ------------------------------ require( "Frontend/FE_Highscores.lua" ) ----------------------------------- -- UNLOCK(Minigame) SCREEN LAYOUT ---------------------------------- require( "Frontend/FE_UnlockVideos.lua" ) ------------------------------------ -- TWO TO THREE BUTTON SCREEN LAYOUT ------------------------------------ require( "Frontend/FE_Extras.lua" ) ----------------------------------- -- TRANSITIONS FOR SCREENS ---------------------------------- Csi.BeginScript( "FE_entry_screenSpecific" ) Csi.EndScript() Csi.BeginScript( "FE_exit_screenSpecific" ) Csi.EndScript()