local namePrefix = "FEChooseGame_" local layoutName = namePrefix .. "Layout" LYTLayout.Setup { name = layoutName, layoutName = "FE_chooseScreen" } -- Details LYTPane.Setup { name = namePrefix .. "MiniGamePane", paneName = "Text_miniGame", layoutCmp = layoutName } LYTTextPane.Setup { name = namePrefix .. "NameText", paneName = "GameName_FL", maxNumCharacters = 100, layoutCmp = layoutName } LYTTextPane.Setup { name = namePrefix .. "DetailText", paneName = "GameDetails_FL", maxNumCharacters = 200, layoutCmp = layoutName } -- Unused Panes LYTPane.Setup { name = namePrefix .. "SongPane", paneName = "Text_danceMode", layoutCmp = layoutName } LYTPane.Setup { name = namePrefix .. "ScrollPane", paneName = "01", layoutCmp = layoutName } -- Selection Buttons local buttonIdx for buttonIdx = 1, 8 do local buttonNamePostfix = string.format( "Button%02d_", buttonIdx ) -- Button Panes LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Root", paneName = string.format( "s%02d", buttonIdx ), layoutCmp = layoutName } LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Selected", paneName = string.format( "s%02d_selected", buttonIdx ), layoutCmp = layoutName } LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Idle", paneName = string.format( "s%02d_idle", buttonIdx ), layoutCmp = layoutName } LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Hover", paneName = string.format( "s%02d_hover", buttonIdx ), layoutCmp = layoutName } LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Press", paneName = string.format( "s%02d_select", buttonIdx ), layoutCmp = layoutName } LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "NA", paneName = string.format( "s%02d_na", buttonIdx ), layoutCmp = layoutName } -- Game LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Game", paneName = string.format( "s%02d_game", buttonIdx ), layoutCmp = layoutName } LYTPicturePane.Setup{ name = namePrefix .. buttonNamePostfix .. "GameImage", paneName = string.format( "s%02d_gameSwap", buttonIdx ), layoutCmp = layoutName } -- Locked LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Locked", paneName = string.format( "s%02d_locked", buttonIdx ), layoutCmp = layoutName } -- Unused LYTPane.Setup{ name = namePrefix .. buttonNamePostfix .. "Record", paneName = string.format( "s%02d_record", buttonIdx ), layoutCmp = layoutName } LYTPicturePane.Setup{ name = namePrefix .. buttonNamePostfix .. "RecordImage", paneName = string.format( "s%02d_swap", buttonIdx ), layoutCmp = layoutName } end