public override void Show() { currentSelectionWeaponIndex = 0; weaponScroller.Clear(); weaponScroller.SetImageSpacing(AutoRect.AutoSize(WeaponsLogoTexturePosition.WeaponLogoSpacing)); for (int i = 0; i < weaponList.Count; i++) { if (weaponList[i].Exist == WeaponExistState.Owned) { UIImage uiImage = new UIImage(); TexturePosInfo info = WeaponsLogoTexturePosition.GetWeaponTextureRect(i); uiImage.SetTexture(info.m_Material, info.m_TexRect); weaponScroller.Add(uiImage); } } weaponScroller.EnableScroll(); Material shopMaterial = UIResourceMgr.GetInstance().GetMaterial("ShopUI"); weaponScroller.AddOverlay(shopMaterial, new Rect(720, 610, 160, 75)); Material avatarLogoMaterial = UIResourceMgr.GetInstance().GetMaterial("Avatar"); weaponScroller.SetMaskImage(avatarLogoMaterial, AvatarTexturePosition.Mask); weaponScroller.Show(); base.Show(); avatarFrame.ChangeAvatar(GameApp.GetInstance().GetGameState().Avatar); avatarFrame.Show(); cashPanel.SetCash(gameState.GetCash()); UpdateWeaponInfo(); weaponInfoPanel.Show(); }