Пример #1
0
 public static void OnAvatarDownloadProgressed(AvatarLoadingBar loadingBar, float downloadPercent, long fileSize)
 {
     foreach (EntryBase entry in playerEntries)
     {
         entry.OnAvatarDownloadProgressed(loadingBar, downloadPercent, fileSize);
     }
     localPlayerEntry?.OnAvatarDownloadProgressed(loadingBar, downloadPercent, fileSize);
 }
Пример #2
0
        public override void OnAvatarDownloadProgressed(AvatarLoadingBar loadingBar, float downloadPercentage, long fileSize)
        {
            if (loadingBar.field_Public_PlayerNameplate_0.field_Private_VRCPlayer_0.prop_Player_0.prop_APIUser_0?.id != userId)
            {
                return;
            }

            perf = PerformanceRating.None;
            if (downloadPercentage < 1)
            {
                perfString = ((downloadPercentage * 100).ToString("N1") + "%").PadRight(5);
            }
            else
            {
                perfString = "100% ";
            }
        }
Пример #3
0
 private static void OnAvatarDownloadProgress(AvatarLoadingBar __instance, float __0, long __1)
 {
     OnAvatarDownloadProgressed?.DelegateSafeInvoke(__instance, __0, __1);
 }
Пример #4
0
 public virtual void OnAvatarDownloadProgressed(AvatarLoadingBar loadingBar, float downloadPercentage, long fileSize)
 {
 }