Community Curator/Source/TSWRes BGs1

-- CommunityBGs --

-- Community Intro function Draw.BGs.CommunityIntro draw.clear(Col255(16, 16, 24)) draw.string("Welcome to the Community Moon!", 69, 24, draw.white) draw.string("Here you can go online and enter the community, ", 33, 63, draw.white) draw.string("download and publish levels, make friends, and more!", 33, 79, draw.white) end

function Draw.BGs.CommunityIntro1 draw.clear(Col255(16, 16, 24)) draw.string("Features!", 69, 24, draw.white) draw.string("Search for Levels, Players, and Objects.", 33, 63, draw.white) draw.string("Check the recent activtity, add friends, and check the news.", 33, 79, draw.white) draw.string("Purchase Content from the store, and rate levels!", 33, 90, draw.white) draw.string("Check the LBP Picks. They are the best levels around.", 33, 110, draw.white) Stickers["LBPPickedLevel"](32, 200, 32)

draw.string("Coming soon!", 33, 256, draw.white) end

function Draw.BGs.CommunityConnectProg draw.clear(Col255(16, 16, 24)) draw.fillroundedrect(48, 48, SizeX-48, SizeY-48, 4, PlayCol1) draw.line(48, 96, SizeX-48, 96, draw.white) draw.setfont("Arial", 22) draw.string("Connecting to Community Moon..."..Community.ConnectProg.."%", 48, 48, draw.white) draw.setfont("Arial", 16) draw.string(Community.ConnectStage, 48, 98, draw.white) Draw.ProgressBar(Community.ConnectProg/100, 48, SizeY-120, (SizeX-(48)), SizeY-90) end

function Draw.BGs.CommunityOfflineMenu draw.clear(Col255(16, 16, 24)) Draw.PodButton("Back", 24, SizeY - 64, 128, SizeY - 32, PlayCol1) Draw.PodButton("Connect!", 24, 64, 128, 96, PlayCol1) CL = Community.SavedFile.SFJSON["CommunityLevels"] if CL then DrCo.PlayerIcon(160, 48, 48, SavedFile.SFJSON["Icon"]) if CL["Levels"] > 0 then Draw.PodButton("Levels", 24, 64, 128, 96, PlayCol1) end end end

function Draw.CInfoBox draw.setfont("Arial", 16) local InfoBox = CommunityPage["InfoBox"] draw.fillrect(48, 48, SizeX-200, SizeY-48, PlayCol2) for i=1, #InfoBox do     draw.string(InfoBox[i], 48, 48 + (16*(i-1)), draw.white) end end

function Draw.BGs.CommunityOnlineMenuHome draw.clear(Col255(16, 98, 24)) draw.fillrect(SizeX-180, 0, SizeX, SizeY, PlayCol1) Draw.CInfoBox draw.setfont("Arial", 24) draw.string("Current News", SizeX-180, 0, draw.white) draw.string("Levels", SizeX-180, HS, draw.white) draw.string("Friends", SizeX-180, HS*2, draw.white) draw.string("Activity", SizeX-180, HS*3, draw.white) draw.string("Store", SizeX-180, HS*4, draw.white) draw.string("Sign Out", SizeX-180, SizeY-HS, draw.white) draw.setfont("Arial", 16) Draw.PodButton("", 0, 0, 48, 48, PlayCol1) Draw.PodButton("Signed in as "..Community.Username, 48, 0, 256, 32, PlayCol1) DrCo.PlayerIcon(64, 16, 16, SavedFile.SFJSON["Icon"]) draw.line(0,0,48,48,draw.red) draw.line(48,0,0,48,draw.red) Draw.PodButton("Search", 0, SizeY-32, 256, SizeY, PlayCol1) end

function Draw.BGs.CommunityOnlineMenuHomeSO draw.clear(Col255(16, 98, 24)) draw.fillrect(SizeX-180, 0, SizeX, SizeY, PlayCol1) Draw.CInfoBox draw.setfont("Arial", 24) draw.string("Current News", SizeX-180, 0, draw.white) draw.string("Levels", SizeX-180, 48, draw.white) draw.string("Activity", SizeX-180, 48*2, draw.white) draw.string("Sign In", SizeX-180, SizeY-96, draw.white) draw.string("Register", SizeX-180, SizeY-48, draw.white) draw.setfont("Arial", 16) Draw.PodButton("", 0, 0, 48, 48, PlayCol1) Draw.PodButton("Signed Out", 48, 0, 256, 32, PlayCol1) draw.line(0,0,48,48,draw.red) draw.line(48,0,0,48,draw.red) end

function Draw.BGs.PlayIconsMenu draw.clear(Col255(128, 164, 255)) draw.fillroundedrect(32, 32, SizeX-32, SizeY-32, 4, draw.black) Draw.PodButton("", 32, 32, 64, 64, PlayCol1) draw.line(32,32,64,64,draw.red) draw.line(64,32,32,64,draw.red) Draw.PrintPlayIcons(PlayIcons, 32, 64, SizeX-64,SizeY-32) end

function Draw.BGs.CommunityOnlineMenuNews draw.clear(Col255(16, 98, 24)) draw.fillrect(SizeX-360, 0, SizeX, SizeY, PlayCol1) draw.string("News:", SizeX-360, 16, draw.white) Draw.PodButton("Back", 0, 0, 48, 48, PlayCol1) end

function Draw.BGs.CommunityOnlineMenuLevels draw.clear(Col255(16, 98, 24)) draw.fillrect(SizeX-180, 0, SizeX, SizeY, PlayCol1) draw.string("Levels:", SizeX-180, 16, draw.white) Draw.PodButton("Back", 0, 0, 48, 48, PlayCol1) Draw.PodButton(Community.Username, 48, 0, 180, 32, PlayCol1) Draw.PodButton("Levels", 180, 0, 256, 32, PlayCol1) end

return