Exemplo n.º 1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            ChangeState(ControlState.Compact);
            HomeButton.SetText("Home");
            QuitButton.SetText("Sair");
            AlbumButton.SetText("Álbum");
            MinigameButton.SetText("Minigame");
            SettingsButton.SetText("Configurações");
            //ShopButton.SetText("Loja de Figurinhas");
            NewStickerButton.SetText("Forja de Figurinhas");
            SaveButton.SetText("Salvar");
            GiftButton.SetText("Recompensa Diária!");

            if (DesignerProperties.GetIsInDesignMode(this))
            {
                return;
            }
            QuitButton.SetIcon(Sprite.Get(IconType.Exit));
            HomeButton.SetIcon(Sprite.Get(IconType.Home));
            MinigameButton.SetIcon(Sprite.Get(IconType.Gamepad));
            SettingsButton.SetIcon(Sprite.Get(IconType.Settings));
            NewStickerButton.SetIcon(Sprite.Get(IconType.AddItem));
            //ShopButton.SetIcon(Sprite.Get(IconType.ShoppingBasket, IconColor.White));
            AlbumButton.SetIcon(Sprite.Get(IconType.StickerCollection));
            SaveButton.SetIcon(Sprite.Get(IconType.Save));
            GiftButton.SetIcon(Sprite.Get(IconType.NewWarning));

            if (DateTime.Today > GameMaster.Player.LastGift)
            {
                GiftButton.Visibility = Visibility.Visible;
            }
            else
            {
                GiftButton.Visibility = Visibility.Hidden;
            }
        }