Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 private void SelectItemComponent(ShopSuperSectionItemComponent itemComponent)
 {
     this.mSelectedItemComponent.IsSelected = false;
     this.mSelectedItemComponent = itemComponent;
     this.mSelectedItemComponent.IsSelected = true;
 }
Ejemplo n.º 4
0
        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;
        }