local FE_leaderboardName = "FE_leaderboardLayout" local FE_leaderboardFileName = "FE_leaderboard" LYTLayout.Setup{ name = FE_leaderboardName, archiveName = "Frontend/"..FE_leaderboardFileName..".arc", layoutName = FE_leaderboardFileName..".brlyt", additionalFonts="GlobalFontPack" } --get root pane so we can nick the rotation LYTPane.Setup{ name = "FE_leaderboardRoot", paneName = "targetPosAdjust", layoutCmp = FE_leaderboardName } for idx=1, 3 do LYTPane.Setup{ name = "FE_leaderboardLocator"..idx-1, paneName = "leaderB_pos"..idx, layoutCmp = FE_leaderboardName } end LYTTextPane.Setup{ name = "FE_leaderboard_songName", paneName = "textSongName", layoutCmp = FE_leaderboardName, maxNumCharacters=50 } LYTTextPane.Setup{ name = "FE_leaderboard_gameName", paneName = "textGameName", layoutCmp = FE_leaderboardName, maxNumCharacters=50 } LYTAnimation.Setup{ name=FE_leaderboardName.."_entry", layoutCmp=FE_leaderboardName, animName=FE_leaderboardFileName.."_menu_entry.brlan" } LYTAnimation.Setup{ name=FE_leaderboardName.."_exit", layoutCmp=FE_leaderboardName, animName=FE_leaderboardFileName.."_menu_exit.brlan" } ------------------------- -- LEADERBOARD ENTRIES ------------------------- local numLeaderBoardEntries = 3 local LBEntryBase = "LBEntry_" local LBEntryLayout = "LBEntryLayout" for idx = 1, numLeaderBoardEntries do LYTLayout.Setup{ name = LBEntryLayout..idx, layoutName = "FE_leaderboardPanes" } LYTPane.Setup{ name = LBEntryBase.."root"..idx, paneName = "animMaster", layoutCmp = LBEntryLayout..idx } LYTPane.Setup{ name = LBEntryBase.."avatar"..idx, paneName = "avatar_REPLACE", layoutCmp = LBEntryLayout..idx } LYTTextPane.Setup{ name = LBEntryBase.."pos_text"..idx, paneName = "positionTxt_FL", layoutCmp = LBEntryLayout..idx, maxNumCharacters = 30, outlinePaneName = "positionTxt_ST" } LYTTextPane.Setup{ name = LBEntryBase.."score_text"..idx, paneName = "scoreTxt_FL", layoutCmp = LBEntryLayout..idx, maxNumCharacters = 30, outlinePaneName = "scoreTxt_ST" } LYTAnimation.Setup{ name= "LBEntry"..idx.."_entry", layoutCmp=LBEntryLayout..idx, animName= "FE_leaderboardPanes_menu_entry" } LYTAnimation.Setup{ name= "LBEntry"..idx.."_exit", layoutCmp=LBEntryLayout..idx, animName= "FE_leaderboardPanes_menu_exit" } end