public CoreGameScreen() : base() { StateChanges = new Queue <SimConnectStateChange>(); /** * Music */ HITVM.Get().PlaySoundEvent(UIMusic.Map); /*VMDebug = new UIButton() * { * Caption = "Simantics", * Y = 45, * Width = 100, * X = GlobalSettings.Default.GraphicsWidth - 110 * }; * VMDebug.OnButtonClick += new ButtonClickDelegate(VMDebug_OnButtonClick); * this.Add(VMDebug);*/ /*SaveHouseButton = new UIButton() * { * Caption = "Save House", * Y = 10, * Width = 100, * X = GlobalSettings.Default.GraphicsWidth - 110 * }; * SaveHouseButton.OnButtonClick += new ButtonClickDelegate(SaveHouseButton_OnButtonClick); * this.Add(SaveHouseButton);*/ ucp = new UIUCP(this); ucp.Y = ScreenHeight - 210; ucp.SetInLot(false); ucp.UpdateZoomButton(); ucp.MoneyText.Caption = "0";// PlayerAccount.Money.ToString(); this.Add(ucp); gizmo = new UIGizmo(); gizmo.BindController <GizmoController>(); gizmo.X = ScreenWidth - 430; gizmo.Y = ScreenHeight - 230; this.Add(gizmo); Title = new UIGameTitle(); Title.SetTitle(""); this.Add(Title); this.Add(FSOFacade.MessageController); MessageTray = new UIMessageTray(); MessageTray.X = ScreenWidth - 70; MessageTray.Y = 12; this.Add(MessageTray); WindowContainer = new UIContainer(); Add(WindowContainer); PersonPage = new UIPersonPage(); PersonPage.Visible = false; PersonPage.BindController <PersonPageController>(); WindowContainer.Add(PersonPage); LotPage = new UILotPage(); LotPage.Visible = false; LotPage.BindController <LotPageController>(); WindowContainer.Add(LotPage); Bookmarks = new UIBookmarks(); Bookmarks.Visible = false; Bookmarks.BindController <BookmarksController>(); WindowContainer.Add(Bookmarks); Relationships = new UIRelationshipDialog(); Relationships.Visible = false; Relationships.BindController <RelationshipDialogController>(); WindowContainer.Add(Relationships); }
public LotPageController(UILotPage view, IClientDataService dataService) { this.View = view; this.DataService = dataService; this.Topic = dataService.CreateTopicSubscription(); }