Exemplo n.º 1
0
 private void OnPlayerJoined(object sender, EventArgs e)
 {
     if (!(bool)friendList?.Contains(sender as string))
     {
         return;
     }
     for (int i = 0; i < joinedDateTimeList.Count; i++)
     {
         if (joinedDateTimeList[i].AddSeconds(10) < DateTime.Now)
         {
             joinedPlayerList.RemoveAt(i);
             joinedDateTimeList.RemoveAt(i);
             i--;
         }
     }
     joinedPlayerList.Add(sender as string);
     joinedDateTimeList.Add(DateTime.Now);
     VRNotify.BalloonTipTitle = "VRC 参加通知";
     if (joinedPlayerList.Count == 1)
     {
         VRNotify.BalloonTipText = joinedPlayerList[0] + " さんがこのセッションに参加しています";
     }
     else
     {
         VRNotify.BalloonTipText = "";
         int i;
         for (i = 0; i < joinedPlayerList.Count; i++)
         {
             VRNotify.BalloonTipText += joinedPlayerList[i] + ",";
             if (VRNotify.BalloonTipText.Length > 32)
             {
                 break;
             }
         }
         if (i != joinedPlayerList.Count)
         {
             VRNotify.BalloonTipText += "他" + (joinedPlayerList.Count - i) + "名がこのセッションに参加しています";
         }
         else
         {
             VRNotify.BalloonTipText += "さんらがこのセッションに参加しています";
         }
     }
     VRNotify.ShowBalloonTip(5000);
 }
Exemplo n.º 2
0
 private void Configurator_Load(object sender, EventArgs e)
 {
     VRNotify.ShowBalloonTip(3000);
 }
Exemplo n.º 3
0
 private void OnFriendRequestReceived(object sender, EventArgs e)
 {
     VRNotify.BalloonTipTitle = "VRC フレンドリクエスト";
     VRNotify.BalloonTipText  = sender as string;
     VRNotify.ShowBalloonTip(5000);
 }