public ShopSuperSectionScreen() { // // mMenuButtonBuy // this.mMenuButtonBuy.Text = "Buy"; this.mMenuButtonBuy.Click += this.MenuButtonBuy_Click; // // mMenuButtonBack // this.mMenuButtonBack.Text = "Back"; this.mMenuButtonBack.Click += this.MenuButtonBack_Click; // // mMenuButtonBack // this.mSelectedItemComponent = this.mTopSuperItemComponent; this.mSelectedItemComponent.IsSelected = true; }
private void PopulateItemComponent(ShopSuperSectionItemComponent itemComponent, MetaSuper super) { System.Diagnostics.Debug.Assert(itemComponent != null); System.Diagnostics.Debug.Assert(super != null); itemComponent.Tag = super; itemComponent.NameText = super.Name; itemComponent.DescriptionText = super.Description; itemComponent.IconTint = Color.White; itemComponent.Price = super.PurchasePrice; }
private void SelectItemComponent(ShopSuperSectionItemComponent itemComponent) { this.mSelectedItemComponent.IsSelected = false; this.mSelectedItemComponent = itemComponent; this.mSelectedItemComponent.IsSelected = true; }
private void PopulateItemComponent(ShopSuperSectionItemComponent itemComponent, MetaSuperPaint superPaint) { System.Diagnostics.Debug.Assert(itemComponent != null); System.Diagnostics.Debug.Assert(superPaint != null); itemComponent.Tag = superPaint; itemComponent.NameText = superPaint.Name; itemComponent.DescriptionText = superPaint.Description; itemComponent.IconTint = new Color( superPaint.ColorValueR, superPaint.ColorValueG, superPaint.ColorValueB, superPaint.ColorValueA); itemComponent.Price = superPaint.PurchasePrice; }