public bool forceSessionRestart = false; // This is set to true when we are hosting a shring session // and the session must be aborted for any reason. When // this is true we start hosting a new session just as if // the user had done so. // c'tor public Shared(ShareHub parent) { this.parent = parent; // Set up the camera for the right screen size // to match the rendertarget we use. camera.Resolution = new Point(1280, 720); }
public RenderObj(ShareHub parent, Shared shared) { this.shared = shared; this.parent = parent; tile1Blob = new TextBlob(UI2D.Shared.GetGameFont20, Strings.Localize("shareHub.invite"), 365); tile2Blob = new TextBlob(UI2D.Shared.GetGameFont20, Strings.Localize("shareHub.start"), 435); }
public ShareHub() { ShareHub.Instance = this; shared = new Shared(this); // Create the RenderObject and UpdateObject parts of this mode. updateObj = new UpdateObj(this, shared); renderObj = new RenderObj(this, shared); openingSharingRoomMessage = new ModularMessageDialog( Strings.Localize("shareHub.messageOpeningSharingRoom"), null, null, null, null, null, null, null, null); openingInviteGuideMessage = new ModularMessageDialog( Strings.Localize("shareHub.messageOpeningInviteGuide"), null, null, null, null, null, null, null, null); } // end of MainMenu c'tor
public UpdateObj(ShareHub parent, Shared shared) { this.parent = parent; this.shared = shared; }