| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | | using UnityEngine.UI; |
| | 4 | | using TMPro; |
| | 5 | | using DCL; |
| | 6 | | using DCL.Helpers; |
| | 7 | | using DCL.Helpers.NFT; |
| | 8 | | using DCL.Interface; |
| | 9 | | using System.Collections; |
| | 10 | |
|
| | 11 | | internal interface INFTPromptHUDView : IDisposable |
| | 12 | | { |
| | 13 | | event Action OnOwnerLabelPointerEnter; |
| | 14 | | event Action OnOwnerLabelPointerExit; |
| | 15 | | event Action OnOwnersTooltipFocusLost; |
| | 16 | | event Action OnOwnersTooltipFocus; |
| | 17 | | event Action OnViewAllPressed; |
| | 18 | | event Action OnOwnersPopupClosed; |
| | 19 | | void SetActive(bool active); |
| | 20 | | bool IsActive(); |
| | 21 | | IOwnersTooltipView GetOwnersTooltip(); |
| | 22 | | IOwnersPopupView GetOwnersPopup(); |
| | 23 | | OwnerInfoElement GetOwnerElementPrefab(); |
| | 24 | | void SetLoading(); |
| | 25 | | void SetNFTInfo(NFTInfoSingleAsset info, string comment); |
| | 26 | | void OnError(string error); |
| | 27 | | } |
| | 28 | |
|
| | 29 | | internal class NFTPromptHUDView : MonoBehaviour, INFTPromptHUDView |
| | 30 | | { |
| | 31 | | private const string MULTIPLE_OWNERS_FORMAT = "{0} owners"; |
| | 32 | | private const int ADDRESS_MAX_CHARS = 11; |
| | 33 | |
|
| | 34 | | public event Action OnOwnerLabelPointerEnter; |
| | 35 | | public event Action OnOwnerLabelPointerExit; |
| | 36 | | public event Action OnOwnersTooltipFocusLost; |
| | 37 | | public event Action OnOwnersTooltipFocus; |
| | 38 | | public event Action OnViewAllPressed; |
| | 39 | | public event Action OnOwnersPopupClosed; |
| | 40 | |
|
| | 41 | | [SerializeField] internal GameObject content; |
| | 42 | | [SerializeField] internal GameObject nftContent; |
| | 43 | | [SerializeField] internal GameObject mainErrorFeedbackContent; |
| | 44 | | [SerializeField] internal GameObject imageErrorFeedbackContent; |
| | 45 | |
|
| | 46 | | [SerializeField] RawImage imageNft; |
| | 47 | | [SerializeField] Image imageNftBackground; |
| | 48 | | [SerializeField] TextMeshProUGUI textNftName; |
| | 49 | | [SerializeField] TextMeshProUGUI textOwner; |
| | 50 | | [SerializeField] TextMeshProUGUI textMultipleOwner; |
| | 51 | | [SerializeField] UIHoverCallback multipleOwnersContainer; |
| | 52 | |
|
| | 53 | | [Header("Last Sale")] [SerializeField] TextMeshProUGUI textLastSaleSymbol; |
| | 54 | | [SerializeField] TextMeshProUGUI textLastSalePrice; |
| | 55 | | [SerializeField] TextMeshProUGUI textLastSaleNeverSold; |
| | 56 | |
|
| | 57 | | [Header("Price")] [SerializeField] TextMeshProUGUI textPriceSymbol; |
| | 58 | | [SerializeField] TextMeshProUGUI textPrice; |
| | 59 | | [SerializeField] TextMeshProUGUI textPriceNotForSale; |
| | 60 | |
|
| | 61 | | [Header("Description & Comment")] |
| | 62 | | [SerializeField] |
| | 63 | | TextMeshProUGUI textDescription; |
| | 64 | |
|
| | 65 | | [SerializeField] TextMeshProUGUI textComment; |
| | 66 | | [SerializeField] GameObject containerDescription; |
| | 67 | | [SerializeField] GameObject containerComment; |
| | 68 | |
|
| | 69 | | [Header("Spinners")] [SerializeField] GameObject spinnerGeneral; |
| | 70 | | [SerializeField] GameObject spinnerNftImage; |
| | 71 | |
|
| | 72 | | [Header("Buttons")] [SerializeField] internal Button buttonClose; |
| | 73 | | [SerializeField] internal Button buttonCancel; |
| | 74 | | [SerializeField] internal Button buttonOpenMarket; |
| | 75 | | [SerializeField] TextMeshProUGUI textOpenMarketButton; |
| | 76 | |
|
| | 77 | | [Header("Owners")] |
| | 78 | | [SerializeField] internal OwnerInfoElement ownerElementPrefab; |
| | 79 | | [SerializeField] internal OwnersTooltipView ownersTooltip; |
| | 80 | | [SerializeField] internal OwnersPopupView ownersPopup; |
| | 81 | |
|
| | 82 | | Coroutine fetchNFTImageRoutine = null; |
| | 83 | |
|
| | 84 | | private IPromiseLike_TextureAsset imagePromise = null; |
| | 85 | | private GifPlayer gifPlayer = null; |
| | 86 | |
|
| | 87 | | private string nftTokenId; |
| | 88 | | bool backgroundColorSet = false; |
| | 89 | | string marketUrl = null; |
| | 90 | |
|
| | 91 | | private bool isDestroyed = false; |
| | 92 | |
|
| | 93 | | private void Awake() |
| | 94 | | { |
| 7 | 95 | | name = "_NFTPromptHUD"; |
| | 96 | |
|
| 7 | 97 | | buttonClose.onClick.AddListener(Hide); |
| 7 | 98 | | buttonCancel.onClick.AddListener(Hide); |
| 7 | 99 | | buttonOpenMarket.onClick.AddListener(OpenMarketUrl); |
| | 100 | |
|
| 7 | 101 | | multipleOwnersContainer.OnPointerEnter += OwnerLabelPointerEnter; |
| 7 | 102 | | multipleOwnersContainer.OnPointerExit += OwnerLabelPointerExit; |
| 7 | 103 | | ownersTooltip.OnViewAllPressed += OnViewAllOwnersPressed; |
| 7 | 104 | | ownersTooltip.OnFocusLost += OnOwnersTooltipLostFocus; |
| 7 | 105 | | ownersTooltip.OnFocus += OnOwnersTooltipGainFocus; |
| 7 | 106 | | ownersPopup.OnClosePopup += OnOwnersPopupClose; |
| 7 | 107 | | } |
| | 108 | |
|
| | 109 | | public void Dispose() |
| | 110 | | { |
| 7 | 111 | | if (!isDestroyed) |
| | 112 | | { |
| 7 | 113 | | Destroy(gameObject); |
| | 114 | | } |
| 7 | 115 | | } |
| | 116 | |
|
| | 117 | | internal void Hide() |
| | 118 | | { |
| 1 | 119 | | content.SetActive(false); |
| | 120 | |
|
| 1 | 121 | | ForgetPromises(); |
| | 122 | |
|
| 1 | 123 | | if (fetchNFTImageRoutine != null) |
| 0 | 124 | | StopCoroutine(fetchNFTImageRoutine); |
| | 125 | |
|
| 1 | 126 | | fetchNFTImageRoutine = null; |
| | 127 | |
|
| 1 | 128 | | AudioScriptableObjects.dialogClose.Play(true); |
| 1 | 129 | | } |
| | 130 | |
|
| 1 | 131 | | IOwnersPopupView INFTPromptHUDView.GetOwnersPopup() { return ownersPopup; } |
| | 132 | |
|
| 1 | 133 | | IOwnersTooltipView INFTPromptHUDView.GetOwnersTooltip() { return ownersTooltip; } |
| | 134 | |
|
| 16 | 135 | | void INFTPromptHUDView.SetActive(bool active) { content.SetActive(active); } |
| | 136 | |
|
| 1 | 137 | | bool INFTPromptHUDView.IsActive() { return content.activeSelf; } |
| | 138 | |
|
| 7 | 139 | | OwnerInfoElement INFTPromptHUDView.GetOwnerElementPrefab() { return ownerElementPrefab; } |
| | 140 | |
|
| | 141 | | void INFTPromptHUDView.SetLoading() |
| | 142 | | { |
| 1 | 143 | | Show(); |
| | 144 | |
|
| 1 | 145 | | if (fetchNFTImageRoutine != null) |
| 0 | 146 | | StopCoroutine(fetchNFTImageRoutine); |
| | 147 | |
|
| 1 | 148 | | imageNftBackground.color = Color.white; |
| | 149 | |
|
| 1 | 150 | | imageNft.gameObject.SetActive(false); |
| 1 | 151 | | textNftName.gameObject.SetActive(false); |
| 1 | 152 | | textOwner.gameObject.SetActive(false); |
| 1 | 153 | | multipleOwnersContainer.gameObject.SetActive(false); |
| 1 | 154 | | textLastSaleSymbol.gameObject.SetActive(false); |
| 1 | 155 | | textLastSalePrice.gameObject.SetActive(false); |
| 1 | 156 | | textLastSaleNeverSold.gameObject.SetActive(false); |
| 1 | 157 | | textPriceSymbol.gameObject.SetActive(false); |
| 1 | 158 | | textPrice.gameObject.SetActive(false); |
| 1 | 159 | | textPriceNotForSale.gameObject.SetActive(false); |
| 1 | 160 | | containerDescription.SetActive(false); |
| 1 | 161 | | containerComment.SetActive(false); |
| 1 | 162 | | buttonCancel.gameObject.SetActive(false); |
| 1 | 163 | | buttonOpenMarket.gameObject.SetActive(false); |
| | 164 | |
|
| 1 | 165 | | nftContent.SetActive(false); |
| 1 | 166 | | ShowImageLoading(false); |
| 1 | 167 | | ShowMainLoading(true); |
| 1 | 168 | | ShowMainErrorFeedback(false); |
| 1 | 169 | | } |
| | 170 | |
|
| | 171 | | void INFTPromptHUDView.SetNFTInfo(NFTInfoSingleAsset info, string comment) |
| | 172 | | { |
| 0 | 173 | | Show(); |
| | 174 | |
|
| 0 | 175 | | ShowMainLoading(false); |
| 0 | 176 | | nftContent.SetActive(true); |
| | 177 | |
|
| 0 | 178 | | nftTokenId = info.tokenId; |
| 0 | 179 | | imageNftBackground.color = Color.white; |
| 0 | 180 | | backgroundColorSet = info.backgroundColor != null; |
| 0 | 181 | | if (backgroundColorSet) |
| | 182 | | { |
| 0 | 183 | | imageNftBackground.color = info.backgroundColor.Value; |
| | 184 | | } |
| | 185 | |
|
| 0 | 186 | | textNftName.text = info.name; |
| 0 | 187 | | textNftName.gameObject.SetActive(true); |
| | 188 | |
|
| 0 | 189 | | bool hasMultipleOwners = info.owners.Length > 1; |
| 0 | 190 | | if (hasMultipleOwners) |
| | 191 | | { |
| 0 | 192 | | textMultipleOwner.text = string.Format(MULTIPLE_OWNERS_FORMAT, info.owners.Length); |
| 0 | 193 | | } |
| | 194 | | else |
| | 195 | | { |
| 0 | 196 | | textOwner.text = info.owners.Length == 1 |
| | 197 | | ? NFTPromptHUDController.FormatOwnerAddress(info.owners[0].owner, ADDRESS_MAX_CHARS) |
| | 198 | | : NFTPromptHUDController.FormatOwnerAddress("0x0000000000000000000000000000000000000000", ADDRESS_MAX_CH |
| | 199 | | } |
| 0 | 200 | | textOwner.gameObject.SetActive(!hasMultipleOwners); |
| 0 | 201 | | multipleOwnersContainer.gameObject.SetActive(hasMultipleOwners); |
| | 202 | |
|
| 0 | 203 | | if (!string.IsNullOrEmpty(info.lastSaleAmount)) |
| | 204 | | { |
| 0 | 205 | | textLastSalePrice.text = ShortDecimals(info.lastSaleAmount, 4); |
| 0 | 206 | | textLastSalePrice.gameObject.SetActive(true); |
| 0 | 207 | | } |
| | 208 | | else |
| | 209 | | { |
| 0 | 210 | | textLastSaleNeverSold.gameObject.SetActive(true); |
| | 211 | | } |
| | 212 | |
|
| 0 | 213 | | if (!string.IsNullOrEmpty(info.currentPrice)) |
| | 214 | | { |
| 0 | 215 | | textPrice.text = ShortDecimals(info.currentPrice, 4); |
| 0 | 216 | | textPrice.gameObject.SetActive(true); |
| | 217 | |
|
| 0 | 218 | | if (info.currentPriceToken != null) |
| | 219 | | { |
| 0 | 220 | | SetTokenSymbol(textPriceSymbol, info.currentPriceToken.Value.symbol); |
| | 221 | | } |
| 0 | 222 | | } |
| | 223 | | else |
| | 224 | | { |
| 0 | 225 | | textPriceNotForSale.gameObject.SetActive(true); |
| | 226 | | } |
| | 227 | |
|
| 0 | 228 | | if (info.lastSaleToken != null) |
| | 229 | | { |
| 0 | 230 | | SetTokenSymbol(textLastSaleSymbol, info.lastSaleToken.Value.symbol); |
| | 231 | | } |
| | 232 | |
|
| 0 | 233 | | if (!string.IsNullOrEmpty(info.description)) |
| | 234 | | { |
| 0 | 235 | | textDescription.text = info.description; |
| 0 | 236 | | containerDescription.SetActive(true); |
| | 237 | | } |
| | 238 | |
|
| 0 | 239 | | if (!string.IsNullOrEmpty(comment)) |
| | 240 | | { |
| 0 | 241 | | textComment.text = comment; |
| 0 | 242 | | containerComment.SetActive(true); |
| | 243 | | } |
| | 244 | |
|
| 0 | 245 | | textOpenMarketButton.text = "VIEW"; |
| 0 | 246 | | if (info.marketInfo != null) |
| | 247 | | { |
| 0 | 248 | | textOpenMarketButton.text = $"{textOpenMarketButton.text} ON {info.marketInfo.Value.name.ToUpper()}"; |
| | 249 | | } |
| | 250 | |
|
| 0 | 251 | | marketUrl = null; |
| 0 | 252 | | if (!string.IsNullOrEmpty(info.marketLink)) |
| | 253 | | { |
| 0 | 254 | | marketUrl = info.marketLink; |
| 0 | 255 | | } |
| 0 | 256 | | else if (!string.IsNullOrEmpty(info.assetLink)) |
| | 257 | | { |
| 0 | 258 | | marketUrl = info.assetLink; |
| | 259 | | } |
| | 260 | |
|
| 0 | 261 | | buttonCancel.gameObject.SetActive(true); |
| 0 | 262 | | buttonOpenMarket.gameObject.SetActive(true); |
| | 263 | |
|
| 0 | 264 | | fetchNFTImageRoutine = StartCoroutine(FetchNFTImage(info)); |
| 0 | 265 | | } |
| | 266 | |
|
| | 267 | | private void Show() |
| | 268 | | { |
| 1 | 269 | | content.SetActive(true); |
| 1 | 270 | | Utils.UnlockCursor(); |
| 1 | 271 | | } |
| | 272 | |
|
| | 273 | | private IEnumerator FetchNFTImage(NFTInfoSingleAsset nftInfo) |
| | 274 | | { |
| 0 | 275 | | ShowImageErrorFeedback(false); |
| 0 | 276 | | ShowImageLoading(true); |
| | 277 | |
|
| 0 | 278 | | bool imageFound = false; |
| | 279 | |
|
| 0 | 280 | | yield return WrappedTextureUtils.Fetch(nftInfo.previewImageUrl, |
| | 281 | | promise => |
| | 282 | | { |
| 0 | 283 | | imagePromise = promise; |
| 0 | 284 | | imageFound = true; |
| 0 | 285 | | }); |
| | 286 | |
|
| 0 | 287 | | if (!imageFound) |
| | 288 | | { |
| 0 | 289 | | yield return WrappedTextureUtils.Fetch(nftInfo.originalImageUrl, |
| | 290 | | promise => |
| | 291 | | { |
| 0 | 292 | | imagePromise = promise; |
| 0 | 293 | | imageFound = true; |
| 0 | 294 | | }); |
| | 295 | | } |
| | 296 | |
|
| 0 | 297 | | if (imageFound && imagePromise?.asset != null) |
| | 298 | | { |
| 0 | 299 | | Texture2D texture = imagePromise.asset.texture; |
| 0 | 300 | | imageNft.texture = texture; |
| | 301 | |
|
| 0 | 302 | | if ((imagePromise.asset is Asset_Gif gif)) |
| | 303 | | { |
| 0 | 304 | | SetupGifPlayer(gif); |
| 0 | 305 | | } |
| 0 | 306 | | else if (!backgroundColorSet) |
| | 307 | | { |
| 0 | 308 | | SetSmartBackgroundColor(texture); |
| | 309 | | } |
| | 310 | |
|
| 0 | 311 | | SetNFTImageSize(texture); |
| | 312 | |
|
| 0 | 313 | | imageNft.gameObject.SetActive(true); |
| 0 | 314 | | ShowImageLoading(false); |
| 0 | 315 | | } |
| | 316 | | else |
| | 317 | | { |
| 0 | 318 | | ShowImageErrorFeedback(true); |
| | 319 | | } |
| 0 | 320 | | } |
| | 321 | |
|
| | 322 | | private void SetNFTImageSize(Texture2D texture) |
| | 323 | | { |
| 0 | 324 | | RectTransform rt = (RectTransform)imageNft.transform.parent; |
| | 325 | | float h, w; |
| 0 | 326 | | if (texture.height > texture.width) |
| | 327 | | { |
| 0 | 328 | | h = rt.rect.height; |
| 0 | 329 | | w = h * (texture.width / (float)texture.height); |
| 0 | 330 | | } |
| | 331 | | else |
| | 332 | | { |
| 0 | 333 | | w = rt.rect.width; |
| 0 | 334 | | h = w * (texture.height / (float)texture.width); |
| | 335 | | } |
| | 336 | |
|
| 0 | 337 | | imageNft.rectTransform.sizeDelta = new Vector2(w, h); |
| 0 | 338 | | } |
| | 339 | |
|
| | 340 | | private string ShortDecimals(string value, int decimalCount) |
| | 341 | | { |
| 0 | 342 | | int pointPosition = value.IndexOf('.'); |
| 0 | 343 | | if (pointPosition <= 0) |
| 0 | 344 | | return value; |
| | 345 | |
|
| 0 | 346 | | string ret = value.Substring(0, pointPosition + Mathf.Min(value.Length - pointPosition, decimalCount + 1)); |
| | 347 | |
|
| 0 | 348 | | for (int i = ret.Length - 1; i >= 0; i--) |
| | 349 | | { |
| 0 | 350 | | if (ret[i] == '.') |
| | 351 | | { |
| 0 | 352 | | return ret.Substring(0, i); |
| | 353 | | } |
| | 354 | |
|
| 0 | 355 | | if (ret[i] != '0') |
| | 356 | | { |
| 0 | 357 | | return ret.Substring(0, i + 1); |
| | 358 | | } |
| | 359 | | } |
| | 360 | |
|
| 0 | 361 | | return ret; |
| | 362 | | } |
| | 363 | |
|
| 0 | 364 | | private void SetSmartBackgroundColor(Texture2D texture) { imageNftBackground.color = texture.GetPixel(0, 0); } |
| | 365 | |
|
| | 366 | | private void SetTokenSymbol(TextMeshProUGUI textToken, string symbol) |
| | 367 | | { |
| 0 | 368 | | textToken.text = symbol; |
| 0 | 369 | | textToken.gameObject.SetActive(true); |
| 0 | 370 | | } |
| | 371 | |
|
| | 372 | | private void OpenMarketUrl() |
| | 373 | | { |
| 0 | 374 | | if (!string.IsNullOrEmpty(marketUrl)) |
| | 375 | | { |
| 0 | 376 | | WebInterface.OpenURL(marketUrl); |
| 0 | 377 | | AnalyticsHelper.SendExternalLinkAnalytic(marketUrl, nftTokenId); |
| 0 | 378 | | } |
| | 379 | | else |
| | 380 | | { |
| 0 | 381 | | Hide(); |
| | 382 | | } |
| 0 | 383 | | } |
| | 384 | |
|
| | 385 | | void INFTPromptHUDView.OnError(string error) |
| | 386 | | { |
| 0 | 387 | | Debug.LogError(error); |
| 0 | 388 | | ShowMainErrorFeedback(true); |
| 0 | 389 | | } |
| | 390 | |
|
| | 391 | | private void OnDestroy() |
| | 392 | | { |
| 7 | 393 | | isDestroyed = true; |
| | 394 | |
|
| 7 | 395 | | multipleOwnersContainer.OnPointerEnter -= OwnerLabelPointerEnter; |
| 7 | 396 | | multipleOwnersContainer.OnPointerExit -= OwnerLabelPointerExit; |
| 7 | 397 | | ownersTooltip.OnViewAllPressed -= OnViewAllOwnersPressed; |
| 7 | 398 | | ownersTooltip.OnFocusLost -= OnOwnersTooltipLostFocus; |
| 7 | 399 | | ownersTooltip.OnFocus -= OnOwnersTooltipGainFocus; |
| 7 | 400 | | ownersPopup.OnClosePopup -= OnOwnersPopupClose; |
| | 401 | |
|
| 7 | 402 | | ForgetPromises(); |
| 7 | 403 | | } |
| | 404 | |
|
| | 405 | | private void ForgetPromises() |
| | 406 | | { |
| 8 | 407 | | if (imagePromise != null) |
| | 408 | | { |
| 0 | 409 | | imagePromise.Forget(); |
| 0 | 410 | | imagePromise = null; |
| | 411 | | } |
| 8 | 412 | | gifPlayer?.Dispose(); |
| 8 | 413 | | gifPlayer = null; |
| 8 | 414 | | } |
| | 415 | |
|
| | 416 | | private void SetupGifPlayer(Asset_Gif gif) |
| | 417 | | { |
| 0 | 418 | | if (gifPlayer == null) |
| | 419 | | { |
| 0 | 420 | | gifPlayer = new GifPlayer(); |
| 0 | 421 | | gifPlayer.OnFrameTextureChanged += (texture) => { imageNft.texture = texture; }; |
| | 422 | | } |
| 0 | 423 | | gifPlayer.SetGif(gif); |
| 0 | 424 | | gifPlayer.Play(true); |
| 0 | 425 | | } |
| | 426 | |
|
| 0 | 427 | | private void OnViewAllOwnersPressed() { OnViewAllPressed?.Invoke(); } |
| | 428 | |
|
| 0 | 429 | | private void OnOwnersTooltipGainFocus() { OnOwnersTooltipFocus?.Invoke(); } |
| | 430 | |
|
| 0 | 431 | | private void OnOwnersTooltipLostFocus() { OnOwnersTooltipFocusLost?.Invoke(); } |
| | 432 | |
|
| 0 | 433 | | private void OnOwnersPopupClose() { OnOwnersPopupClosed?.Invoke(); } |
| | 434 | |
|
| 0 | 435 | | private void OwnerLabelPointerEnter() { OnOwnerLabelPointerEnter?.Invoke(); } |
| | 436 | |
|
| 0 | 437 | | private void OwnerLabelPointerExit() { OnOwnerLabelPointerExit?.Invoke(); } |
| | 438 | |
|
| | 439 | | private void ShowMainLoading(bool isVisible) |
| | 440 | | { |
| 1 | 441 | | if (spinnerGeneral == null) |
| 0 | 442 | | return; |
| | 443 | |
|
| 1 | 444 | | spinnerGeneral.SetActive(isVisible); |
| 1 | 445 | | } |
| | 446 | |
|
| | 447 | | private void ShowMainErrorFeedback(bool isVisible) |
| | 448 | | { |
| 1 | 449 | | if (mainErrorFeedbackContent == null) |
| 0 | 450 | | return; |
| | 451 | |
|
| 1 | 452 | | if (isVisible) |
| 0 | 453 | | ShowMainLoading(false); |
| | 454 | |
|
| 1 | 455 | | mainErrorFeedbackContent.SetActive(isVisible); |
| 1 | 456 | | } |
| | 457 | |
|
| | 458 | | private void ShowImageLoading(bool isVisible) |
| | 459 | | { |
| 1 | 460 | | if (spinnerNftImage == null) |
| 0 | 461 | | return; |
| | 462 | |
|
| 1 | 463 | | spinnerNftImage.SetActive(isVisible); |
| 1 | 464 | | } |
| | 465 | |
|
| | 466 | | private void ShowImageErrorFeedback(bool isVisible) |
| | 467 | | { |
| 0 | 468 | | if (imageErrorFeedbackContent == null) |
| 0 | 469 | | return; |
| | 470 | |
|
| 0 | 471 | | if (isVisible) |
| 0 | 472 | | ShowImageLoading(false); |
| | 473 | |
|
| 0 | 474 | | imageErrorFeedbackContent.SetActive(isVisible); |
| 0 | 475 | | } |
| | 476 | | } |