protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as TestViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); CoreGameRootViewModel coreGame = model as CoreGameRootViewModel; coreGame.LBRoom = Network.Client.CurrentRoom; coreGame.PlayerName = Network.Client.PlayerName; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as SubScreenViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var subscreenview = ((SubScreenViewModel)model); subscreenview.IsActive = this._IsActive; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as DebugInfoPanelViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var debuginfopanelview = ((DebugInfoPanelViewModel)model); debuginfopanelview.Text = this._Text; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as MainMenuRootViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var mainmenurootview = ((MainMenuRootViewModel)model); mainmenurootview.CurrentScreenType = this._CurrentScreenType; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as LobbyPanelViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var lobbypanelview = ((LobbyPanelViewModel)model); lobbypanelview.RoomId = this._RoomId; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as OutOfGameRootViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var outofgamerootview = ((OutOfGameRootViewModel)model); outofgamerootview.CanvasRoot = this._CanvasRoot == null ? null : ViewService.FetchViewModel(this._CanvasRoot) as CanvasRootViewModel; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as TodoItemViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var todoitemview = ((TodoItemViewModel)model); todoitemview.Content = this._Content; todoitemview.Finished = this._Finished; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as RoomPanelViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var roompanelview = ((RoomPanelViewModel)model); roompanelview.RoomPropertiesJson = this._RoomPropertiesJson; roompanelview.EventParamsJson = this._EventParamsJson; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as UserViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var mainmenuuserview = ((UserViewModel)model); mainmenuuserview.AuthorizationState = this._AuthorizationState; mainmenuuserview.Username = this._Username; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as UIPlayerInfoViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var uiplayerinfoview = ((UIPlayerInfoViewModel)model); uiplayerinfoview.Title = this._Title; uiplayerinfoview.Username = this._Username; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as GameHUDViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var gamehudview = ((GameHUDViewModel)model); gamehudview.TimeLimit = this._TimeLimit; gamehudview.Score = this._Score; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as EntityViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var entityview = ((EntityViewModel)model); entityview.Name = this._Name; entityview.Position = this._Position; entityview.Health = this._Health; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as LoginScreenViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var loginscreenview = ((LoginScreenViewModel)model); loginscreenview.Username = this._Username; loginscreenview.Password = this._Password; loginscreenview.ErrorMessage = this._ErrorMessage; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as TodoListViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var todolistview = ((TodoListViewModel)model); todolistview.TodoContent = this._TodoContent; todolistview.PageType = this._PageType; todolistview.TodoEditor = this._TodoEditor == null ? null : ViewService.FetchViewModel(this._TodoEditor) as TodoEditorViewModel; todolistview.EventMask = this._EventMask == null ? null : ViewService.FetchViewModel(this._EventMask) as EventMaskViewModel; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as TodoEditorViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var todoeditorview = ((TodoEditorViewModel)model); todoeditorview.TodoContent = this._TodoContent; todoeditorview.State = this._State; todoeditorview.TodoItem = this._TodoItem == null ? null : ViewService.FetchViewModel(this._TodoItem) as TodoItemViewModel; todoeditorview.OriginContent = this._OriginContent; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as TestViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var testview = ((TestViewModel)model); testview.Name = this._Name; testview.IsAmazing = this._IsAmazing; testview.Complex = this._Complex; testview.Reference = this._Reference; testview.SomeUnityType = this._SomeUnityType; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as CubeViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var cubeview = ((CubeViewModel)model); cubeview.Id = this._Id; cubeview.Type = this._Type; cubeview.Point = this._Point; cubeview.AddTime = this._AddTime; cubeview.Expire = this._Expire; }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector. // var vm = model as PlayerItemViewModel; // This method is invoked when applying the data from the inspector to the viewmodel. Add any view-specific customizations here. var playeritemview = ((PlayerItemViewModel)model); playeritemview.ActerId = this._ActerId; playeritemview.Name = this._Name; playeritemview.Ready = this._Ready; playeritemview.Player = this._Player; playeritemview.IsLocal = this._IsLocal; }
private static void DoViewModelGUI(ViewModel t) { if (t == null) { return; } var properties = t.GetViewModelProperties(); foreach (var property in properties) { var type = property.Property.ValueType; DoViewModelProperty(type, property); } }
public override void DisposingViewModel(uFrame.MVVM.ViewModel viewModel) { base.DisposingViewModel(viewModel); UserViewModelManager.Remove(viewModel); }
public override void Initialize(uFrame.MVVM.ViewModel viewModel) { base.Initialize(viewModel); // This is called when a viewmodel is created this.InitializeUser(((UserViewModel)(viewModel))); }
private static void DoViewModelGUI(ViewModel t) { if (t == null) return; var properties = t.GetViewModelProperties(); foreach (var property in properties) { var type = property.Property.ValueType; DoViewModelProperty(type, property); } }
protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) { base.InitializeViewModel(model); }
public override uFrame.MVVM.ViewBase PanelCollectionCreateView(uFrame.MVVM.ViewModel viewModel) { return(InstantiateView(viewModel)); }
public virtual uFrame.MVVM.ViewBase ScreensCreateView(uFrame.MVVM.ViewModel viewModel) { return(InstantiateView(viewModel)); }
public override void DisposingViewModel(uFrame.MVVM.ViewModel viewModel) { base.DisposingViewModel(viewModel); LevelSelectScreenViewModelManager.Remove(viewModel); }
public override void Initialize(uFrame.MVVM.ViewModel viewModel) { base.Initialize(viewModel); // This is called when a viewmodel is created this.InitializeMainMenuRoot(((MainMenuRootViewModel)(viewModel))); }
public override uFrame.MVVM.ViewBase HandCardsCreateView(uFrame.MVVM.ViewModel viewModel) { GameObject prefab = Resources.Load <GameObject> ("_Card_Blue_"); return(InstantiateView(prefab, viewModel)); }
public override uFrame.MVVM.ViewBase ScreensCreateView(uFrame.MVVM.ViewModel viewModel) { return(InstantiateView(viewModel)); }
public virtual uFrame.MVVM.ViewBase PlayerItemsCreateView(uFrame.MVVM.ViewModel viewModel) { return(InstantiateView(viewModel)); }