public override Pod SetupState(ProgramContext ProgramContext, ProgramStateContext ProgramStateContext) { var screen = new LandingScreen(ProgramContext.ScreenResolution); screen.LocalMatchButton.OnClick += HandleLocalMatch; screen.HostMatchButton.OnClick += HandleHostMatch; screen.LocalMatchRecordButton.OnClick += HandleLocalMatchRecord; screen.EditButton.OnClick += HandleEdit; screen.ScenarioBuilderButton.OnClick += HandleBuildScenario; screen.JoinServerButton.OnClick += HandleJoinServer; screen.StartServerButton.OnClick += HandleStartServer; _Controller = new LandingController(screen); _Controller.OnConnectionSetup += HandleJoinRemoteMatch; return(screen); }
public LandingController(LandingScreen LandingScreen) { _LandingScreen = LandingScreen; _LandingScreen.JoinRemoteMatchButton.OnClick += HandleRemoteConnectionSetup; }